Deduplicate image paths in victory census #1177

Manually merged
github merged 1 commit from gh-pr/1177/head into gh-pr/1177/base 2026-11-26 04:22:30 +00:00
Owner

@⁠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 UTC

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 victory passed. 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.

**@⁠DoubleD17** on GitHub · 2026-11-24 16:20 UTC · [original](https://github.com/Marvisak/VIctory/pull/1177) `DoubleD17:fix/census-deduplicate-inputs` → `main` · +6 −0 · 1 files · 1 commits · merged 2026-11-25 00:13 UTC 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 victory` passed. 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:22:29 +00:00
github manually merged commit 142ec8dd45 into gh-pr/1177/base 2026-11-26 04:22:30 +00:00
Author
Owner

@⁠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 victory passes, 1 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 18:00 UTC · [original](https://github.com/Marvisak/VIctory/pull/1177#issuecomment-7140027871) 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 victory` passes, 1 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1177
No description provided.