Commit f1c16896 authored by multrus's avatar multrus
Browse files

Merge branch...

Merge branch 'basop-2391-clang18-msan-use-of-uninitialized-value-in-lib_dec-hq_hr_dec_fx-c-632-5' into 'main'

Resolve "[CLANG18] MSAN: use-of-uninitialized-value in lib_dec/hq_hr_dec_fx.c:632:5"

Closes #2391

See merge request !2774
parents 943e1a67 f8e21319
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@
#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 */
#define FIX_2382_COPY_AQ_IN_MCT                         /* FhG: basop issue 2382: 2nd instance of prevent copying uninitialized values from Aq_fx[][] to Aq_fx_32[][] in TCX */
#define FIX_2391_INIT_HQ_GENERIC_OFFSET                 /* FhG/Eri: basop issue 2391: make sure hq_generic_offset is initialized inside hq_hr_dec_fx() */

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

+4 −1
Original line number Diff line number Diff line
@@ -435,7 +435,10 @@ void hq_hr_dec_fx(
    move16();

    HQ_DEC_HANDLE hHQ_core = st_fx->hHQ_core;

#ifdef FIX_2391_INIT_HQ_GENERIC_OFFSET
    hq_generic_offset = 0;
    move16();
#endif
    move16();

    Q_audio = 0; /* to avoid compilation warnings */