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

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

commit facb8b4197f1da59d4791787fc06a6a3f708bdfc
Author:     James Almer <[email protected]>
AuthorDate: Wed Jan 1 23:58:39 2025 -0300
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 21 17:59:33 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 dea2620798..167ff33d9d 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -1302,6 +1302,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