Commit aec21e44 authored by vaclav's avatar vaclav
Browse files

Merge branch...

Merge branch 'float-1478-clang18-msan-use-of-uninitialized-value-in-lib_com-gs_noisefill-c-271-13' into 'main'

float-1478-clang18-msan-use-of-uninitialized-value-in-lib_com-gs_noisefill

See merge request !2461
parents 0b14a5fe d276e07f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -589,11 +589,19 @@ void highband_exc_dct_in(

    if ( bfi || core_brate < 6000 || ( core_brate < 8600 && coder_type == UNVOICED ) )
    {
#ifndef FIX_1478_UNINIT_ON_BFI
        set_f( noisepb, 0.4f, MBANDS_GN );
#else
        set_f( noisepb, 0.4f, last_bin );
#endif
    }
    else if ( GSC_IVAS_mode == 3 || ( GSC_IVAS_mode > 0 && GSC_noisy_speech == 1 ) )
    {
#ifndef FIX_1478_UNINIT_ON_BFI
        set_f( noisepb, 0.4f, MBANDS_GN16k );
#else
        set_f( noisepb, 0.4f, last_bin );
#endif
    }
    else
    {
@@ -607,7 +615,11 @@ void highband_exc_dct_in(

    if ( GSC_IVAS_mode == 0 && GSC_noisy_speech && !bfi && element_mode <= IVAS_SCE )
    {
#ifndef FIX_1478_UNINIT_ON_BFI
        set_f( noisepb, 0.1f, MBANDS_GN );
#else
        set_f( noisepb, 0.1f, last_bin );
#endif
    }

    if ( core_brate < 6000 && coder_type <= UNVOICED )
+1 −0
Original line number Diff line number Diff line
@@ -175,6 +175,7 @@
#define FIX_2271_OOB_INDEXING_IN_PIT_OL2                /* VA: Fix for issue 2271, to silence clang18 */
#define FIX_2273_OOB_INDEXING_IN_PIT_FR4                /* VA: Fix to silence clang on ptr init */
#define FIX_1449_RENDERER_FRAME_SIZE_UNCLEAR_IN_ISAR    /* Dolby: Fix for issue 1449: renderer frame size unclear in ISAR */
#define FIX_1478_UNINIT_ON_BFI                          /* VA: Fix issue 1478 where a vector is partly un-initialized during bfi */
#define FIX_1827_REMOVE_UNUSED_PSNOISEGEN_ISAR          /* Dolby: remove unused noise generator from ISAR */

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