Browse Source

Fix out of bounds buffer read in drowaudio-reverb

Signed-off-by: falkTX <falktx@falktx.com>
tags/2021-01-15^0
falkTX 3 years ago
parent
commit
575d56057b
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ports-legacy/drowaudio-common/dRowAudio_TappedDelayLine.cpp

+ 1
- 1
ports-legacy/drowaudio-common/dRowAudio_TappedDelayLine.cpp View File

@@ -222,7 +222,7 @@ void TappedDelayLine::processSamples (float* const samples,
const float in = samples[i];
// incriment buffer position and store new sample
if(++bufferWritePos > bufferSize)
if(++bufferWritePos >= bufferSize)
bufferWritePos = 0;
float *bufferInput = &pfDelayBuffer[bufferWritePos];
*bufferInput = 0;


Loading…
Cancel
Save