Unverified Commit 55ef90d1 authored by norvell's avatar norvell
Browse files

Add FIX_1480_CLANG18_MSAN_UNINIT_VARIABLE to resolve clang-18 MSAN error

parent b02a9084
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@
#define FIX_1904_HARM_GSC_ENC                           /* VA: #1904 Harmonization of EVS and IVAS GSC code */
#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 ################################## */

+6 −1
Original line number Diff line number Diff line
@@ -166,7 +166,12 @@ void ivas_hq_hr_dec_fx(
    Word16 csw_flag1, csw_flag2;

    HQ_DEC_HANDLE hHQ_core = st_fx->hHQ_core;

#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;
    move16();
    move16();
#endif
    move16();
    move16();