mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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>
This commit is contained in:
parent
bd3a03db9a
commit
d1bf5b7d96
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user