mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 03:33:56 +00:00
Fix memory commit allowed on section kind regions
This commit is contained in:
@@ -307,6 +307,11 @@ bool memory_manager::commit_memory(const uint64_t address, const size_t size, co
|
||||
return false;
|
||||
}
|
||||
|
||||
if (memory_region_policy::is_section_kind(entry->second.kind))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
const auto end = address + size;
|
||||
const auto region_end = entry->first + entry->second.length;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user