mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-23 02:06:55 +01:00
kernel: Add missing address space check in SetMemoryAttribute syscall (#2771)
This commit is contained in:
parent
0d174cbd45
commit
e7e65ccbc9
1 changed files with 5 additions and 0 deletions
|
@ -845,6 +845,11 @@ namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
|
||||||
|
|
||||||
KProcess process = KernelStatic.GetCurrentProcess();
|
KProcess process = KernelStatic.GetCurrentProcess();
|
||||||
|
|
||||||
|
if (!process.MemoryManager.InsideAddrSpace(position, size))
|
||||||
|
{
|
||||||
|
return KernelResult.InvalidMemState;
|
||||||
|
}
|
||||||
|
|
||||||
KernelResult result = process.MemoryManager.SetMemoryAttribute(
|
KernelResult result = process.MemoryManager.SetMemoryAttribute(
|
||||||
position,
|
position,
|
||||||
size,
|
size,
|
||||||
|
|
Loading…
Reference in a new issue