Commit 667b7bee authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Merge branch...

Merge branch 'basop-2357-clang18-msan-use-of-uninitialized-value-in-lib_rend-ivas_dirac_dec_binaural_functions_fx' into 'main'

Resolve "[CLANG18] MSAN: use-of-uninitialized-value in lib_rend/ivas_dirac_dec_binaural_functions_fx.c:6583:59"

Closes #2357

See merge request !2757
parents 34491c69 86b211c7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -120,6 +120,7 @@
#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 */
#define FIX_BASOP_2357_OBJECT_EDIT_MSAN                 /* Nokia: basop issue 2357: initialize missing exponents in object edit */

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

+8 −0
Original line number Diff line number Diff line
@@ -344,8 +344,16 @@ ivas_error ivas_omasa_data_open_fx(
        move16();
        hMasaIsmData->preprocEneTarget_fx[band_idx] = 0;
        move32();
#ifdef FIX_BASOP_2357_OBJECT_EDIT_MSAN
        hMasaIsmData->preprocEneTarget_e[band_idx] = 0;
        move16();
#endif
        hMasaIsmData->preprocEneRealized_fx[band_idx] = 0;
        move32();
#ifdef FIX_BASOP_2357_OBJECT_EDIT_MSAN
        hMasaIsmData->preprocEneRealized_e[band_idx] = 0;
        move16();
#endif
    }

    hMasaIsmData->objectsEdited = 0;