Merge branch '598-be-re-insert-assert-to-catch-out-of-memory-access-in-the-ind_list-buffer' into 'main'
[BE] Re-insert assert() to catch out-of-memory access in the ind_list[] buffer
See merge request !820
/* TODO: replace with the warning message below before the finalization of the IVAS codec */
assert(0&&"The maximum number of indices has been exceeded! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().");
#else
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
#endif
/* reallocate the buffer of indices with increased limit */
/* TODO: replace with the warning message below before the finalization of the IVAS codec */
assert(0&&"The maximum number of indices has been exceeded! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().");
#else
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
#endif
/* no available empty slot -> need to re-allocate the buffer */