Re: [FFmpeg-devel] [PATCH 1/3] avformat/utils: Remove redundant check

2021-03-25 Thread Andreas Rheinhardt
Andreas Rheinhardt: > This check is outdated because the caller doesn't need to check that > the multiplication overflows when using av_realloc_array() (the code > in question used av_realloc() before that); furthermore, the check > is also a remnant of the time in which our allocation functions >

[FFmpeg-devel] [PATCH 1/3] avformat/utils: Remove redundant check

2021-03-23 Thread Andreas Rheinhardt
This check is outdated because the caller doesn't need to check that the multiplication overflows when using av_realloc_array() (the code in question used av_realloc() before that); furthermore, the check is also a remnant of the time in which our allocation functions didn't use size_t parameters.