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 e40b02c68778fa149a5b6c7a47442b7e5c9e55fd
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed May 6 02:33:01 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Jun 18 20:30:55 2026 +0200

    avcodec/jpeg2000dec: Clear header derived variables
    
    Fixes: NULL pointer dereference
    
    Found-by: Oguzhan Akkaya with AFL++ fuzzing (May 2026)
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 6631bbc5d47082a6212e3c82fce0215fce2dbac6)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/jpeg2000dec.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index aebf43bc97..a188132aa4 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -2417,8 +2417,14 @@ static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext 
*s)
     memset(s->qntsty, 0, sizeof(s->qntsty));
     memset(s->properties, 0, sizeof(s->properties));
     memset(&s->poc  , 0, sizeof(s->poc));
+    memset(s->roi_shift, 0, sizeof(s->roi_shift));
     s->numXtiles = s->numYtiles = 0;
     s->ncomponents = 0;
+    s->has_ppm = 0;
+    s->isHT = 0;
+    s->precision = 0;
+    s->colour_space = 0;
+    s->pal8 = 0;
 }
 
 static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s)

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

Reply via email to