aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2023-10-22 17:06:57 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2023-10-27 18:10:45 +0200
commit4ddf4f5001ca6fd3525e4acb62c19627fdb76f8e (patch)
treed93103fa921938d4c28a9c9cb2adffd2a4154f0c
parentffac64a270a71e79b98d90aa66dc0a3f61bff009 (diff)
downloadffmpeg-4ddf4f5001ca6fd3525e4acb62c19627fdb76f8e.tar.gz
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>
-rw-r--r--libavcodec/magicyuv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c
index 3573db0f0a..d813f20920 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) {