[FFmpeg-cvslog] avformat/swfdec: Fix memleak on error
Michael Niedermayer
git at videolan.org
Mon Aug 22 02:35:40 EEST 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Aug 22 01:01:44 2016 +0200| [d7633ed7a59a1e511f528426dc6c9660cc09bdff] | committer: Michael Niedermayer
avformat/swfdec: Fix memleak on error
Fixes: 9eb9cf5b8c26dd0fa7107ed0348dcc1f/signal_sigabrt_7ffff6ae7c37_8925_1f676b5229d009f2b56dfd9e149fa6ba.swf
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d7633ed7a59a1e511f528426dc6c9660cc09bdff
---
libavformat/swfdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c
index 20f1568..3268c0a 100644
--- a/libavformat/swfdec.c
+++ b/libavformat/swfdec.c
@@ -397,6 +397,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
if (linesize * height > pkt->size) {
res = AVERROR_INVALIDDATA;
+ av_packet_unref(pkt);
goto bitmap_end;
}
More information about the ffmpeg-cvslog
mailing list