Repository navigation
Conversation
A malformed delay-import directory only logged a warning and left the module registered. Treat it like a broken import table: unregister and fail the load. 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 959e7a8. Result: cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card). Not tested: titles that ship delay-load imports. 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 |
… load (port upstream xcl-dev#1212 + xcl-dev#1208) Windows loader.rs (cfg(windows)-only, reference-only on Linux): delay_imports Err arm goes from warn-only to unregister+fail like a broken import table; TLS AddressOfCallbacks walk is capped at 256 entries and bounded to the image (va_to_rva outside-image guard + checked_add past-end guard), with unregister+fail on all three failure legs. Both upstream tests verbatim; 0 tests run on Linux. Linux loader_linux.rs twin: TLS walk already image-bounded (checked_rva + at+8>size + per-target va_to_rva, strictly stricter than the 256-entry cap) so pin test only; delay_imports warn-only mirrored to unregister+fail with twin retry test. Graft red pre-fix, green post-fix.
|
Thanks @DavidM1911 — noted the |
|
merge-check claim |
|
merge-check |
|
merge-check claim |
|
merge-check |
|
No open or merged PR makes the same change (#1367 bounds the delay-load module-handle write but still only warns when the delay-import table does not parse). One point to consider in loader.rs:map_image_ex: until now a delay-import table that XCL's parser rejects only skipped eager resolution, and the image's own AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
A malformed delay-import directory only logged a warning and left the module registered (and partially resolved). Normal imports already fail the load and unregister; delay-imports must do the same.
What is in it
crates/xcl/src/loader.rs: fail + unregister ondelay_imports()error; unit test with a synthetic DLL whose delay Name RVA is outside the imageTested
959e7a829f2108ebf93c10e5f924f476df4c5549(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