Repository navigation
Conversation
The hint RVA plus 2 used wrapping_add, so a name at 0xFFFFFFFE became RVA 0 and the DOS header was read as the import name. Assisted-by: Cursor Auto (Composer) Co-authored-by: Cursor <cursoragent@cursor.com>
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Note: the full |
|
Regression run of Against the limits in CONTRIBUTING.md: 101 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
|
Thanks @Toons29 — pasted both of your |
|
CI is stuck on |
|
Full workspace run (listed under Not tested). Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head b0a128c. Result: cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card). AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
|
Thanks @jennydeth — copied your workspace counts into Tested (742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card)). |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
|
Thanks @DavidM1911 — noted the |
…r + ordinal overflow (port upstream xcl-dev#1216 + xcl-dev#1134 + xcl-dev#700) Port all three complementary single-file pe.rs keepers verbatim (pe.rs is shared, compiles on Linux — no twin needed): - xcl-dev#1216: hn.checked_add(2) for the hint/name RVA (was wrapping_add) + import_name_at_the_top_of_the_address_space_is_error - xcl-dev#1134: export_target propagates failed forwarder-string read as None (was leaking the RVA as an ordinary export address) + unterminated_forwarders_are_not_export_addresses (file+mapped) - xcl-dev#700: from_pe ordinal loop uses checked_add + break past u32::MAX (was debug-panic / release-wrap to shadowing ordinal 0) + export_ordinals_past_u32_max_are_skipped Failing-first: xcl-dev#1134 failed pre-fix (Some(Rva) vs None), xcl-dev#700 failed pre-fix (attempt to add with overflow); xcl-dev#1216 passes pre-fix too (0x7FFFFFFF hint mask already bounds hn, so +2 cannot wrap on this path — ported verbatim for fidelity, zero behavior change today). Gates: both cargo checks 0 errors; lib 732/0/1 (+3); title e2e 12 unique FAILs all D3D12.X GPU-only 0 non-GPU (baseline holds); retail SKIPPED (game drive unmounted this session).
|
merge-check claim |
|
merge-check |
|
merge-check claim |
|
merge-check |
|
merge-check |
|
#1367 (opened later, much broader: section, relocation, IAT and directory bounds) contains the same three-line AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
A named import thunk stores the hint/name RVA. Adding 2 with wrapping turned
0xFFFFFFFEinto RVA 0, so the parser accepted the DOS header (MZ) as the import name instead of rejecting the image.What is in it
crates/xcl/src/pe.rs:checked_add(2)for the import name RVA; unit test with the hint at0xFFFFFFFEinside a high sectionTested
b0a128c7503de9c7f2283e6e315a9ead9045f7a1(clean tree)cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card)SKIPPED: 2 GPU tests for no wave64 (expected on this card)cargo test -p xcl --libon RTX 3060 Ti after merging this head with currentmainlocally: all passed, 0 failed, 27 ignored. The PR head itself is unchanged.Regression run
scripts/smoke.ps1from @Toons29 (RX 9070, 60 s, same title/time; blocks as printed):Not tested
cargo test --workspaceAI use