[FFmpeg-devel] [PATCH 2/3] avcodec/magicyuv: correct end of array check in multi VLC parsing
Michael Niedermayer
michael at niedermayer.cc
Sun Oct 22 18:39:50 EEST 2023
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 at niedermayer.cc>
---
libavcodec/magicyuv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c
index 3573db0f0ad..d813f209203 100644
--- a/libavcodec/magicyuv.c
+++ b/libavcodec/magicyuv.c
@@ -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) {
--
2.17.1
More information about the ffmpeg-devel
mailing list