1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-10 19:56:38 +00:00

kernel: Add missing address space check in SetMemoryAttribute syscall (#2771)

This commit is contained in:
Mary 2021-10-24 01:07:41 +02:00 committed by GitHub
parent 0d174cbd45
commit e7e65ccbc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,