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

Git pushed a commit to branch master
in repository ffmpeg.

commit 62cf1e1de2e76638aa74adafbfc78b0a57887c33
Author:     zhang xingxing <[email protected]>
AuthorDate: Tue Oct 13 06:39:23 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 18 22:47:35 2026 +0000

    avfilter/vf_unsharp: initialize the alpha filter parameters
    
    Fixes: NULL pointer dereference
    Fixes: cRljeq44cXxS
    Fixes: swarm-Null-deref-when-sharpening-alpha-plane-a2779b
    Regression since: 84f5583078
    NULL pointer dereference Replicated through UnModified FFmpeg with ASAN
    Found-by: zhang xingxing <[email protected]>
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_unsharp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c
index 6d2be4328d..85f451c82c 100644
--- a/libavfilter/vf_unsharp.c
+++ b/libavfilter/vf_unsharp.c
@@ -310,7 +310,7 @@ static int config_input(AVFilterLink *inlink)
     if (ret < 0)
         return ret;
 
-    return 0;
+    return init_filter_param(inlink->dst, &s->alpha, "alpha", inlink->w);
 }
 
 static void free_filter_param(UnsharpFilterParam *fp, int nb_threads)
@@ -331,6 +331,7 @@ static av_cold void uninit(AVFilterContext *ctx)
 
     free_filter_param(&s->luma, s->nb_threads);
     free_filter_param(&s->chroma, s->nb_threads);
+    free_filter_param(&s->alpha, s->nb_threads);
 }
 
 static int filter_frame(AVFilterLink *link, AVFrame *in)

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