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

Git pushed a commit to branch release/7.1
in repository ffmpeg.

commit 3a18d60f65f633bcca7916fd9c0f1d0394901438
Author:     James Almer <[email protected]>
AuthorDate: Wed Jan 1 23:58:39 2025 -0300
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Fri Jun 19 15:58:40 2026 +0200

    avcodec/jpeg2000dec: clear array length when freeing it
    
    Fixes NULL pointer dereferences.
    Fixes ticket #11393.
    
    Reviewed-by: Michael Niedermayer <[email protected]>
    Signed-off-by: James Almer <[email protected]>
    (cherry picked from commit 7f9c7f9849a2155224711f0ff57ecdac6e4bfb57)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/jpeg2000dec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index a188132aa4..4c6960e59b 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -1539,6 +1539,7 @@ static int jpeg2000_decode_packet(Jpeg2000DecoderContext 
*s, Jpeg2000Tile *tile,
                 }
             }
             av_freep(&cblk->lengthinc);
+            cblk->nb_lengthinc = 0;
         }
     }
     // Save state of stream

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

Reply via email to