PR #23310 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23310 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23310.patch
Fixes: Timeout Fixes: 503996733/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MJPEG_DEC_fuzzer-4948713016721408 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <[email protected]> >From 8696132be5c70563ab8324b7ba870caab7d7595b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Tue, 2 Jun 2026 02:56:17 +0200 Subject: [PATCH] avcodec/jpeglsdec: only apply color transform to decoded rows Fixes: Timeout Fixes: 503996733/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MJPEG_DEC_fuzzer-4948713016721408 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/jpeglsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c index 7a8bd2f685..3a48334ae1 100644 --- a/libavcodec/jpeglsdec.c +++ b/libavcodec/jpeglsdec.c @@ -501,7 +501,7 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s) if (s->bits <= 8) { uint8_t *src = s->picture_ptr->data[0]; - for (i = 0; i < s->height; i++) { + for (i = 0; i < decoded_height; i++) { switch(s->xfrm) { case 1: for (x = off; x + 2 < w; x += 3) { -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
