summaryrefslogtreecommitdiff
path: root/TODO.md
diff options
context:
space:
mode:
authorTom Cooks <tommasogagliardi+github@gmail.com>2026-09-30 08:11:24 -0400
committerTom Cooks <tommasogagliardi+github@gmail.com>2026-09-30 08:11:24 -0400
commite15b89af9889d94eca15380048fc2bf6bbc8e22e (patch)
tree082741a74856fe65204c1cd589c5f53d54f625bf /TODO.md
parent68402ebbdacfc95e40bd856caa8c4cb83bef8342 (diff)
downloadreccoon-e15b89af9889d94eca15380048fc2bf6bbc8e22e.tar.gz
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.
Diffstat (limited to 'TODO.md')
-rw-r--r--TODO.md2
1 files changed, 2 insertions, 0 deletions
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: <n> > <n-1>` when the trim overshot the buffer).