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
This commit is contained in:
Shinwoo Kim 2020-02-11 09:03:43 -05:00 committed by Mike Blumenkrantz
parent eb4af00c30
commit 2f852c92e8
1 changed files with 1 additions and 1 deletions

View File

@ -2323,7 +2323,7 @@ evas_render_proxy_subrender(Evas *eo_e, void *output, Evas_Object *eo_source, Ev
int level = 1;
void *ctx;
int w, h, off_x = 0, off_y = 0;
Eina_Rectangle lr;
Eina_Rectangle lr = {0, 0, 0, 0};
#ifdef REND_DBG
level = __RD_level;