jensandClaude Sonnet 5 d713ca50bb Fix VCF coefficient buffer undersized for 4th-order filters
Found while building tools/testhost's regression suite for the
Critical #5 block-size fix: VCF_CalcCoeff_LPF/_HPF/_BPF advance the
coefficient pointer once per (sample, filter-section) pair, but a
4th-order filter uses FILTER_MAX_ORDER/2 = 2 cascaded 2nd-order
sections per sample. VCF_SetBufsize only allocated pCoef with bufsize
entries, not bufsize*sections, so any host block between 4097 and
8192 samples with a 4th-order filter selected wrote past the
allocation.

Confirmed with AddressSanitizer before the fix: heap-buffer-overflow,
WRITE of size 8, exactly 8 bytes past a 393216-byte (8192 x
sizeof(vcf_coef_t)) allocation. Fixed by sizing pCoef for the worst
case. Re-verified with ASan across blockSize 4097/8192/16384/20000 -
zero errors after the fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011dhtwRLARk4eiPngcQykLJ
2026-07-27 20:02:04 +02:00
2025-08-21 07:52:16 +02:00
2025-08-06 22:08:46 +02:00
2025-08-03 10:57:01 +02:00
2026-05-09 08:29:00 +02:00
2025-08-03 10:57:01 +02:00
2025-08-08 13:54:08 +02:00
2026-05-09 08:37:16 +02:00
2025-07-29 20:43:25 +02:00
2015-03-20 16:35:58 +00:00
2026-05-09 08:34:24 +02:00
2023-04-26 22:01:57 +02:00
2014-10-25 07:27:55 +00:00
S
Description
No description provided
90 MiB
Languages
C++ 53.7%
C 36.8%
Makefile 4.1%
MATLAB 2.2%
Roff 1.6%
Other 1.6%