Commit b82ec398 authored by multrus's avatar multrus
Browse files

Merge branch '2077_ref_portFltMr2266' into 'ivas-float-update'

Port Flt MR 2066 to ivas-float-update - [MSAN Clang 18] use-of-uninitialized value in ivas_mdct_core_invQ

See merge request !2335
parents 4e2c485d fcb20132
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -197,6 +197,7 @@
#define FIX_938_COMPILER_WARNING                        /* FhG: Fix compiler warning in ivas_mdct_core_reconstruct() */
#define FIX_1376_MISSING_ISM_METADATA                   /* FhG: IVAS_rend: throw error if there exists an ISM input without a corresponding metadata file path */
#define FIX_1385_INIT_IGF_STOP_FREQ                     /* FhG: Initialize infoIGFStopFreq in init_igf_dec() */
#define FIX_1387_INIT_PRM_SQQ                           /* FhG: initialize pointer prm_sqQ, which might be uninitialized in case of bfi == 1 */

/* #################### End BASOP porting switches ############################ */

+3 −0
Original line number Diff line number Diff line
@@ -532,6 +532,9 @@ void ivas_mdct_core_invQ(
    set_s( total_nbbits, 0, CPE_CHANNELS );
    set_s( bitsRead, 0, CPE_CHANNELS );
    tmp_concealment_method = 0;
#ifdef FIX_1387_INIT_PRM_SQQ
    prm_sqQ = NULL; /* set prm_sqQ to NULL - in case of bfi == 1 it's not set or needed, but it triggers sanitizers */
#endif

    for ( ch = 0; ch < CPE_CHANNELS; ch++ )
    {