pe_inspect: parse and validate PE export forwarders table (OLD-9768) #693

Open
github-bot wants to merge 4 commits from github-bot/gh-693 into main AGit
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 12:16 UTC · original
abnalstlll-byte:feat/exe-export-forwarders → main · +733 −19 · 2 files · 4 commits · open

Related issues: #14, #17, #18 (restoring old upstream PR 9768, author restoration for draft PR #45).

What and why

Restores original pull request OLD-9768 authored by @⁠abnalstlll-byte:

  • Extends \ ools/pe_inspect.py\ with full support for PE Export Address Table (EAT) forwarder validation.
  • Detects and resolves forwarder RVA ranges pointing into the export directory section.
  • Validates forwarder target syntax (\DLL.Symbol\ and \DLL.#Ordinal) and ensures forwarders conform to
    untime/src/pe_loader.cpp\ contracts.
  • Python 3.11+ string formatting compatibility.
  • Comprehensive synthetic test coverage in \ ests/test_pe_inspect.py\ (69/69 PASS).

Tested

  • Windows 11 x64, Python 3.14 / 3.12:
    • \python -I tests/test_pe_inspect.py: 69/69 PASS.
    • \python -I scripts/check_no_game_data.py\ on changed files: PASS.
  • Clean merge against \ubi/main\ (0 conflicts).

Checklist

  • No proprietary payloads, game-derived files, keys, or protection workarounds.
  • Standard library only (\python -I).
  • Preserves author attribution and original PR commit provenance.
**@⁠abnalstlll-byte** on GitHub · 2026-11-24 12:16 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/693) `abnalstlll-byte:feat/exe-export-forwarders` → `main` · +733 −19 · 2 files · 4 commits · open Related issues: #14, #17, #18 (restoring old upstream PR 9768, author restoration for draft PR #45). ### What and why Restores original pull request **OLD-9768** authored by @⁠abnalstlll-byte: - Extends \ ools/pe_inspect.py\ with full support for PE Export Address Table (EAT) forwarder validation. - Detects and resolves forwarder RVA ranges pointing into the export directory section. - Validates forwarder target syntax (\DLL.Symbol\ and \DLL.#Ordinal\) and ensures forwarders conform to \ untime/src/pe_loader.cpp\ contracts. - Python 3.11+ string formatting compatibility. - Comprehensive synthetic test coverage in \ ests/test_pe_inspect.py\ (69/69 PASS). ### Tested - Windows 11 x64, Python 3.14 / 3.12: - \python -I tests/test_pe_inspect.py\: 69/69 PASS. - \python -I scripts/check_no_game_data.py\ on changed files: PASS. - Clean merge against \ubi/main\ (0 conflicts). ### Checklist - [x] No proprietary payloads, game-derived files, keys, or protection workarounds. - [x] Standard library only (\python -I\). - [x] Preserves author attribution and original PR commit provenance.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:16:47 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-25 21:35 UTC · original

Rebased cleanly onto latest \main\ (\e34ff17e9), clearing stale base CI failures. Verified: all 78 tests in \ est_pe_inspect.py\ pass.

AI-assisted (Claude Code)

**@⁠abnalstlll-byte** on GitHub · 2026-11-25 21:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/693#issuecomment-7175280560) Rebased cleanly onto latest \main\ (\e34ff17e9\), clearing stale base CI failures. Verified: all 78 tests in \ est_pe_inspect.py\ pass. AI-assisted (Claude Code)
This pull request has changes conflicting with the target branch.
  • tests/test_pe_inspect.py
  • tools/pe_inspect.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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