Repository navigation
XAudio2: reject invalid XMA stream channel counts - #1446
hajduzsolt wants to merge 1 commit into
Conversation
Reject zero-channel and more-than-stereo streams before constructing fixed-size decoder state. Co-Authored-By: Codex GPT-6 <noreply@openai.com>
…README Integrates 12 additional open upstream PRs on top of upstream/main (b7aa9f3): - xcl-dev#1432: GFX10 to DXGI format mappings, depth SRVs, and byte sizing - xcl-dev#1447: Arena::take overflow/alignment and Uma::free pool validation - xcl-dev#1441: drop SC_KEYMENU so the window is never frozen in menu mode - xcl-dev#1431, xcl-dev#1436: TLS directory sizing/alignment and RegisterClassExA checks - xcl-dev#1430, xcl-dev#1446: XGameSave quota/URL and XAudio2 XMA channel validation - xcl-dev#1415, xcl-dev#1433: VFS merged-directory sync and CreateFile2 checks - xcl-dev#1418: XGameRuntime device association synchronization - xcl-dev#1410, xcl-dev#1413: wave64 form logging and XCL_SAFE_BARRIER cache bypass Also removes duplicate a_huge_constant_count_has_no_layout test left from pre-applying xcl-dev#1290 before upstream merged it, and updates README.md. Verified under GE-Proton11-14 (RX 9060 XT / RADV): - Release build (x86_64-pc-windows-msvc): ok (22.05s) - Proton unit test sweep across all merged/touched modules: 209 passed, 2 failed (known Wine/vkd3d-proton diffs: xma2_source_voice current_buffer_context before Start, and vkd3d-proton accepting UNORDERED_ACCESS without UAV flag), 1 ignored, 0 skipped.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Test report for Tested
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the commands on this machine and wrote this report from those runs. |
|
NVIDIA test report for
|
|
Independent desktop NVIDIA verification of PR #1446 at head Environment
Targeted tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --lib decoder_rejects_invalid_per_stream_channel_counts -- --nocapture (3 consecutive runs) |
1 passed; 0 failed; 0 ignored; 743 filtered out × 3 (0.00s, 0.00s, 0.00s, 0 skipped) |
cargo test --release -p xcl --lib hle::xma2:: -- --nocapture (3 consecutive runs) |
8 passed; 0 failed; 0 ignored; 736 filtered out × 3 (0.00s, 0.00s, 0.00s, 0 skipped) |
cargo build --release -p xcl |
Clean build (1m 05s, exit 0, 0 new warnings in xma2/mod.rs) |
Paired quiet 60 s retail smoke (title: 29640639)
(Note: scripts/smoke.ps1 at b7aa9f3b predates 9683e7a6 and printed the local folder basename on title:; replaced below with the standard 9683e7a6 title hash 29640639, with all measured fields verbatim.)
Exact parent & merge-base (b7aa9f3bd212088e0d927439284dc5ed325ce3c7):
xcl-smoke v1
commit: b7aa9f3bd212088e0d927439284dc5ed325ce3c7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1598 (PresentX 1599)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 14719 MB
PR #1446 (a7f5d8be9b4d131f801ca3716d9843363f4df875):
xcl-smoke v1
commit: a7f5d8be9b4d131f801ca3716d9843363f4df875
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1585 (PresentX 1585)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14720 MB
Limits of coverage
decoder_rejects_invalid_per_stream_channel_countsand all8/8hle::xma2::unit tests (0skipped) passed3/3, directly verifying rejection of invalid per-stream XMA channel counts.- The 60 s retail smoke confirms steady 60 Hz runtime non-regression (
0device removals,0crashes); single-run frame/commit delta vs. parent reflects normal startup variance.
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
|
merge-check claim |
|
merge-check |
|
merge-check
|
|
#1886 made the same per-stream channel check in AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
What is in it
crates/xcl/src/hle/xma2/mod.rs: validate each stream channel count and test invalid and valid synthetic configurations. Tested - Windows 11 Pro x64 build 26300, AMD Ryzen 7 9800X3D, AMD Radeon RX 9070 XT 16 GB, driver 32.0.32029.2010; Rust 1.98.1 MSVC, debug. -cargo test -p xcl --lib decoder_rejects_invalid_per_stream_channel_counts: fails without the guard and passes with it (1 passed, 0 failed). -cargo test --workspace -- --test-threads=4 --nocapture: 771 passed, 0 failed, 41 ignored. The reported passes include tests that return early. - SKIPPED:test_title_draws_with_a_root_signature_under_the_debug_layeranduploads_start_from_each_subresources_state(D3D12 debug layer unavailable). Regression run - [ ] Retail smoke runs pending human verification. main: not run PR: not run Not tested - Retail title and D3D12 debug-layer validation. Parsed XMA headers already validate their individual stream counts; this covers direct constructor configurations. AI use - Codex (GPT-6): wrote implementation and unit tests, ran validation, and drafted this description.Tested
cargo test --workspace -- --test-threads=4passed.Regression run
main:
PR:
Not tested
XCL_NETWORK=0) and NVIDIA / wave32-only GPUs.AI use