Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-12-06 02:09:37 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2018-12-15 01:24:20 +0300
commit35a603050d6c1f8d6955808e1b13d81cd12f8843 (patch)
tree1f2da0ee768a94236ea42329272c5459ecf91273 /libavcodec/dvdsubdec.c
parent52ba824c65817c1db6aad41c470dde7162252036 (diff)
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@niedermayer.cc>
Diffstat (limited to 'libavcodec/dvdsubdec.c')
-rw-r--r--libavcodec/dvdsubdec.c1
1 files changed, 1 insertions, 0 deletions
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;