1
0
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:
Michael Niedermayer 2023-10-22 17:06:57 +02:00
parent ffac64a270
commit 4ddf4f5001
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -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) {