summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <quaker66@gmail.com>2014-02-14 16:30:51 +0000
committerDaniel Kolesa <quaker66@gmail.com>2014-02-14 16:30:51 +0000
commit136cf346e9bbf6d60e3fc9899f506de247d88188 (patch)
treee652c37c26a19d4367b1ce25861a3c5cb1c9acca
parent2b4a7b438def96d01a5c0bb85d2c9636773d333d (diff)
evas/common: fix segfaults in evas_map_image_loop.c
-rw-r--r--src/lib/evas/common/evas_map_image_loop.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_map_image_loop.c b/src/lib/evas/common/evas_map_image_loop.c
index b6e6e7bbf4..562f193c22 100644
--- a/src/lib/evas/common/evas_map_image_loop.c
+++ b/src/lib/evas/common/evas_map_image_loop.c
@@ -39,7 +39,12 @@
39 DATA32 val1, val2, val3, val4; 39 DATA32 val1, val2, val3, val4;
40 40
41 u1 = u; 41 u1 = u;
42 if (u1 < 0) u1 = 0;
43 else if (u1 >= swp) u1 = swp - 1;
44
42 v1 = v; 45 v1 = v;
46 if (v1 < 0) v1 = 0;
47 else if (v1 >= shp) v1 = shp - 1;
43 48
44 u2 = u1 + FPFPI1; // next u point 49 u2 = u1 + FPFPI1; // next u point
45 if (u2 >= swp) u2 = swp - 1; 50 if (u2 >= swp) u2 = swp - 1;