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 224b3ff82a avcodec/jpeg2000htdec: Check pLSB
224b3ff82a is described below
commit 224b3ff82af032bc82c4b6125f30a0834bee6b8e
Author: Michael Niedermayer <[email protected]>
AuthorDate: Mon Dec 22 22:56:10 2025 +0100
Commit: michaelni <[email protected]>
CommitDate: Sat Dec 27 21:42:20 2025 +0000
avcodec/jpeg2000htdec: Check pLSB
Fixes: negative shift and other undefined shifts
Fixes:
462335934/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_DEC_fuzzer-4538493775970304
Found-by: continuous fuzzing process
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavcodec/jpeg2000htdec.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/jpeg2000htdec.c b/libavcodec/jpeg2000htdec.c
index 08140e06a9..54b37009c2 100644
--- a/libavcodec/jpeg2000htdec.c
+++ b/libavcodec/jpeg2000htdec.c
@@ -1263,6 +1263,11 @@ ff_jpeg2000_decode_htj2k(const Jpeg2000DecoderContext
*s, Jpeg2000CodingStyle *c
cblk->zbp = S_blk - 1;
pLSB = 30 - S_blk;
+ if (pLSB <= 1 || pLSB >= 31) {
+ avpriv_request_sample(s->avctx, "pLSB %d", pLSB);
+ return AVERROR_PATCHWELCOME;
+ }
+
Scup = (Dcup[Lcup - 1] << 4) + (Dcup[Lcup - 2] & 0x0F);
if (Scup < 2 || Scup > Lcup || Scup > 4079) {
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]