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 356fef62b4da68b0b95f99c66e941d06f82dccf9
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 14 02:01:14 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Sep 17 01:30:44 2026 +0200

    avfilter/vf_colorconstancy: free only allocated buffers on setup failure
    
    Fixes: invalid free on allocation failure
    Fixes: BvbItG8H5bk7
    Found-by: zhang xingxing
    (cherry picked from commit 432679772a56ba1d04f9ba1ccfa24bf7092e4a15)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_colorconstancy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_colorconstancy.c b/libavfilter/vf_colorconstancy.c
index a00de84de8..29a525e872 100644
--- a/libavfilter/vf_colorconstancy.c
+++ b/libavfilter/vf_colorconstancy.c
@@ -221,7 +221,7 @@ static int setup_derivative_buffers(AVFilterContext* ctx, 
ThreadData *td)
             td->data[b][p] = av_calloc(s->planeheight[p] * s->planewidth[p],
                                        sizeof(*td->data[b][p]));
             if (!td->data[b][p]) {
-                cleanup_derivative_buffers(td, b + 1, p);
+                cleanup_derivative_buffers(td, b, p);
                 return AVERROR(ENOMEM);
             }
         }

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