mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/magicyuv: correct end of array check in multi VLC parsing
Fixes: out of array write Fixes: 63390/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MAGICYUV_fuzzer-5144552979431424.fuzz 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
ffac64a270
commit
4ddf4f5001
@ -299,7 +299,7 @@ static int magy_decode_slice(AVCodecContext *avctx, void *tdata,
|
||||
return ret;
|
||||
|
||||
for (k = 0; k < height; k++)
|
||||
READ_PLANE(dst, i, 1, 5)
|
||||
READ_PLANE(dst, i, 1, 7)
|
||||
}
|
||||
|
||||
switch (pred) {
|
||||
|
Loading…
Reference in New Issue
Block a user