hermet pushed a commit to branch master.

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

commit 40bc81ae2ba30c371439fde3381cba16bf2b0677
Author: Hermet Park <[email protected]>
Date:   Tue Mar 5 17:11:20 2019 +0900

    evas map: ++safety anti-aliasing processing.
    
    there was a potential case that overflow range.
    here it kicks it out.
---
 src/lib/evas/common/evas_map_image_aa.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/lib/evas/common/evas_map_image_aa.c 
b/src/lib/evas/common/evas_map_image_aa.c
index 6c829eac17..247ccc2367 100644
--- a/src/lib/evas/common/evas_map_image_aa.c
+++ b/src/lib/evas/common/evas_map_image_aa.c
@@ -234,8 +234,12 @@ _calc_aa_edges_internal(Line *spans, int eidx, int ystart, 
int yend)
         calc_horiz_coverage(spans, eidx, y, tx[0], tx[1]);
      }
    else
-     calc_vert_coverage(spans, eidx, (y + 1), (edge_diff.y + 2),
-                        (prev_dir & 0x00000001));
+     {
+        ++y;
+        if (y > yend) y = yend;
+        calc_vert_coverage(spans, eidx, y, (edge_diff.y + 2),
+                           (prev_dir & 0x00000001));
+     }
 }
 
 static void

-- 


Reply via email to