Commit 1a90fbe0 authored by vaillancour's avatar vaillancour
Browse files

fix for 2268, preventing pointer outside array in iFFT

parent e3006d54
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -130,7 +130,12 @@ void ifft_rel(
            id = 4 * id;
        }
        step = N_MAX_FFT / n2;

#ifdef FIX_2268_OOB_INDEXING_IN_IFFT
        if( n8 < 2 )
        {
            continue;
        }
#endif
        s = sincos_t_ext + step;
        c = s + N_MAX_FFT / 4;
        s3 = sincos_t_ext + 3 * step;
+1 −0
Original line number Diff line number Diff line
@@ -170,6 +170,7 @@
#define FIX_2274_OOB_INDEXING_IN_CORRMATRIX             /* FhG: fix OOB indexing complaint */
#define FIX_2278_OOB_INDEXING_IN_CLOSED_LOOP_PIT_SEARCH /* FhG: fix oob indexing USAN complaint */
#define FIX_2287_MCT_MDCT_STEREO_DATA_MALLOC_SIZE       /* FhG: correct allocation size for STEREO_MDCT_DEC_DATA struct */
#define FIX_2268_OOB_INDEXING_IN_IFFT                   /* VA: Fix for issue 2268, to silence clang18 */

/* #################### End BE switches ################################## */