From cdba2d76dcba2bb8295fb2bb2cc8bda8ccb24b29 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 31 May 2026 20:17:16 +0200 Subject: [PATCH] avcodec/cri: propagate max_pixels to the JPEG tile decoder Fixes: 489941776/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CRI_fuzzer-4845035614175232 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/cri.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/cri.c b/libavcodec/cri.c index f380597238..72f1eff9d8 100644 --- a/libavcodec/cri.c +++ b/libavcodec/cri.c @@ -69,6 +69,7 @@ static av_cold int cri_decode_init(AVCodecContext *avctx) s->jpeg_avctx->flags = avctx->flags; s->jpeg_avctx->flags2 = avctx->flags2; s->jpeg_avctx->idct_algo = avctx->idct_algo; + s->jpeg_avctx->max_pixels = avctx->max_pixels; ret = avcodec_open2(s->jpeg_avctx, NULL, NULL); if (ret < 0) return ret;