[FFmpeg-devel] [PATCH] avcodec/movtextdec: Call mov_text_cleanup() on close
Michael Niedermayer
michael at niedermayer.cc
Sat Mar 4 21:58:48 EET 2017
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>
---
libavcodec/movtextdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c
index 81fd1d6deb..6de15004fc 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;
}
--
2.11.0
More information about the ffmpeg-devel
mailing list