From e15b89af9889d94eca15380048fc2bf6bbc8e22e Mon Sep 17 00:00:00 2001 From: Tom Cooks Date: Wed, 30 Sep 2026 08:11:24 -0400 Subject: Fix transcription: streaming resampler trim could overrun the buffer (1.3.1-alpha) The resampler clamped nothing before Arrays.copyOfRange(buffer, drop, length), so when the fractional read position overshot the buffer end, drop could be length+1 and the copy threw IllegalArgumentException: 8194 > 8193. This broke every transcription (base and tiny, any language). Clamp drop to buffer.length. --- TODO.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'TODO.md') diff --git a/TODO.md b/TODO.md index c8d1f54..c41f23e 100644 --- a/TODO.md +++ b/TODO.md @@ -31,3 +31,5 @@ - [ ] Library actions: delete, rename, share, "open with". - [ ] Word-level timestamps and tap-to-seek inside a transcript segment. - [ ] Read embedded markers back from the WAV when there is no JSON sidecar. +- [ ] Add a JUnit regression test for `StreamingResampler` (it could throw + `IllegalArgumentException: > ` when the trim overshot the buffer). -- cgit v1.2.3