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

Git pushed a commit to branch master
in repository ffmpeg.

commit b311c9f626db410fcf4571a55c1f7467fff3f0ce
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Sep 13 02:21:45 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Sep 26 21:15:26 2026 +0000

    swscale: leave sources 65536 pixels and wider to the bilinear scaler
    
    Fixes: signed integer overflow: 2147385240 + 131098 cannot be represented 
in type 'int'
    Fixes: out of array read
    Fixes: p2bTyZBk48yf
    Found-by: DarrenC
---
 libswscale/utils.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libswscale/utils.c b/libswscale/utils.c
index 1bdc7baa54..05b84633ee 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -1221,7 +1221,8 @@ av_cold int ff_sws_init_single_context(SwsContext *sws, 
SwsFilter *srcFilter,
     }
 
     if (i == SWS_FAST_BILINEAR) {
-        if (srcW < 8 || dstW <= 8) {
+        /* the fast bilinear scalers keep the source position in 16.16 fixed 
point */
+        if (srcW < 8 || dstW <= 8 || srcW >= 65536) {
             i = SWS_BILINEAR;
             flags ^= SWS_FAST_BILINEAR | i;
             sws->flags = flags;

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