Tests: PE parser on a hand-built image, in both layouts #825
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/831"
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 ivall/xcl. Originally posted by mastrr9 on 2026-11-24T06:23:13Z.
Adds a test-only suite (
crates/xcl/tests/pe_synthetic.rs) exercisingxcl::peagainst a synthetic PE32+ image built in-memory (no system DLL dependencies), verified identically in bothLayout::FileandLayout::Mapped:SizeOfOptionalHeaderandNumberOfRvaAndSizesvariants, and invalid machine/magic/NT-offset errorsrva_to_offsetverified across the full image range against a reference section-table model, including.text/.datazero tails andvsize == 0sectionsSizeOfHeaders, pluscstr_attermination and 4096-byte capDIR64,HIGHLOW,ABSOLUTEpadding, malformed block lengths),IMAGE_TLS_DIRECTORY64, and exports with forwarders (OwnedExports)Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstalled1a7f6a519df414a3fe91d66ef6b039952e2672aacargo build --workspace: clean (only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 723 passed, 0 failed, 41 ignored (pe_synthetic: 10 passed, 0 failed, 0 ignored)SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Not tested
crates/xcl/tests/pe_synthetic.rs); no runtime code changed and no retail title run performed.AI use
#[ignore]test to adhere toCONTRIBUTING.md), and verified on native Windows/RTX 5080 hardware with Antigravity (Gemini 4 Neon + Claude Sonnet 5.5).Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T06:39:53Z.
Verified on Windows 11 10.0.26300 with an NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100 stable (MSVC 14.44.35207),
mainatbeaa245+ this PR's test file dropped in unchanged:Nothing else of the tree was touched, and the suite passes natively on Windows (no Wine, no prefix). AI-assisted (opencode): copied the file, built and ran the target.
Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T07:02:32Z.
Test report on
1a7f6a5(PR head; its base ismainbeaa245, which is stillmain; no merge conflict).Tested
NVIDIA GeForce RTX 3070 (32-lane waves), Intel i9-10900KF, Windows 11 Pro 10.0.26200, rustc 1.100.0
x86_64-pc-windows-msvc, debugcargo test --workspace --no-fail-fast -- --test-threads=4; the same command onmainbeaa245(this PR's base): 713 passed, 0 failed, 41 ignoredon this head: 723 passed, 0 failed, 41 ignored (+10 over main: the ten new tests in
pe_synthetic.rs, e.g.relocations,tls_directory,every_truncation_is_an_error_or_a_prefix_of_the_truth)SKIPPED (no wave64) on this GPU:
gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwareNot tested
scripts/smoke.ps1(test-only diff)AI use
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T07:17:45Z.
Linux / AMD RDNA3 datapoint.
Merged state: head
1a7f6a5onto mainbeaa245, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 713 passed, 10 failed, 41 ignored. Failures are the known Wine-lane set from my #42 rows plus #718 trio members; nothing here fails because of your change. The hand-built PE image parser tests pass in both layouts, and thexg_oraclesuite is green here.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T10:39:48Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
upstream-sync referenced this pull request2026-11-25 16:10:51 +00:00
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:41:09Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:15:23Z.
Triage (#1607) – head
05bee6fNo open or merged PR adds a synthetic-image test of
xcl::pe. #1367, #1397 and #1216 (open) change the parser's bounds checks, so whichever merges second may need its expectations adjusted.I checked a sample of the expectations against main's pe.rs by hand (File-layout clamping at SizeOfHeaders and raw ends, the 4096-byte
cstr_atlimit, relocation block errors, export forwarders, the error kinds of the header variants) and found no mismatch. The failing CI job fails in an unrelated existing lib test, before this binary runs.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.