Commit 20caaf8d authored by multrus's avatar multrus
Browse files

Initialize Q_A_itf, to avoid reading of uninitialized memory in case ITF is not triggered

parent c0947d4a
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -102,6 +102,7 @@
#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 */
#define FIX_BASOP_2354_MSAN_DIFF_Q_VALUE                /* Nokia: Initialize Q value of diffuseness in rendering to Q30 */
#define FIX_2383_INIT_Q_A_ITF                           /* FhG: Initialize Q_A_itf, to avoid reading of uninitialized memory in case ITF is not triggered */

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

+4 −0
Original line number Diff line number Diff line
@@ -1075,6 +1075,10 @@ void decoder_tcx_fx(
            Word16 predictionGain; /* not counted */
            predictionGain = 0;
            move16();
#ifdef FIX_2383_INIT_Q_A_ITF
            Q_A_itf = 15;
            move16();
#endif

            FOR( j = startLine; j < endLine; j++ )
            {