aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-03-11 20:25:48 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2022-04-06 20:27:35 +0200
commit1064cf413aa68e2d365c910716fb1698f3374968 (patch)
tree9883b5993154969f1523b37475340f2b4a8f3c21 /libavcodec
parent326dafe40afabe604a1ca00fc56eb6e1db897ddd (diff)
downloadffmpeg-1064cf413aa68e2d365c910716fb1698f3374968.tar.gz
avcodec/mjpegbdec: Set buf_size
Fixes: Timeout Fixes: 45170/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MJPEGB_fuzzer-5874820431085568 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')
-rw-r--r--libavcodec/mjpegbdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mjpegbdec.c b/libavcodec/mjpegbdec.c
index 19875a2ddb..3fab4a66bc 100644
--- a/libavcodec/mjpegbdec.c
+++ b/libavcodec/mjpegbdec.c
@@ -57,6 +57,7 @@ static int mjpegb_decode_frame(AVCodecContext *avctx,
buf_end = buf + buf_size;
s->got_picture = 0;
s->adobe_transform = -1;
+ s->buf_size = buf_size;
read_header:
/* reset on every SOI */