diff --git a/lib_com/options.h b/lib_com/options.h index bc6458d295bb9ed29e0f0cb866d74d3172401c88..05854cd8c906fc812c7b8d1bd479b939cb9b6140 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -207,6 +207,7 @@ #define FIX_485_STATIC_BUFFERS /* FhG: move static buffers in DirAC parameter estimator to the DirAC struct */ +#define FIX_I503_ASAN_ERROR_IND_LIST /* VA: fix issue #503: address sanitizer error with IND_LIST_DYN */ /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ diff --git a/lib_enc/ivas_qmetadata_enc.c b/lib_enc/ivas_qmetadata_enc.c index 40d5bff892bbe423454478a822e67b0cf968be98..3bbf084a7edcb03b488ea466a81f44a9dcbae1d6 100644 --- a/lib_enc/ivas_qmetadata_enc.c +++ b/lib_enc/ivas_qmetadata_enc.c @@ -2222,7 +2222,11 @@ void restore_metadata_buffer( int16_t i; #ifdef IND_LIST_DYN +#ifdef FIX_I503_ASAN_ERROR_IND_LIST + for ( i = next_ind_start; i < hMetaData->nb_ind_tot; i++ ) +#else for ( i = next_ind_start; i <= hMetaData->nb_ind_tot; i++ ) +#endif #else for ( i = next_ind_start; i <= hMetaData->next_ind; i++ ) #endif