Unverified Commit 81f759d6 authored by norvell's avatar norvell
Browse files

Add FIX_1480_CLANG18_MSAN_UNINIT_VARIABLE to resolve clang-18 MSAN error

parent 0c5691e6
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -172,6 +172,7 @@
#define FIX_2287_MCT_MDCT_STEREO_DATA_MALLOC_SIZE       /* FhG: correct allocation size for STEREO_MDCT_DEC_DATA struct */
#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_1480_CLANG18_MSAN_UNINIT_VARIABLE           /* Eri: Initializes two variables in HQ decoder. They are not used, but they are passed uninitialized to a function which is caught by clang-18 */

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

+4 −0
Original line number Diff line number Diff line
@@ -137,6 +137,10 @@ void hq_hr_dec(

    HQ_DEC_HANDLE hHQ_core = st->hHQ_core;
    bits_left = num_bits;
#ifdef FIX_1480_CLANG18_MSAN_UNINIT_VARIABLE
    SWB_fenv = NULL; /* Init in case HQ_GEN_SWB/HQ_GEN_FB is not used -- eliminates runtime warning when passed to fill_spectrum */
    hq_generic_offset = 0;
#endif

    /*------------------------------------------------------------------*
     * Initializations