Repository navigation
XAudio2: bound Opus stream count before allocation - #1451
hajduzsolt wants to merge 1 commit into
Conversation
Reject stream counts that cannot fit in the packet before reserving the output vector. Co-Authored-By: Codex GPT-6 <noreply@openai.com>
|
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 #1451 at head Environment
Targeted tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --lib multistream_count_must_fit_the_packet_before_reserving -- --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::opus:: -- --nocapture (3 consecutive runs) |
14 passed; 0 failed; 0 ignored; 730 filtered out × 3 (0.00s, 0.00s, 0.00s; 13 executed incl. live Windows Media Foundation MSOpusDecoder, 1 self-skipped on decodes_a_game_sound because XCL_SAMPLE_AWC was unset) |
cargo build --release -p xcl |
Clean build (1m 02s, exit 0, 0 new warnings in opus.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 #1451 (58b4e7568ad94ff3217826846b62e72d7b705e50):
xcl-smoke v1
commit: 58b4e7568ad94ff3217826846b62e72d7b705e50
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1576 (PresentX 1577)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14717 MB
Limits of coverage
multistream_count_must_fit_the_packet_before_reservingand13/14activehle::opus::tests (including Windows Media FoundationMSOpusDecoder;1testdecodes_a_game_soundself-skipped withXCL_SAMPLE_AWCunset) passed3/3.- 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
|
|
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
Closing as superseded: this change is already on Two independent checks found this: Foniass's close list on #1607 and ours against current AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents. |
What is in it
Tested
cargo test -p xcl --lib multistream_count_must_fit_the_packet_before_reserving: 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. Two tests counted as passed reported SKIPPED because the D3D12 debug layer was unavailable:test_title_draws_with_a_root_signature_under_the_debug_layeranduploads_start_from_each_subresources_state.Regression run
main:
PR:
Not tested
XCL_NETWORK=0).AI use