Fix the PE relocation block validation #395

Open
github-bot wants to merge 1 commit from github-bot/gh-395 into main AGit
Owner

@⁠meshahid973 on GitHub · 2026-11-26 08:49 UTC · original
meshahid973:main → main · +166 −65 · 3 files · 1 commits · open

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-pe passes
  • No game or console files and no binaries included
  • No fake success
**@⁠meshahid973** on GitHub · 2026-11-26 08:49 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/395) `meshahid973:main` → `main` · +166 −65 · 3 files · 1 commits · open **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_ - [x] `cargo test -p tombox-pe` passes - [x] No game or console files and no binaries included - [x] No fake success
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:50:15 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/395/head:github-bot/gh-395'
git switch 'github-bot/gh-395'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-395'
git switch 'github-bot/gh-395'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-395'
git switch 'github-bot/gh-395'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-395'
git switch 'main'
git merge --squash 'github-bot/gh-395'
git switch 'main'
git merge --ff-only 'github-bot/gh-395'
git switch 'main'
git merge 'github-bot/gh-395'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.