Commit 4fe177b0 authored by vaclav's avatar vaclav
Browse files

zero out the buffer at place where it is handled

parent 7d9ac373
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@
#define FIX_2274_OOB_INDEXING_IN_CORRMATRIX             /* FhG: fix OOB indexing complaint */
#define FIX_2278_OOB_INDEXING_IN_CLOSED_LOOP_PIT_SEARCH /* FhG: fix oob indexing USAN complaint */
#define FIX_2287_MCT_MDCT_STEREO_DATA_MALLOC_SIZE       /* FhG: correct allocation size for STEREO_MDCT_DEC_DATA struct */
#define FIX_1487_ACCESS_OF_UNINIT_VAL_FROM_ARR_ISM_DTX  /* FhG: init nb_bits_metadata to zero */
#define FIX_1487_ACCESS_OF_UNINIT_VAL_FROM_ARR_ISM_DTX  /* FhG/VA: init nb_bits_metadata to zero */

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

+6 −0
Original line number Diff line number Diff line
@@ -120,6 +120,12 @@ void ivas_ism_dtx_dec(
            nb_bits_metadata[ch] = nb_bits_metadata[sce_id_dtx];
        }
    }
#ifdef FIX_1487_ACCESS_OF_UNINIT_VAL_FROM_ARR_ISM_DTX
    else
    {
        set_s( nb_bits_metadata, 0, st_ivas->nchan_transport );
    }
#endif

    if ( !st_ivas->bfi )
    {
+0 −4
Original line number Diff line number Diff line
@@ -101,10 +101,6 @@ ivas_error ivas_jbm_dec_tc(
        }
    }

#ifdef FIX_1487_ACCESS_OF_UNINIT_VAL_FROM_ARR_ISM_DTX
    set_s( nb_bits_metadata, 0, MAX_SCE + 1 );
#endif

    /*----------------------------------------------------------------*
     * Decoding + pre-rendering
     *----------------------------------------------------------------*/