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 segfaults lateron in ff_ffv1_close(), because said > function presumes that the slice contexts have been allocated. > Fix this by making sure that the number of slice contexts on error is > consistent (namely zero). > > (This issue only affected the FFV1 decoder, because the encoder does not > clean up after itself on init failure.) > > Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@gmail.com> > --- > libavcodec/ffv1.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-)
LGTM thx -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Modern terrorism, a quick summary: Need oil, start war with country that has oil, kill hundread thousand in war. Let country fall into chaos, be surprised about raise of fundamantalists. Drop more bombs, kill more people, be surprised about them taking revenge and drop even more bombs and strip your own citizens of their rights and freedoms. to be continued
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".