[FFmpeg-cvslog] avcodec/dvdsubdec: discard accumulated buffer on error
Michael Niedermayer
git at videolan.org
Sat Dec 15 00:38:12 EET 2018
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Dec 6 00:09:37 2018 +0100| [35a603050d6c1f8d6955808e1b13d81cd12f8843] | committer: Michael Niedermayer
avcodec/dvdsubdec: discard accumulated buffer on error
Fixes: Timeout
Fixes: 10992/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVDSUB_fuzzer-5657495410835456
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=35a603050d6c1f8d6955808e1b13d81cd12f8843
---
libavcodec/dvdsubdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
index 632a53adab..741ea9fd1e 100644
--- a/libavcodec/dvdsubdec.c
+++ b/libavcodec/dvdsubdec.c
@@ -595,6 +595,7 @@ static int dvdsub_decode(AVCodecContext *avctx,
}
if (is_menu < 0) {
+ ctx->buf_size = 0;
no_subtitle:
reset_rects(sub);
*data_size = 0;
More information about the ffmpeg-cvslog
mailing list