summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_line_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_line_main.c
parente54416200bf4e2e544237424b1b8fb09097b7c08 (diff)
evas - sw render - protect against null pointer surface access
Diffstat (limited to 'src/lib/evas/common/evas_line_main.c')
-rw-r--r--src/lib/evas/common/evas_line_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_line_main.c b/src/lib/evas/common/evas_line_main.c
index d3abf1a1bf..8f4d160de8 100644
--- a/src/lib/evas/common/evas_line_main.c
+++ b/src/lib/evas/common/evas_line_main.c
@@ -30,6 +30,7 @@ _evas_draw_point(RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y)
30{ 30{
31 RGBA_Gfx_Pt_Func pfunc; 31 RGBA_Gfx_Pt_Func pfunc;
32 32
33 if (!dst->image.data) return;
33 if (!IN_RANGE(x, y, dst->cache_entry.w, dst->cache_entry.h)) 34 if (!IN_RANGE(x, y, dst->cache_entry.w, dst->cache_entry.h))
34 return; 35 return;
35 if ((dc->clip.use) && (!IN_RECT(x, y, dc->clip.x, dc->clip.y, dc->clip.w, dc->clip.h))) 36 if ((dc->clip.use) && (!IN_RECT(x, y, dc->clip.x, dc->clip.y, dc->clip.w, dc->clip.h)))
@@ -60,6 +61,7 @@ evas_common_line_point_draw(RGBA_Image *dst, int clip_x, int clip_y, int clip_w,
60 Eina_Bool no_cuse; 61 Eina_Bool no_cuse;
61 RGBA_Gfx_Pt_Func pfunc; 62 RGBA_Gfx_Pt_Func pfunc;
62 63
64 if (!dst->image.data) return;
63 no_cuse = ((clip_x == 0) && (clip_y == 0) && 65 no_cuse = ((clip_x == 0) && (clip_y == 0) &&
64 ((clip_w == (int)dst->cache_entry.w) && 66 ((clip_w == (int)dst->cache_entry.w) &&
65 (clip_h == (int)dst->cache_entry.h))); 67 (clip_h == (int)dst->cache_entry.h)));