[FFmpeg-cvslog] avcodec/ivi: Free custom blk_vlc

Michael Niedermayer git at videolan.org
Sat May 6 01:34:30 EEST 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat May  6 00:08:38 2017 +0200| [12dea8a5a15343e9c404376c40ca8a1cc9d1479e] | committer: Michael Niedermayer

avcodec/ivi: Free custom blk_vlc

Fixes memleak
Fixes: 1351/clusterfuzz-testcase-minimized-5861971645693952

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=12dea8a5a15343e9c404376c40ca8a1cc9d1479e
---

 libavcodec/ivi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/ivi.c b/libavcodec/ivi.c
index c02addf6f1..866f066862 100644
--- a/libavcodec/ivi.c
+++ b/libavcodec/ivi.c
@@ -1206,6 +1206,9 @@ av_cold int ff_ivi_decode_close(AVCodecContext *avctx)
     if (ctx->mb_vlc.cust_tab.table)
         ff_free_vlc(&ctx->mb_vlc.cust_tab);
 
+    if (ctx->blk_vlc.cust_tab.table)
+        ff_free_vlc(&ctx->blk_vlc.cust_tab);
+
     av_frame_free(&ctx->p_frame);
 
     return 0;



More information about the ffmpeg-cvslog mailing list