summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_scale_smooth_scaler.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_smooth_scaler.c
parente54416200bf4e2e544237424b1b8fb09097b7c08 (diff)
evas - sw render - protect against null pointer surface access
Diffstat (limited to 'src/lib/evas/common/evas_scale_smooth_scaler.c')
-rw-r--r--src/lib/evas/common/evas_scale_smooth_scaler.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_scale_smooth_scaler.c b/src/lib/evas/common/evas_scale_smooth_scaler.c
index a97faee790..67dd1d6289 100644
--- a/src/lib/evas/common/evas_scale_smooth_scaler.c
+++ b/src/lib/evas/common/evas_scale_smooth_scaler.c
@@ -4,6 +4,7 @@ SCALE_FUNC(RGBA_Image *src, RGBA_Image *dst, int dst_clip_x, int dst_clip_y, int
4 DATA32 *dst_ptr; 4 DATA32 *dst_ptr;
5 int src_w, src_h, dst_w, dst_h; 5 int src_w, src_h, dst_w, dst_h;
6 6
7 if ((!src->image.data) || (!dst->image.data)) return;
7 if (!(RECTS_INTERSECT(dst_region_x, dst_region_y, dst_region_w, dst_region_h, 8 if (!(RECTS_INTERSECT(dst_region_x, dst_region_y, dst_region_w, dst_region_h,
8 0, 0, dst->cache_entry.w, dst->cache_entry.h))) return; 9 0, 0, dst->cache_entry.w, dst->cache_entry.h))) return;
9 if (!(RECTS_INTERSECT(src_region_x, src_region_y, src_region_w, src_region_h, 10 if (!(RECTS_INTERSECT(src_region_x, src_region_y, src_region_w, src_region_h,