Commit 69eac64a authored by malenov's avatar malenov
Browse files

add warning message when re-allocating teh buffer of indices to prevent...

add warning message when re-allocating teh buffer of indices to prevent overwriting of existing indice(s)
parent e3dd0bab
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -942,6 +942,10 @@ ivas_error check_ind_list_limits(

            if ( hBstr->ind_list >= &hBstr->ivas_ind_list_zero[*( hBstr->ivas_max_num_indices )] )
            {
#ifdef DEBUGGING
                fprintf( stderr, "Warning: The maximum number of indices %d has been exceeded in frame %d! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().\n", *( hBstr->ivas_max_num_indices ), frame );
#endif

                /* no available empty slot -> need to re-allocate the buffer */
                ind_list_realloc( hBstr, *( hBstr->ivas_max_num_indices ) + STEP_MAX_NUM_INDICES );
            }