Merge pull request #4355 from lioncash/query

svc: Correct vma_map boundary check within QueryProcessMemory
This commit is contained in:
Weiyi Wang 2018-10-22 09:27:46 -04:00 committed by GitHub
commit 129ca865b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -923,7 +923,7 @@ static ResultCode QueryProcessMemory(MemoryInfo* memory_info, PageInfo* page_inf
auto vma = process->vm_manager.FindVMA(addr); auto vma = process->vm_manager.FindVMA(addr);
if (vma == g_current_process->vm_manager.vma_map.end()) if (vma == process->vm_manager.vma_map.end())
return ERR_INVALID_ADDRESS; return ERR_INVALID_ADDRESS;
memory_info->base_address = vma->second.base; memory_info->base_address = vma->second.base;