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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 432679772a avfilter/vf_colorconstancy: free only allocated buffers on 
setup failure
432679772a is described below

commit 432679772a56ba1d04f9ba1ccfa24bf7092e4a15
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 14 02:01:14 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Wed Sep 16 21:15:54 2026 +0000

    avfilter/vf_colorconstancy: free only allocated buffers on setup failure
    
    Fixes: invalid free on allocation failure
    Fixes: BvbItG8H5bk7
    Found-by: zhang xingxing
---
 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