New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory map corruption on PE with FileAligment 0x1000 #3338
Comments
Can reproduce it as well on 24H2 26080.1. The problem seems to be the extra 0x1000 bytes in the page region that contains the module, which doesn't end up matching x64dbg's calculations as to how big the region should be. Here's an example by running calc.exe & checking windows.energy.dll:
In contrast with earlier builds, the region size always matches the total size calculated by x64dbg, there's no extra memory at the end, which can be seen in the memory view as well. I don't have time to debug what the extra memory represents, but maybe someone will have a better idea, you can check the dump in the screenshot below. To fix the problem, maybe we can also handle the case where the region is larger than the total size of the sections, and mark the remaining memory in a special way? |
Operating System
Windows 11, Build 24h2 26100.1
x64dbg Version
snapshot_2024-04-11_18-47.zip
Describe the issue
Memory map on new windows build on pe's with FileAlignment 0x1000 (almost all modules have it now):
Normally you should see:
Steps to reproduce
Attachments
No response
The text was updated successfully, but these errors were encountered: