forge
Explore
Log in

Don't you dare go Hollow

🐛 A damaged WAV header no longer panics a dev build inside symphonia; the mixed-rate exports and the vp9 stall check run in the heavy group

Browse files at this commit

262bf2f3aec5a361cc33ad94d1966de1c108a5f8Ahmet Kaan GümüşParent: 515940d
.config/nextest.tomlmodified+3 -2
@@ -7,12 +7,13 @@ slow-timeout = "60s"
7 # One failure must not hide the others.7 # One failure must not hide the others.
8 fail-fast = false8 fail-fast = false
9 9
10-# Full decode, export and render runs are the heavy ones: at most two at once.10+# Full decode, export and render runs are the heavy ones: at most two at once. The
11+# mixed-rate exports and the vp9 stall check race their own deadlines, so they wait too.
11 [test-groups.heavy]12 [test-groups.heavy]
12 max-threads = 213 max-threads = 2
13 14
14 [[profile.default.overrides]]15 [[profile.default.overrides]]
15-filter = 'package(engine) and test(/export|decode|render/)'16+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))'
16 test-group = "heavy"17 test-group = "heavy"
17 18
18 # The quick tier for edits in progress: `cargo nextest run -P fast`. It skips the slow19 # The quick tier for edits in progress: `cargo nextest run -P fast`. It skips the slow
Cargo.tomlmodified+7 -0
@@ -25,6 +25,13 @@ edition = "2024"
25 [profile.dev]25 [profile.dev]
26 debug = "line-tables-only"26 debug = "line-tables-only"
27 27
28+# symphonia's WAV reader multiplies a header's channel count by its sample size
29+# in u16 for a log line alone; a damaged header overflows it. Release wraps and
30+# carries on, so a dev build must not panic where a shipped one does not
31+# (media_fuzz damaged_media_never_panics_or_hangs).
32+[profile.dev.package.symphonia-format-riff]
33+overflow-checks = false
34+
28 # Vendored third-party crate, patched for one clearly marked fix (see below).35 # Vendored third-party crate, patched for one clearly marked fix (see below).
29 [patch.crates-io]36 [patch.crates-io]
30 # Drops the `pub use proc_macro;` re-export (E0365 future-incompat, rustc37 # Drops the `pub use proc_macro;` re-export (E0365 future-incompat, rustc