Commit 70e0a132 authored by multrus's avatar multrus
Browse files

initialize pointer prm_sqQ, which might be uninitialized in case of bfi == 1

parent 91d6421f
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@
#define FIX_1119_SPLIT_RENDERING_VOIP                   /* FhG: Add split rendering support to decoder in VoIP mode */
#define TMP_1342_WORKAROUND_DEC_FLUSH_BROKEN_IN_SR      /* FhG: Temporary workaround for incorrect implementation of decoder flush with split rendering */
#define FIX_1377_HANDLE_ERROR_CODE                      /* Eri: Add missing error code handling from IVAS_REND_SetObjectIDs */
#define FIX_1387_INIT_PRM_SQQ                           /* FhG: initialize pointer prm_sqQ, which might be uninitialized in case of bfi == 1 */

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

+3 −0
Original line number Diff line number Diff line
@@ -532,6 +532,9 @@ void ivas_mdct_core_invQ(
    set_s( total_nbbits, 0, CPE_CHANNELS );
    set_s( bitsRead, 0, CPE_CHANNELS );
    tmp_concealment_method = 0;
#ifdef FIX_1387_INIT_PRM_SQQ
    prm_sqQ = NULL; /* set prm_sqQ to NULL - in case of bfi == 1 it's not set or needed, but it triggers sanitizers */
#endif

    for ( ch = 0; ch < CPE_CHANNELS; ch++ )
    {