🐛 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 commit262bf2f3aec5a361cc33ad94d1966de1c108a5f8Parent: 515940d2 changed files +10 -2
- .config/nextest.toml +3 -2
- Cargo.toml +7 -0
.config/nextest.tomlmodified+3 -2
| @@ -7,12 +7,13 @@ slow-timeout = "60s" | ||
| 7 | 7 | # One failure must not hide the others. |
| 8 | 8 | 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 | 12 | [test-groups.heavy] |
| 12 | 13 | max-threads = 2 |
| 13 | 14 | |
| 14 | 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 | 17 | test-group = "heavy" |
| 17 | 18 | |
| 18 | 19 | # 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 | 25 | [profile.dev] |
| 26 | 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 | 35 | # Vendored third-party crate, patched for one clearly marked fix (see below). |
| 29 | 36 | [patch.crates-io] |
| 30 | 37 | # Drops the `pub use proc_macro;` re-export (E0365 future-incompat, rustc |