From: Ji-Youn Park Date: Tue, 20 Sep 2016 04:42:40 +0000 (+0830) Subject: ecore_evas_wayland_common: fix dereferenced bug X-Git-Tag: accepted/tizen/common/20160921.162828~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F22%2F88622%2F1;p=platform%2Fupstream%2Fefl.git ecore_evas_wayland_common: fix dereferenced bug Pointer 'ee' which was dereferenced at ecore_evas_wayland_common.c:687 is compared to NULL value at ecore_evas_wayland_common.c:693. Change-Id: If9bb60cc57106b3b284b2448cdbf402dbd929910 --- diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index 1d32ac0..b54bdf1 100755 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -684,13 +684,17 @@ _ecore_evas_wl_common_free(Ecore_Evas *ee) void _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h) { - Ecore_Evas_Engine_Wl_Data *wdata = ee->engine.data; + Ecore_Evas_Engine_Wl_Data *wdata; int orig_w, orig_h; int ow, oh; LOGFN(__FILE__, __LINE__, __FUNCTION__); if (!ee) return; + + wdata = ee->engine.data; + if (!wdata) return; + if (w < 1) w = 1; if (h < 1) h = 1;