[FFmpeg-cvslog] avcodec/movtextdec: Call mov_text_cleanup() on close

Michael Niedermayer git at videolan.org
Mon Mar 6 17:48:47 EET 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Mar  4 19:19:31 2017 +0100| [a9f9b7f5c70e80245983e67b8ed23212d9637645] | committer: Michael Niedermayer

avcodec/movtextdec: Call mov_text_cleanup() on close

Fixes memleak
Fixes: 548/clusterfuzz-testcase-5511470875934720

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=a9f9b7f5c70e80245983e67b8ed23212d9637645
---

 libavcodec/movtextdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c
index 81fd1d6..6de1500 100644
--- a/libavcodec/movtextdec.c
+++ b/libavcodec/movtextdec.c
@@ -521,6 +521,7 @@ static int mov_text_decode_close(AVCodecContext *avctx)
 {
     MovTextContext *m = avctx->priv_data;
     mov_text_cleanup_ftab(m);
+    mov_text_cleanup(m);
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list