hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=dea448d40c2ab2480955a0b3776512355d68a70c

commit dea448d40c2ab2480955a0b3776512355d68a70c
Author: Hermet Park <hermetp...@gmail.com>
Date:   Fri Jan 3 20:51:21 2020 +0900

    evas map: ++Safety for range overflow.
    
    This might fix this issue.
    
    {T8199}
---
 src/lib/evas/common/evas_map_image_internal_high.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/evas/common/evas_map_image_internal_high.c 
b/src/lib/evas/common/evas_map_image_internal_high.c
index 3d23782f63..040bab71ac 100644
--- a/src/lib/evas/common/evas_map_image_internal_high.c
+++ b/src/lib/evas/common/evas_map_image_internal_high.c
@@ -391,8 +391,8 @@ _map_triangle_draw_linear(RGBA_Image *src, RGBA_Image *dst,
              if (aa_spans->lines[ay].x[0] > x1) aa_spans->lines[ay].x[0] = x1;
              if (aa_spans->lines[ay].x[1] < x2) aa_spans->lines[ay].x[1] = x2;
           }
-
         if ((x2 - x1) < 1) goto next;
+        if ((x1 >= (cx + cw)) || (x2 <= cx)) goto next;
 
         //Perform subtexel pre-stepping on UV
         dx = 1 - (_xa - x1);

-- 


Reply via email to