projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa3b136
)
evas map: ++safety anti-aliasing processing.
70/200870/1
author
Hermet Park
<hermetpark@gmail.com>
Tue, 5 Mar 2019 08:11:20 +0000
(17:11 +0900)
committer
Hermet Park
<hermetpark@gmail.com>
Tue, 5 Mar 2019 08:15:55 +0000
(17:15 +0900)
there was a potential case that overflow range.
here it kicks it out.
Change-Id: I43736457ee8c4278dbf2e9909d5dd7190f3aa11f
src/lib/evas/common/evas_map_image_aa.c
patch
|
blob
|
history
diff --git
a/src/lib/evas/common/evas_map_image_aa.c
b/src/lib/evas/common/evas_map_image_aa.c
index
6c829ea
..
247ccc2
100644
(file)
--- 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