Make sure the writer position gets reset when allocating new memory buffers,
commitc3a1e2d05cc1d9ddb357bacc92531bd1bebfb977
authorHans Petter Selasky <hps@selasky.org>
Mon, 1 Aug 2022 15:30:36 +0000 (1 17:30 +0200)
committerHans Petter Selasky <hps@selasky.org>
Mon, 1 Aug 2022 15:30:51 +0000 (1 17:30 +0200)
treeb62b2abcca5333b72015f5f4151b53b5307fe232
parentfcdfb79d527edb27fb8117bb111df61af04ffc2c
Make sure the writer position gets reset when allocating new memory buffers,
which may be smaller than the previous one, to avoid out of bounds memory
writes when using the sympathetic resonance effect.

Signed-off-by: Hans Petter Selasky <hps@selasky.org>
src/Effects/CombFilterBank.cpp