Distinguish named and ordinal imports in census missing reports #132
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!132
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-132"
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?
@feanorsun on GitHub · 2026-11-26 06:18 UTC · original
feanorsun:fix/census-missing-import-identity→main· +61 −14 · 1 files · 1 commits · merged 2026-11-26 08:17 UTCWhen
a.exeimports the literal name#42andb.exeimports ordinal 42 from the same DLL, the census summary counts two missing functions. Previously,--missingreported one row used by both images because both symbols formatted as#42.Use the census's existing
FunctionKeyfor the per-DLL detail counts as well as the summary. The report doubles a literal leading#in a name. Ordinary names and ordinals keep their existing spelling. Rows are still sorted by descending image count, then by DLL and displayed symbol.The regression test uses two in-memory images,
census-fixture.dll, andHostPolicy::none(). The delay imports ina.exerepeat the named import with a different PE hint. The test checks the summary and the exact set of images behind each displayed symbol.census-fixture.dll!#42— 2 images (a.exe,b.exe)census-fixture.dll!##42— 1 image (a.exe)census-fixture.dll!#42— 1 image (b.exe)On Windows, both the baseline with the regression test added and the fixed branch listed three census tests. The baseline run had two passes and one failure, in the new regression test. All three passed after the fix (zero failed, eight unrelated tests filtered out).
@avatarmanz on GitHub · 2026-11-26 07:55 UTC · original
Merged into main in the next push (tests pass); thanks.