You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
avcodec/vp3: Sanity check cropping
Fixes: Timeout
Fixes: 476179563/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_THEORA_fuzzer-5231013478596608
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 228b846407)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -2896,6 +2896,8 @@ static int theora_decode_header(AVCodecContext *avctx, GetBitContext *gb)
|
||||
if (av_image_check_size(visible_width, visible_height, 0, avctx) < 0 ||
|
||||
visible_width + offset_x > s->width ||
|
||||
visible_height + offset_y > s->height ||
|
||||
visible_width + 512 < s->width ||
|
||||
visible_height + 512 < s->height ||
|
||||
visible_width < 18
|
||||
) {
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user