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

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit 785b54b54175bff1a144bfade571756435782c53
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Fri Oct 4 13:45:19 2024 +0200

    scaling: Fix potential crash when scaling large images
    
    Quick fix for now.
    It would probably be better to change things so that the ImlibScaleInfo
    arrays only contain the needed ranges.
    
    https://git.enlightenment.org/old/legacy-imlib2/issues/26
---
 src/lib/scale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/scale.c b/src/lib/scale.c
index c24dae1..350617d 100644
--- a/src/lib/scale.c
+++ b/src/lib/scale.c
@@ -68,7 +68,7 @@ __imlib_CalcPoints(int sw, int dw_, int b1, int b2, bool aa, int up)
         else
         {
             for (i = 0; i < dd; i++)
-                p[b1 + i] = b1 + (i * ss) / dd;
+                p[b1 + i] = b1 + ((long long)i * ss) / dd;
             i = dw - b2;
         }
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to