Fix memory commit allowed on section kind regions

This commit is contained in:
brian
2026-01-12 16:45:15 +08:00
parent 289306752e
commit f704be2187

View File

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