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

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

commit ab75f1776a46875e989402eaccc3c871699035f9
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 15 04:00:34 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Sep 17 02:24:42 2026 +0200

    avcodec/cfhd: reset the allocated band sizes when freeing the buffers
    
    Found during review of the fix for the security report
    
    Fixes: NULL pointer dereference
    Fixes: 5cNIJSj1u1Lc/input-frameindex-path.bin / gen-frameindex-path.py
    Fixes: 5cNIJSj1u1Lc
    (cherry picked from commit d66ee0411c3553dc2fa15ff448ad039be5f3d8b9)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/cfhd.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index 128362ac62..fb22eaa795 100644
--- a/libavcodec/cfhd.c
+++ b/libavcodec/cfhd.c
@@ -227,10 +227,11 @@ static void free_buffers(CFHDContext *s)
             s->plane[i].l_h[j] = NULL;
 
         for (int j = 0; j < DWT_LEVELS_3D; j++)
-            p->band[j][0].read_ok =
-            p->band[j][1].read_ok =
-            p->band[j][2].read_ok =
-            p->band[j][3].read_ok = 0;
+            for (unsigned k = 0; k < FF_ARRAY_ELEMS(p->band[j]); k++) {
+                p->band[j][k].a_width  = 0;
+                p->band[j][k].a_height = 0;
+                p->band[j][k].read_ok  = 0;
+            }
     }
     s->a_height = 0;
     s->a_width  = 0;

-- 
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