From da2edfe9aecd00f5c130d319192a392069bf3c6f Mon Sep 17 00:00:00 2001 From: lambdatiger Date: Wed, 18 Dec 2024 06:24:04 -0600 Subject: [PATCH] Extension - Fix array index out-of-bounds (#1310) --- extensions/src/ACRE2Core/AcreDsp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/src/ACRE2Core/AcreDsp.cpp b/extensions/src/ACRE2Core/AcreDsp.cpp index 5c0b11c3c..686cf339e 100644 --- a/extensions/src/ACRE2Core/AcreDsp.cpp +++ b/extensions/src/ACRE2Core/AcreDsp.cpp @@ -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]; } }