Fix the PE relocation block validation #395
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/395"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from omonkeyz/xbox-emulator. Originally posted by meshahid973 on 2026-11-26T08:49:29Z.
Library / area: tombox-pe
Exports changed: None
Source of the behaviour: PE/COFF specification and existing parser bounds checks.
Adds relocation block validation to reject invalid sizes, truncated data and RVA overflows, with regression tests.
AI-assisted
cargo test -p tombox-pepassesView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.