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

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

commit d960f78135ae4185730d42b960c84a6a28504d77
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed May 6 02:33:01 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 14 19:38:54 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 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 522186f2df..204816f8ff 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -2120,8 +2120,13 @@ 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->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