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 d60c1d72c1 avcodec/jpeg2000dec: Make M_b check broader
d60c1d72c1 is described below

commit d60c1d72c1299e683c1d2f86cb4332b4d88348a5
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Dec 22 23:17:24 2025 +0100
Commit:     michaelni <[email protected]>
CommitDate: Tue Dec 23 20:11:29 2025 +0000

    avcodec/jpeg2000dec: Make M_b check broader
    
    Fixes: shift exponent -1 is negative
    Fixes: 
429330004/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_DEC_fuzzer-4733213845291008
    
    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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index de1a73b92b..276c0a6e43 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -2270,8 +2270,8 @@ static inline int tile_codeblocks(const 
Jpeg2000DecoderContext *s, Jpeg2000Tile
                     band->coord[1][0] == band->coord[1][1])
                     continue;
 
-                if ((codsty->cblk_style & JPEG2000_CTSY_HTJ2K_F) && M_b >= 31) 
{
-                    avpriv_request_sample(s->avctx, "JPEG2000_CTSY_HTJ2K_F and 
M_b >= 31");
+                if (M_b >= 31) {
+                    avpriv_request_sample(s->avctx, "M_b >= 31");
                     return AVERROR_PATCHWELCOME;
                 }
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to