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

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

commit 72a9b4095573524408bc9a35e94ab0744e8debad
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Nov 12 23:08:23 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:53 2026 +0100

    swscale: do nothing for an output slice of height 0
    
    Fixes: out of array write
    Fixes: k8Ars6WKgFA6
    Out of array write Replicated through API with Valgrind
    
    Found during review of the fixes for the security report bKTdZBAokzK8
    
    (cherry picked from commit 5efc835d8909fa16aa1d6de1d487789d1e77ebd8)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libswscale/swscale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 6d28e51399..16a06aa8a7 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1070,7 +1070,7 @@ static int scale_internal(SwsContext *sws,
     }
 
     // do not mess up sliceDir if we have a "trailing" 0-size slice
-    if (srcSliceH == 0)
+    if (srcSliceH == 0 || dstSliceH == 0)
         return 0;
 
     if (sws->gamma_flag && c->cascaded_context[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