Scripts: retain every name for a PE export ordinal #1075
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1084"
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 ivall/xcl. Originally posted by anakatt on 2026-11-24T11:24:46Z.
I fixed
scripts/re/pe_exports.pydropping export aliases. Multiple names can refer to one ordinal, but the script overwrote each earlier name and printed only the last one. It now prints all names for that ordinal in table order.What is in it
Tested
macOS Darwin 24.6.0, arm64; Python 3.15.2. No GPU used.
python3 -B -m unittest discover -s scripts -p test_pe_exports.py -v: both PE variants failed before the fix becauseAlphawas missing; afterward 1 test passed, 0 failed, 0 skipped (two format subcases).Windows 11 Pro ARM64 10.0.26100.1742 in UTM, Python 3.14.0 ARM64; no GPU used. Exact source archive
3b6e9eafb732c55b1921508d9db76f70111a2569:C:\xcl-tests\python\python.exe -B -m unittest discover -s scripts -p test_pe_exports.py -v: 1 passed, 0 failed, 0 skipped (two subcases).Not tested
AI use
openai-codex/gpt-6-astra) to investigate the bug, write the fix and synthetic regression, run the Python test, and prepare this description.upstream-sync referenced this pull request2026-11-24 13:02:56 +00:00
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:15:25Z.
Tested exact head
3b6e9ea, script tests only, since this PR has no test report yet.Tested
python -m pytest scripts/test_pe_exports.pyat the head: 1 passed, 2 subtests passed.930e8b4): fails for both subtests (magic=0x10b,magic=0x20b) oftest_all_names_for_an_ordinal_are_printed. So the new test catches the problem the PR fixes.names[o] = cstr(nr)tonames.setdefault(o, []).append(cstr(nr))and join the names. The two PRs conflict (git merge-treeof the two heads reports a conflict), so only one can land.Not tested
AI use
upstream-sync referenced this pull request2026-11-24 22:05:13 +00:00
upstream-sync referenced this pull request2026-11-25 10:09:30 +00:00