summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas.c
diff options
context:
space:
mode:
authorMyoungwoon Roy, Kim <myoungwoon.kim@samsung.com>2018-01-22 18:28:24 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-01-22 18:28:24 +0900
commit1b7089a26b6e6a9922f81a98ed32e4c737c218e3 (patch)
treee1fc87c598e0e3eefb6645f23fd01424ef4bbc46 /src/lib/ecore_evas/ecore_evas.c
parent6629df5e67c9d6c3f5ec8ebfce03536b81bc985c (diff)
ecore_evas: Check for null ptr deref
Summary: This patch fixes a tentative crash owing to ptr dereference. Unlike ecore_evas_object_cursor_set and ecore_evas_object_cursor_device_set, ecore_evas_cursor_set uses Ecore_Evas *ee before calling internal function which internally checks null ptr dereference of Ecore_Evas *ee. Test Plan: Executes test suite Reviewers: cedric, raster, stefan, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D5753
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 4c3b13f..67ab7e9 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -1832,6 +1832,9 @@ ecore_evas_cursor_set(Ecore_Evas *ee, const char *file,
1832 int layer, int hot_x, int hot_y) 1832 int layer, int hot_x, int hot_y)
1833{ 1833{
1834 Evas_Object *obj = NULL; 1834 Evas_Object *obj = NULL;
1835
1836 ECORE_EVAS_CHECK(ee);
1837
1835 if (file) 1838 if (file)
1836 { 1839 {
1837 int x, y; 1840 int x, y;