Repository navigation
Conversation
|
Reviewed and verified
|
|
Independent WARP/CPU verification of Review: Test-only change in Results (WARP/CPU):
Negative control (mutating
Each mutation is caught, so the tests do guard the behaviour. Method: no physical GPU. AI disclosure: this verification was done by Claude Code / Claude Sonnet 5.5. |
|
Automated triage for the maintainers. Test-only change in This is a recommendation for a maintainer to look, not an approval. Generated by Claude Code |
fuzeofficlal
left a comment
There was a problem hiding this comment.
Reviewed and verified at head f0d53421 and merged onto origin/main (63bcca43) on Windows 11 (debug & --release):
- Design & correctness: test-only change in
crates/victory-pe/src/image.rs:477-490, 547-626with zero production edits. Replacingown_image()with the source-builtsection_image(virtual_size, raw_size)helper makesrva_to_file_offset_rejects_offsets_past_4_gibportable across non-Windows hosts while pinning the exactu32::MAXboundary (0x1010 -> Some(u32::MAX),0x1011 -> None). The four new tests thoroughly covermin(VirtualSize, SizeOfRawData),VirtualSize == 0fallback toSizeOfRawData, empty sections and inter-section gaps in both forward and reversed section-table order, and wraparound nearu32::MAX. - Verification:
- Clean
git merge-treeagainstorigin/main(63bcca43);cargo xtask policy(184 files ok);cargo clippy -p victory-pe --all-targets --locked -- -D warningsclean with default features and--all-features. cargo test -p victory-pe --locked: 40/40 passed in debug,--release, and merged ontoorigin/main(63bcca43).
- Clean
LGTM.
|
NVIDIA full-suite run, to go with the reports above by fuzeofficlal, oni-swr, since none of them names a GPU run. Tested exact head Tested
Not tested
AI use
|
The section RVA overflow regression parsed the host test executable, so it failed on Linux before reaching the mapper. The remaining section boundary behavior had no focused coverage for raw padding, zero-filled virtual tails, or multiple sections.
Use the existing source-generated PE fixture for that regression and check the last representable file offset and the first overflowing offset. Add four tests with explicit expected mappings for the smaller of virtual/raw size, zero VirtualSize, empty sections and gaps in both section orders, and RVAs near u32::MAX. Production code is unchanged. Header RVA/TLS work in #1639 and delay-import coverage in #2731 remain separate.
Validation (native Linux x86-64, Rust 1.100.0, two build jobs):
cargo test -p victory-pe --locked --offline -- --skip parses_own_test_binary --skip rva_to_file_offset_maps_entry_point --skip rejects_iat_outside_image: 37 passed, 0 failed. Those three unchanged tests need a Windows PE host executable; the baseline had 32 pass / 4 fail, including the now-portable overflow regression.Integration with #2731 at 694baa3 also applies without conflicts: 41 portable PE tests pass, strict Clippy and staged policy pass (independent Linux report).
All fixtures are generated from source. No game files, binaries or GPU execution used. AI-assisted: OpenAI Codex.
Coordination claim.