Commit b8ec84ec authored by multrus's avatar multrus
Browse files

Merge branch...

Merge branch 'basop-2473-msan-use-of-uninitialized-value-in-lib_dec-er_dec_tcx_fx-c-189-15' into 'main'

Resolve "MSAN: use-of-uninitialized-value in lib_dec/er_dec_tcx_fx.c:189:15"

Closes #2473

See merge request !2871
parents 445fb879 4c9ea0a1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@
#define FIX_2467_RENAME_GSC_FUNCTION                    /* VA: basop issue 2467: Removal of unused function/table and renaming of _ivas_fx versions to default ones. */
#define HARMONIZE_FUNC                                  /* VA: basop issue 2460: Remove duplicated code: various functions */
#define FIX_FLOAT_1536_INIT_NO_PARAM_LPC                /* FhG: make sure no_param_lpc is initialized in core_encode_twodiv() */
#define FIX_BASOP_2871_INIT_Q_SYN_FACTOR                /* FhG: make sure, st_fx->Q_syn_factor gets initialized during decoder startup */

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

+4 −0
Original line number Diff line number Diff line
@@ -969,6 +969,10 @@ ivas_error init_decoder_fx(
    move16();
    st_fx->prev_Q_syn = 0;
    move16();
#ifdef FIX_BASOP_2871_INIT_Q_SYN_FACTOR
    st_fx->Q_syn_factor = 0;
    move16();
#endif

    FOR( i = 0; i < L_Q_MEM; i++ )
    {