Skip to content

Commit

Permalink
Extension - Fix array index out-of-bounds (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdatiger authored Dec 18, 2024
1 parent ad359bd commit da2edfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/src/ACRE2Core/AcreDsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Dsp {
if (divisor < 5)
divisor = 5;
for (int i = 0; i < count; i += divisor) {
for (int x = 1; x < divisor && i + value < count; x++) {
for (int x = 1; x < divisor && i + x < count; x++) {
samples[i + x] = samples[i];
}
}
Expand Down

0 comments on commit da2edfe

Please sign in to comment.