Prevent unmapping core modules

This commit is contained in:
momo5502
2025-02-07 19:56:23 +01:00
parent a2f795f33c
commit 3347667948
5 changed files with 26 additions and 11 deletions

View File

@@ -32,6 +32,8 @@ struct mapped_module
std::vector<mapped_section> sections{};
bool is_static{false};
bool is_within(const uint64_t address) const
{
return address >= this->image_base && address < (this->image_base + this->size_of_image);