Commit 9e911547 authored by Jan Kiene's avatar Jan Kiene
Browse files

init variable to fix msan complaint

parent 2b2b178a
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -164,6 +164,7 @@
#define FIX_2235_TD_RENDERER_WORD16                     /* Eri: For float: small synch with BASOP, removing unnecessary abs. BASOP: Use Word16 in TD renderer without converting to Word32 */
#define FIX_FLOAT_1526_DIRAC_MEM_LEAK                   /* FhG: potential memory leak in DirAC handles in case of format switching */
#define ALIGN_ACELP_CORE                                /* VA: align ACELP core functions with BASOP */
#define FIX_1532_MSAN_ERR_AMR_FIRST_FRAME_IS_SID        /* FhG: fix msan complaint in AMR-WB when first frame is an SID */

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

+7 −0
Original line number Diff line number Diff line
@@ -434,6 +434,13 @@ void hf_synth_amr_wb(
        }
    }

#ifdef FIX_1532_MSAN_ERR_AMR_FIRST_FRAME_IS_SID
    /* Initialize to fix clang-18 sanitizer complaint */
    for ( i = 0; i < NB_SUBFR; ++i )
    {
        HF_corr_gain[i] = 1.0f;
    }
#endif
    if ( core_brate == ACELP_23k85 )
    {
        for ( i = 0; i < NB_SUBFR; i++ )