mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-29 07:51:01 +00:00
Bugfixes - minidump load, memory tail boundary (#568)
Minor change to allow minidump load to work with pages with copy permission set. File was probing memory via VirtualQuery incrementally, previously this ran forever as Sogen doesn't replicate Windows behaviour. Added exclusive allocation end boundary so that allocation / info check on last page of user space VA works. Modified memory_manager::find_free_allocation_base and memory_manager::get_region_info to use exclusive boundary. Added check to NtQueryVirtualMemory - now correctly returns STATUS_INVALID_PARAMETER when run against memory outside of user space VA. Kernel modules should use ZwQueryVirtualMemory not the user land API.
This commit is contained in:
@@ -20,6 +20,15 @@ namespace syscalls
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
if (base_address < MIN_ALLOCATION_ADDRESS || base_address >= MAX_ALLOCATION_END_EXCL)
|
||||
{
|
||||
if (return_length)
|
||||
{
|
||||
return_length.write(0);
|
||||
}
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
if (info_class == MemoryBasicInformation)
|
||||
{
|
||||
if (return_length)
|
||||
|
||||
Reference in New Issue
Block a user