Validate PE relocation blocks #25
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
old-names
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!25
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-25"
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?
@meshahid973 on GitHub · 2026-11-26 12:14 UTC · original
meshahid973:fix-relocation-bounds→main· +166 −31 · 1 files · 2 commits · merged 2026-11-26 20:00 UTCRejects the malformed relocation blocks, truncated data and overflowing RVAs. Includes regression tests.
Tested on Windows with cargo test -p victory-loader --locked. All 45 tests passed.
@TaynanGT on GitHub · 2026-11-26 19:18 UTC · original
The checked arithmetic and block-boundary tests address the relocation parsing problem. This also changes which relocation directory layouts
prepareaccepts, so I want to check that the current title still reaches the start screen on this branch before merging.@TaynanGT on GitHub · 2026-11-26 20:01 UTC · original
Merged as
146c9e0after Windows CI passed. The added regression covers a directory ending at the backed section boundary, including ABSOLUTE padding inside the block. I also checked the relocation metadata in the runtime binaries that carry TLS callbacks. The title executable uses that exact boundary case. The next Series S startup smoke test can verify the merged loader end to end.@TaynanGT on GitHub · 2026-11-26 20:05 UTC · original
Thanks for the section-boundary test, @meshahid973. I ran all 55 loader tests on the merged commit
146c9e0, then used the Series S loader to prepare and map the actual title at a different address from its preferred base. The executable and four title DLLs bound successfully, with zero missing imports. This check stopped after binding, before the title’s entry point.