mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-11-12 00:58:49 +01:00
kernel: Add missing address space check in SetMemoryAttribute syscall (#2771)
This commit is contained in:
1 file changed
+5
@@ -845,6 +845,11 @@ namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
|
||||
|
||||
KProcess process = KernelStatic.GetCurrentProcess();
|
||||
|
||||
if (!process.MemoryManager.InsideAddrSpace(position, size))
|
||||
{
|
||||
return KernelResult.InvalidMemState;
|
||||
}
|
||||
|
||||
KernelResult result = process.MemoryManager.SetMemoryAttribute(
|
||||
position,
|
||||
size,
|
||||
|
||||
Reference in new issue
Block a user