From 262bf2f3aec5a361cc33ad94d1966de1c108a5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 6 Nov 2026 19:29:59 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20A=20damaged=20WAV=20header=20no?= =?UTF-8?q?=20longer=20panics=20a=20dev=20build=20inside=20symphonia;=20th?= =?UTF-8?q?e=20mixed-rate=20exports=20and=20the=20vp9=20stall=20check=20ru?= =?UTF-8?q?n=20in=20the=20heavy=20group?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nextest.toml | 5 +++-- Cargo.toml | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.config/nextest.toml b/.config/nextest.toml index 819dc94..19f3174 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -7,12 +7,13 @@ slow-timeout = "60s" # One failure must not hide the others. fail-fast = false -# Full decode, export and render runs are the heavy ones: at most two at once. +# Full decode, export and render runs are the heavy ones: at most two at once. The +# mixed-rate exports and the vp9 stall check race their own deadlines, so they wait too. [test-groups.heavy] max-threads = 2 [[profile.default.overrides]] -filter = 'package(engine) and test(/export|decode|render/)' +filter = 'package(engine) and (test(/export|decode|render/) or binary(audio_mix_rates) or test(=vp9::a_refused_codec_at_a_span_advances_instead_of_stalling))' test-group = "heavy" # The quick tier for edits in progress: `cargo nextest run -P fast`. It skips the slow diff --git a/Cargo.toml b/Cargo.toml index 30d8cea..d96b2e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,13 @@ edition = "2024" [profile.dev] debug = "line-tables-only" +# symphonia's WAV reader multiplies a header's channel count by its sample size +# in u16 for a log line alone; a damaged header overflows it. Release wraps and +# carries on, so a dev build must not panic where a shipped one does not +# (media_fuzz damaged_media_never_panics_or_hangs). +[profile.dev.package.symphonia-format-riff] +overflow-checks = false + # Vendored third-party crate, patched for one clearly marked fix (see below). [patch.crates-io] # Drops the `pub use proc_macro;` re-export (E0365 future-incompat, rustc