mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-24 06:10:09 +01:00
Bug1808 (crash in Sliding Time Scale/Pitch Shift) PATCHED IN LIB-SRC...
... Error was in the libaries' memory management, causing an out-of-bounds read of a buffer obtained with calloc.
This commit is contained in:
@@ -197,6 +197,7 @@ long ArrayRingBuffer<T> :: nReadable()
|
|||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
void ArrayRingBuffer<T> :: advance(long n) {
|
void ArrayRingBuffer<T> :: advance(long n) {
|
||||||
|
grow(N);
|
||||||
memset(buf+readPos,0,n*sizeof(T));
|
memset(buf+readPos,0,n*sizeof(T));
|
||||||
readPos += n;
|
readPos += n;
|
||||||
if(readPos >= length) {
|
if(readPos >= length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user