Deduplicate image paths in victory census #1177
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1177"
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 Marvisak/VIctory. Originally posted by DoubleD17 on 2026-11-24T16:20:42Z.
Repeated 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.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:00:44Z.
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).
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T19:14:37Z.
Review: APPROVED
Tested
142ec8don Windows 11, RTX 5070, MSVC: builds,cargo test --workspace --no-fail-fast607 passed, 0 failed (on our fork main).canonicalize()before reading is the right place: repeated arguments, overlapping roots and../case spellings collapse, while two distinct files with the same bytes still count twice.\?\form is only the key...spelling, would pin the count to 1.Merged into our fork's main.
AI-assisted (Claude Code).