From bbfd08781df8d9f3845607e73c4a91025abb8406 Mon Sep 17 00:00:00 2001 From: vaclav Date: Mon, 26 Jan 2026 13:50:27 +0100 Subject: [PATCH] FIX_2376_FIX_USAN_PRE_PROC --- lib_com/options.h | 1 + lib_enc/ivas_core_pre_proc_fx.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index c7cd38dd8..fe2316038 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -107,6 +107,7 @@ #define FIX_2330_CLANG_18_WARNINGS_REND /* FhG: Fix renderer warnings */ #define FIX_BASOP_2350_HARM_0B_BWE /* VA: basop issue 2350: harmonization of the 0b BWE */ #define FIX_2349_HARM_FIND_UV /* VA: basop issue 2349: harmonization of find_uv() function */ +#define FIX_2376_FIX_USAN_PRE_PROC /* VA: basop issue 2376: Resolve "USAN: SEGV in ivas_compute_core_buffers_fx() */ /* #################### End BE switches ################################## */ diff --git a/lib_enc/ivas_core_pre_proc_fx.c b/lib_enc/ivas_core_pre_proc_fx.c index a6e8966df..142931191 100644 --- a/lib_enc/ivas_core_pre_proc_fx.c +++ b/lib_enc/ivas_core_pre_proc_fx.c @@ -786,7 +786,11 @@ ivas_error ivas_compute_core_buffers_fx( #endif Word16 *preemp_start_idx = NULL; #ifdef FIX_2344_ALIGN_PREPROC +#ifdef FIX_2376_FIX_USAN_PRE_PROC + Word32 sig_out[STEREO_DFT_OVL_16k + L_FRAME16k + L_FILT16k], max_32; +#else Word32 sig_out[STEREO_DFT_OVL_16k + L_FRAME16k /* = max( L_FRAME16k + STEREO_DFT_OVL_16k, L_FRAME16k + L_FILT16k + lMemRecalc_16k ) */], max_32; +#endif #else Word32 sig_out[960], max_32; #endif -- GitLab