From ba2914b44b64c928fd3abf10b8604d5d4b136e2f Mon Sep 17 00:00:00 2001 From: "Myoungwoon Roy, Kim" Date: Mon, 22 Jan 2018 14:44:09 +0900 Subject: [PATCH] ecore_evas: Check for null ptr deref This patch fixes a tentative crash owing to ptr deference. 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. Change-Id: I555fc1e5c4c1c0ff3e6418996b7e144eb42f0b7f --- src/lib/ecore_evas/ecore_evas.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c index 1101108..842dcb4 100644 --- a/src/lib/ecore_evas/ecore_evas.c +++ b/src/lib/ecore_evas/ecore_evas.c @@ -1926,6 +1926,9 @@ ecore_evas_cursor_set(Ecore_Evas *ee, const char *file, int layer, int hot_x, int hot_y) { Evas_Object *obj = NULL; + + ECORE_EVAS_CHECk(ee); + if (file) { int x, y; -- 2.7.4