e2e: escape embedded NUL bytes in testtitle string literals #1880
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1880
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1880"
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?
@microwave805 on GitHub · 2026-11-24 22:33 UTC · original
microwave805:e2e-testtitle-escape-nuls→main· +2 −2 · 1 files · 1 commits · opentests/testtitle/src/main.rscontained four raw literal0x00bytes inside byte-string literals on lines 372 and 376 (b"CreateWindowExW...",b"CreateWindowExA...",b"XclTestTitleWindow...",b"test title...") instead of\0escapes. Raw NUL bytes cause editors,rg, and binary-sniffing tools to treatmain.rsas binary, and text pipelines that strip or replace NULs silently break the C-string terminators passed toGetProcAddressandCreateWindowExA.What is in it
tests/testtitle/src/main.rs: replace all four literal0x00bytes on lines 372 and 376 with\0escapes (compiled bytecode is identical; raw0x00count inmain.rsdrops from 4 to 0).Tested
32.0.16.1742), AMD Ryzen 5 5600X, Windows 11 Pro build 22631, Rust1.100.0(stable-x86_64-pc-windows-msvc), DXC1.9.2602.17, debug build.0x00byte count intests/testtitle/src/main.rsdropped from4to0..\scripts\test.ps1on exact head1e54b81(buildsxcl-testtitleand runs the e2e suite): 975 passed, 0 failed, 45 ignored (23GPU testsSKIPPEDon this adapter: 18 wave64 skips — 7 standaloneno wave64+ 11 wave64 subcases — 3 pre-existing per-lane#1426diffs, 1no heap windows, 1 driver-cache disable requiring Windows Developer Mode;XCL_SAMPLE_*env vars unset).Regression run
Not needed: this PR changes only
tests/testtitle/src/main.rs(no runtime code undercrates/xcl/src).Not tested
XCL_SAMPLE_*game-data tests.AI use
\0escapes, ran.\scripts\test.ps1on1e54b81, and drafted this description.@futurepro62 on GitHub · 2026-11-24 23:31 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
1e54b81(on its base689f2db).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::dxil::fuzz_tests: 965 passed, 0 failed, 43 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.#[test]functions in the diff.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 925 passed, 1 failed, 25 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))).--skipleaves out tests that fail on main689f2dbtoo, not because of this PR.heap_window_out_of_memory_falls_back_to_the_switch_form(#1651) and the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests (follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh. Ingpu::dxil::fuzz_tests, seeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card on main as well, with drivers 616.64 and 621.40. With fuzz_tests included, this PR showed the same 4 failures and no others (driver 616.64).XCL_REQUIRE_GPU. Its one failure,gpu::dxil::fuzz_testsseed 540 (res[833]0x7 vs CPU 0x6), happens on main689f2dbtoo.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 01:56 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 03:08 UTC · original
PR #1880 verification on STOR-WINLAB
Head
1e54b812d29c9971e4c5f8bcee6649f3f92c9244matched the requested commit. The diff changes onlytests/testtitle/src/main.rs. The parent blob had four literal NUL bytes. Replacing those four bytes with\0reproduced the PR blob.Tested
DoublePrecisionFloatShaderOps=0, wave range 8–32). Rust1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL1.9.2609.5, unoptimized dev/test builds with debug info disabled.cargo build --workspaceandcargo test --workspace --no-runboth exited 0 outside the Arc lock. Noxcl-testtitlewarnings.xclemitted twofetch_updatedeprecation warnings.cargo test -p xcl-testtitleexited 0 with zero unit tests.cargo test -p xcl --test e2e -- --test-threads=1 --nocaptureunder the Arc lock reported 2 passed, 1 failed, 0 ignored, and 1 explicit skip for missingd3d12SDKLayers.dll. The title passed the changed check for bothCreateWindowExWandCreateWindowExA, including the cloaked 1920×1080 client area. The title later failedRSSetDepthBiasX(#94), drawing blue where green was expected. The full run reproduced both outcomes.cargo test --workspace --no-fail-fast -- --test-threads=4exited 101. The 20 result summaries inpr1880-suite.logtotal 950 passed, 25 failed, 45 ignored. The log contains 22SKIPPEDlines: 17 missing wave64, 3 unsupported per-lane shader operations, 1 missing heap windows, and 1 driver-cache control unavailable. The debug-layer early return was captured by libtest in the full run and is visible in the focused run. Skip paths provide no coverage.0x80070057), 4 shader output mismatches (FMA, mip sampling, f16 high-half preservation, and wave reduction), and the title’s depth-bias failure.Not tested
Pre-PR baseline, other GPU configurations, retail/sample titles, and debug-layer assertions.
AI use
T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1880-suite.logand published this report.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.