Re: [FFmpeg-devel] [PATCH 37/40] avcodec/ffv1: Fix segfaults on allocation error

2020-09-16 Thread Michael Niedermayer
On Mon, Sep 14, 2020 at 07:27:44AM +0200, Andreas Rheinhardt wrote: > When allocating FFV1 slice contexts fails, ff_ffv1_init_slice_contexts() > frees everything that it has allocated, yet it does not reset the > counter for the number of allocated slice contexts. This inconsistent > state leads to

[FFmpeg-devel] [PATCH 37/40] avcodec/ffv1: Fix segfaults on allocation error

2020-09-13 Thread Andreas Rheinhardt
When allocating FFV1 slice contexts fails, ff_ffv1_init_slice_contexts() frees everything that it has allocated, yet it does not reset the counter for the number of allocated slice contexts. This inconsistent state leads to segfaults lateron in ff_ffv1_close(), because said function presumes that t