Commit ede969d0 authored by malenovsky's avatar malenovsky
Browse files

Merge branch '503-address-sanitizer-issue-with-ind_list_dyn' into 'main'

Resolve "Address sanitizer issue with `IND_LIST_DYN`"

See merge request !677
parents b74476db b5173cf0
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 */
+4 −0
Original line number Diff line number Diff line
@@ -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