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 716d2a47c565ed41aa18aa59ed38d7e90ce34ccc
Author:     Lynne <[email protected]>
AuthorDate: Mon Jul 13 00:13:59 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Mon Jul 13 19:17:30 2026 +0900

    swscale/ops_dispatch: fix use-after-free when adding opaque ops passes
    
    comp points into p, which is freed before comp->backend is read.
    Use the copy taken before the free.
    
    (cherry picked from commit 4b9c4b9cfb56126dccd9dd4e0c78736d1f5d6ff1)
---
 libswscale/ops_dispatch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/ops_dispatch.c b/libswscale/ops_dispatch.c
index dd166a5f92..2da38fc333 100644
--- a/libswscale/ops_dispatch.c
+++ b/libswscale/ops_dispatch.c
@@ -550,7 +550,7 @@ static int compile_single(const CompileArgs *args, const 
SwsOpList *ops,
                                     input, 0, c.slice_align, c.func_opaque,
                                     NULL, c.priv, c.free, output);
         if (ret >= 0) {
-            (*output)->backend = comp->backend->flags;
+            (*output)->backend = c.backend->flags;
             ff_sws_pass_link_output(*output, link);
         }
         return ret;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to