From 9c3690d371b7c439f3d8392c883c3eedea2a9412 Mon Sep 17 00:00:00 2001 From: "andrey.bychkov" Date: Thu, 6 Aug 2026 10:18:30 +0300 Subject: [PATCH] fix(PIFFT_float): correct plan entry size from 4 to 8 The float FFT plan generator wrote 8 ints per entry (indices +0..+7) but declared entrysize=4, causing heap overwrite into the next entry and incorrect plan array sizing. --- libs/main/math/pifft.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/main/math/pifft.cpp b/libs/main/math/pifft.cpp index 129328d0..afdbc6f2 100644 --- a/libs/main/math/pifft.cpp +++ b/libs/main/math/pifft.cpp @@ -1205,7 +1205,7 @@ void PIFFT_float::ftbase_ftbasegenerateplanrec(int n, ae_int_t stackptr, int debugi) { int k, m, n1, n2, esize, entryoffset; - int ftbase_ftbaseplanentrysize = 4; + int ftbase_ftbaseplanentrysize = 8; int ftbase_ftbasecffttask = 0; int ftbase_fftcooleytukeyplan = 0; int ftbase_fftbluesteinplan = 1;