Scripts: map PE export RVAs only into file-backed bytes #2662
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2662
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2662"
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?
@luckyteagirl on GitHub · 2026-11-26 05:29 UTC · original
luckyteagirl:codex/pe-export-file-backed-rvas→main· +35 −2 · 2 files · 1 commits · openThe PE export inspector maps an RVA into disk bytes using the larger of a section's virtual and raw sizes. When
VirtualSizeis larger, the extra bytes are zero-filled by the loader and have no corresponding file data. An export name RVA in that tail can therefore read unrelated bytes from the next file section and print a false name. Limit disk mapping toSizeOfRawData, as the PE section format defines.What is in it
Tested
b49be183, the fixture exited successfully and printed the unrelated name. On this branch it rejects the unmapped RVA; the focused export tests passed 2/2 and full Python script discovery passed 26/26 on Windows.git diff --checkand independent source review passed.Regression run
Not tested
AI use
View 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.