Commit 015d279f authored by TYAGIRIS's avatar TYAGIRIS
Browse files

Merge branch '615-ubsan-negative-indexing-of-array-in-ivas_get_spar_md_from_dirac' into 'main'

Fix for UBSAN issue 615

See merge request !849
parents 808d9ba5 6816e37a
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1766,7 +1766,11 @@ void ivas_get_spar_md_from_dirac(
    {
        for ( band = start_band; band < end_band; band++ )
        {
#ifdef FIX_615_UBSAN_SPAR_TO_DIRAC
            ndm = hSpar_md_cfg->num_dmx_chans_per_band[band];
#else
            ndm = hSpar_md_cfg->num_dmx_chans_per_band[band - 1];
#endif

            /*SPAR from DirAC*/
            set_f( response_avg, 0.0f, MAX_OUTPUT_CHANNELS );
+1 −0
Original line number Diff line number Diff line
@@ -203,6 +203,7 @@
#define FIX_619_ADD_UNDEF_VAL_FOR_CONCEALMENT_MODE      /* FhG: fix usan error */
#define FIX_622_SILENCE_USAN_WARNING                    /* FhG: silenceusan warning in ifft code */

#define FIX_615_UBSAN_SPAR_TO_DIRAC                     /*Dlb : Fix for UBSAN issue 615*/
/* ################## End BE DEVELOPMENT switches ######################### */