Deduplicate image paths in victory census #1177
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1177
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1177/head"
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?
@DoubleD17 on GitHub · 2026-11-24 16:20 UTC · original
DoubleD17:fix/census-deduplicate-inputs→main· +6 −0 · 1 files · 1 commits · merged 2026-11-25 00:13 UTCRepeated input paths and overlapping scan roots can visit the same PE image more than once. This inflates the image count and can repeat diagnostics for malformed PEs.
Deduplicate PE candidates across scan roots by canonical path before reading and parsing them. Reports use the first path encountered. If canonicalization fails, use the original path as the deduplication key.
On Windows x64, the build and
cargo test --locked --offline -p victorypassed. CLI checks with synthetic fixtures confirmed that repeated arguments, overlapping roots, and alternate spellings count the same PE once. Two distinct files with identical bytes still count as two images. The same malformed PE now produces one diagnostic. Validation covered the Windows CLI with synthetic fixtures.AI-assisted.
AI-assisted.
@Zipettte on GitHub · 2026-11-24 18:00 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
142ec8d:cargo test -p victorypasses, 1 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).