summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2020-02-11 09:03:43 -0500
committerMike Blumenkrantz <zmike@samsung.com>2020-02-11 09:03:43 -0500
commit2f852c92e87ba07df0332405e65ecaa00d64a6e5 (patch)
treef6cfade05e94d722830af3d98119e28085888085 /src/lib/evas
parenteb4af00c30f3f80e0d9707bfb44341ef302cda87 (diff)
evas_render: initialize variable
Summary: evas_object_image_load_region_get could be called with following stack. (#0) evas_object_image_load_region_get (#1) evas_render_proxy_subrender (#2) evas_filter_context_proxy_render_all (#3) evas_filter_object_render (#4) evas_object_text_render This means that evas_object_image_load_region_get is called by text object. In this case, the load region value has garbabe, and it leads to invalid memory access which is detected by Assan(T8610). This patch initialize variable before using evas_object_image_load_region_set. Reviewers: Hermet, jsuya, bu5hm4n, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11316
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/canvas/evas_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_render.c b/src/lib/evas/canvas/evas_render.c
index 27b3c52130..aba4103907 100644
--- a/src/lib/evas/canvas/evas_render.c
+++ b/src/lib/evas/canvas/evas_render.c
@@ -2323,7 +2323,7 @@ evas_render_proxy_subrender(Evas *eo_e, void *output, Evas_Object *eo_source, Ev
2323 int level = 1; 2323 int level = 1;
2324 void *ctx; 2324 void *ctx;
2325 int w, h, off_x = 0, off_y = 0; 2325 int w, h, off_x = 0, off_y = 0;
2326 Eina_Rectangle lr; 2326 Eina_Rectangle lr = {0, 0, 0, 0};
2327 2327
2328#ifdef REND_DBG 2328#ifdef REND_DBG
2329 level = __RD_level; 2329 level = __RD_level;