Commit 34491c69 authored by multrus's avatar multrus
Browse files

Merge branch...

Merge branch 'basop-2319-clang18-msan-use-of-uninitialized-value-in-lib_com-cldfb_evs_fx-c-952-22' into 'main'

Resolve "[CLANG18] MSAN: use-of-uninitialized-value in lib_com/cldfb_evs_fx.c:952:22"

Closes #2319

See merge request !2737
parents 0aa89070 24df9ef7
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -996,6 +996,11 @@ ivas_error openCldfb(
        return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Cannot allocate memory for CLDFB" );
    }

#ifdef FIX_2319_CLDFB_INIT_FLAGS
    hs->flags = 0;
    move16();
#endif

    hs->type = type;
    move16();

+1 −0
Original line number Diff line number Diff line
@@ -119,6 +119,7 @@
#define FIX_2353_PTR_INIT                               /* FhG: basop issue 2353: initialize prm_sqQ-pointer, to prevent being uninitialized in case of bfi == 1 */
#define FIX_2356_GET_CHAN_ENERGIES                      /* FhG: basop issue 2356: correctly initialize exponents in getChannelEnergies_fx() */
#define FIX_2355_IGF_EXP_POWERSPEC                      /* FhG: basop issue 2355: make sure exp_pPowerSpectrumParameter_fx is initialized in all cases */
#define FIX_2319_CLDFB_INIT_FLAGS                       /* FhG: basop issue 2319: init hs->flags during openCldfb(), to avoid reading of uninitialized memory */

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