mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-03-13 09:00:40 +08:00
avcodec/prores_raw: Tiles of width less than 16 result in undefined behavior
Fixes: passing zero to __builtin_clz(), which is not a valid argument Fixes: 471569982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PRORES_RAW_DEC_fuzzer-5832576221904896 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:
committed by
michaelni
parent
2ad078b589
commit
be1fd6d9d4
@@ -461,6 +461,9 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
tile->y = (n / s->nb_tw) * s->th;
|
||||
tile->x = (n % s->nb_tw) * s->tw;
|
||||
|
||||
if (avctx->width - tile->x < 16)
|
||||
return AVERROR_PATCHWELCOME;
|
||||
|
||||
offset += size;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user