Fangjun Kuang
f2e01fe8e3
Widen VAD sample positions to int64_t to fix long-stream SIGSEGV. ( #4079 )
...
Fixes #3635
It is for v2.0.0 and breaks the ABI.
CircularBuffer::head_ and tail_ are absolute sample counters that grow
forever. As int32_t they overflow after 2^31 samples (~37 h at 16 kHz);
tail_ % capacity then goes negative and std::copy() writes to an invalid
iterator, crashing long-running VAD streams.
Widen every absolute stream position to int64_t. Counts and capacities
(Push/Pop/Get's n, Size(), capacity) stay int32_t — they are bounded by
buffer memory, not stream duration.
2026-10-22 23:39:59 +08:00
..
2023-02-19 19:36:03 +08:00
2023-07-18 15:44:54 +08:00
2024-10-24 11:15:08 +08:00
2026-10-22 23:39:59 +08:00
2026-10-20 11:09:04 +08:00
2026-04-13 10:11:50 +08:00
2024-10-24 11:15:08 +08:00
2026-02-26 14:25:21 +08:00
2026-01-26 10:34:49 +08:00
2026-04-11 00:38:25 +08:00
2026-10-21 11:48:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-08-11 11:14:09 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-10-20 18:44:24 +08:00
2026-10-20 18:44:24 +08:00
2026-08-11 11:14:09 +08:00
2026-08-11 11:14:09 +08:00
2026-08-11 11:14:09 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-08-11 11:14:09 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-09-09 15:21:14 +08:00
2026-10-20 18:44:24 +08:00
2026-07-09 19:25:44 +08:00
2026-02-10 17:18:59 +08:00
2026-04-11 00:38:25 +08:00
2026-10-20 11:09:04 +08:00
2026-10-22 12:16:36 +08:00
2026-10-22 12:16:36 +08:00
2025-08-27 16:47:53 +08:00
2026-10-20 11:09:04 +08:00
2026-10-22 12:16:36 +08:00
2024-10-24 11:15:08 +08:00