summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_map_image_internal_high.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2020-01-03 20:51:21 +0900
committerHermet Park <hermetpark@gmail.com>2020-01-03 20:54:26 +0900
commitdea448d40c2ab2480955a0b3776512355d68a70c (patch)
tree4963f4f90b08379fed9d8fed2d9548187ea1e2fb /src/lib/evas/common/evas_map_image_internal_high.c
parentd5463dfb1a083a906ad525e05a7c137ef775fbe2 (diff)
evas map: ++Safety for range overflow.
This might fix this issue. {T8199}
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_map_image_internal_high.c2
1 files changed, 1 insertions, 1 deletions
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,
391 if (aa_spans->lines[ay].x[0] > x1) aa_spans->lines[ay].x[0] = x1; 391 if (aa_spans->lines[ay].x[0] > x1) aa_spans->lines[ay].x[0] = x1;
392 if (aa_spans->lines[ay].x[1] < x2) aa_spans->lines[ay].x[1] = x2; 392 if (aa_spans->lines[ay].x[1] < x2) aa_spans->lines[ay].x[1] = x2;
393 } 393 }
394
395 if ((x2 - x1) < 1) goto next; 394 if ((x2 - x1) < 1) goto next;
395 if ((x1 >= (cx + cw)) || (x2 <= cx)) goto next;
396 396
397 //Perform subtexel pre-stepping on UV 397 //Perform subtexel pre-stepping on UV
398 dx = 1 - (_xa - x1); 398 dx = 1 - (_xa - x1);