summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_scale_sample.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_scale_sample.c
parente54416200bf4e2e544237424b1b8fb09097b7c08 (diff)
evas - sw render - protect against null pointer surface access
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_scale_sample.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_scale_sample.c b/src/lib/evas/common/evas_scale_sample.c
index 6aaa902cdb..365b6ac957 100644
--- a/src/lib/evas/common/evas_scale_sample.c
+++ b/src/lib/evas/common/evas_scale_sample.c
@@ -70,6 +70,7 @@ evas_common_scale_rgba_sample_draw(RGBA_Image *src, RGBA_Image *dst, int dst_cli
70 int src_w, src_h, dst_w, dst_h; 70 int src_w, src_h, dst_w, dst_h;
71 RGBA_Gfx_Func func; 71 RGBA_Gfx_Func func;
72 72
73 if ((!src->image.data) || (!dst->image.data)) return;
73 if (!(RECTS_INTERSECT(dst_region_x, dst_region_y, dst_region_w, dst_region_h, 74 if (!(RECTS_INTERSECT(dst_region_x, dst_region_y, dst_region_w, dst_region_h,
74 0, 0, dst->cache_entry.w, dst->cache_entry.h))) return; 75 0, 0, dst->cache_entry.w, dst->cache_entry.h))) return;
75 if (!(RECTS_INTERSECT(src_region_x, src_region_y, src_region_w, src_region_h, 76 if (!(RECTS_INTERSECT(src_region_x, src_region_y, src_region_w, src_region_h,