This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 90a285ca78 avcodec/jpeg2000dec: avoid signed overflow in ROI shift
90a285ca78 is described below
commit 90a285ca782ebe633ba40ab123b6ff0cde9085a8
Author: Michael Niedermayer <[email protected]>
AuthorDate: Wed Jul 1 06:09:34 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Tue Jul 7 17:31:26 2026 +0000
avcodec/jpeg2000dec: avoid signed overflow in ROI shift
Fixes:
522402419/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_DEC_fuzzer-5987463315914752
Found-by: continuous fuzzing process
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavcodec/jpeg2000dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index c705f04c44..369377e4fc 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -2104,7 +2104,7 @@ static int decode_cblk(const Jpeg2000DecoderContext *s,
Jpeg2000CodingStyle *cod
val &= INT32_MAX;
/* ROI shift, if necessary */
if (roi_shift && (((uint32_t)val & ~mask) == 0))
- val <<= roi_shift;
+ val = (uint32_t)val << roi_shift;
t1->data[n] = val | sign; /* NOTE: Binary point for reconstruction
value is located in 31 - M_b */
}
}
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]