-
Notifications
You must be signed in to change notification settings - Fork 5.2k
unify rva checks #118936
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
unify rva checks #118936
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR unifies RVA (Relative Virtual Address) validation checks in the PE decoder implementation by standardizing how section boundaries are calculated and validated. The changes address inconsistencies between mapped and unmapped PE file handling.
Key changes:
- Removes alignment padding from virtual size calculations in
RvaToSection
- Adds explicit raw data boundary checks for unmapped images
- Removes outdated commented code and comments
Co-authored-by: Copilot <[email protected]>
#118546 (comment)