This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 1080be28164859f1ea6191c9cb304e1a2b2cb633
Author:     zhang xingxing <[email protected]>
AuthorDate: Fri Nov 6 02:08:08 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Sun Nov 8 15:37:01 2026 +0000

    avcodec/jpeg2000_parser: fix the tile-part length check
    
    This is not a security issue.
    
    Fixes: integer underflow
    Fixes: kgusFCuY3WYo
    Fixes: 
swarm-Unsigned-arithmetic-underflow-in-tile-part-skip_bytes-calculation-d23292
    
    Found-by: zhang xingxing <[email protected]>
    
    Merged frames Replicated through UnModified FFmpeg with ffprobe
    
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/jpeg2000_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/jpeg2000_parser.c b/libavcodec/jpeg2000_parser.c
index a5dcc9c9f1..edf47934d5 100644
--- a/libavcodec/jpeg2000_parser.c
+++ b/libavcodec/jpeg2000_parser.c
@@ -122,7 +122,7 @@ static int find_frame_end(JPEG2000ParserContext *m, const 
uint8_t *buf, int buf_
         }
         if (m->read_tp) { // Find out how many bytes inside Tile part 
codestream to skip.
             if (m->read_tp == 1) {
-                m->skip_bytes = (state64 & 0xFFFFFFFF) - 9 > 0?
+                m->skip_bytes = (state64 & 0xFFFFFFFF) > 9 ?
                                 (state64 & 0xFFFFFFFF) - 9 : 0;
             }
             m->read_tp--;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to