Commit aa34b754 authored by multrus's avatar multrus
Browse files

Merge branch...

Merge branch 'basop-2383-clang18-msan-use-of-uninitialized-value-in-lib_dec-dec_tcx_fx-c-1098-13' into 'main'

Resolve "[CLANG18] MSAN: use-of-uninitialized-value in lib_dec/dec_tcx_fx.c:1098:13"

Closes #2383

See merge request !2771
parents 4dd54a59 d331647e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -104,6 +104,7 @@
#define FIX_BASOP_2354_MSAN_DIFF_Q_VALUE                /* Nokia: Initialize Q value of diffuseness in rendering to Q30 */
#define FIX_2371_REMOVE_UNUSED_ISAR_FCNS                /* Dolby: basop issue 2371: remove unused ISAR-related functions */      
#define FIX_2384_INIT_DEQUANT_COV                       /* FhG: basop issue 2384: only read initialized values from Cy_buf_e[k] in ivas_param_mc_dequantize_cov_fx() during renormalization */
#define FIX_2383_INIT_Q_A_ITF                           /* FhG: Initialize Q_A_itf, to avoid reading of uninitialized memory in case ITF is not triggered */

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

+4 −0
Original line number Diff line number Diff line
@@ -1075,6 +1075,10 @@ void decoder_tcx_fx(
            Word16 predictionGain; /* not counted */
            predictionGain = 0;
            move16();
#ifdef FIX_2383_INIT_Q_A_ITF
            Q_A_itf = 15;
            move16();
#endif

            FOR( j = startLine; j < endLine; j++ )
            {