summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_polygon_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-10 12:47:27 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-10 12:47:27 +0900
commit03fccbd543a4248b400a8dba75125655a8953e5f (patch)
tree86df2796ccf9307641ab2c102fbbe7e23d82c5d3 /src/lib/evas/common/evas_polygon_main.c
parente54416200bf4e2e544237424b1b8fb09097b7c08 (diff)
evas - sw render - protect against null pointer surface access
Diffstat (limited to 'src/lib/evas/common/evas_polygon_main.c')
-rw-r--r--src/lib/evas/common/evas_polygon_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_polygon_main.c b/src/lib/evas/common/evas_polygon_main.c
index 52dd180665..2d14e8d9aa 100644
--- a/src/lib/evas/common/evas_polygon_main.c
+++ b/src/lib/evas/common/evas_polygon_main.c
@@ -137,6 +137,7 @@ evas_common_polygon_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Po
137 int ext_x, ext_y, ext_w, ext_h; 137 int ext_x, ext_y, ext_w, ext_h;
138 int *sorted_index; 138 int *sorted_index;
139 139
140 if (!dst->image.data) return;
140#ifdef HAVE_PIXMAN 141#ifdef HAVE_PIXMAN
141# ifdef PIXMAN_POLY 142# ifdef PIXMAN_POLY
142 pixman_op_t op = PIXMAN_OP_SRC; // _EVAS_RENDER_COPY 143 pixman_op_t op = PIXMAN_OP_SRC; // _EVAS_RENDER_COPY
@@ -325,6 +326,7 @@ evas_common_polygon_rgba_draw(RGBA_Image *dst, int ext_x, int ext_y, int ext_w,
325 int yy0, yy1, yi; 326 int yy0, yy1, yi;
326 int *sorted_index; 327 int *sorted_index;
327 328
329 if (!dst->image.data) return;
328 if ((ext_w <= 0) || (ext_h <= 0)) return; 330 if ((ext_w <= 0) || (ext_h <= 0)) return;
329 331
330 evas_common_cpu_end_opt(); 332 evas_common_cpu_end_opt();