mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
Merge pull request #1538 from lioncash/query
svc: Fix vma boundary check in svcQueryMemory
This commit is contained in:
commit
d9923b0dbc
@ -654,7 +654,7 @@ static ResultCode QueryProcessMemory(MemoryInfo* memory_info, PageInfo* /*page_i
|
|||||||
}
|
}
|
||||||
auto vma = process->VMManager().FindVMA(addr);
|
auto vma = process->VMManager().FindVMA(addr);
|
||||||
memory_info->attributes = 0;
|
memory_info->attributes = 0;
|
||||||
if (vma == Core::CurrentProcess()->VMManager().vma_map.end()) {
|
if (vma == process->VMManager().vma_map.end()) {
|
||||||
memory_info->base_address = 0;
|
memory_info->base_address = 0;
|
||||||
memory_info->permission = static_cast<u32>(VMAPermission::None);
|
memory_info->permission = static_cast<u32>(VMAPermission::None);
|
||||||
memory_info->size = 0;
|
memory_info->size = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user