tasn pushed a commit to branch master.


commit 9ed199d7098098d48778b706d057efa9f3497d58
Author: Mrunal Sovani <mruna...@samsung.com>
Date:   Thu Sep 24 14:57:10 2015 +0100

    Evas smart: Add obj type safety check to callback_del.
    Evas_Smart_Data retrieved from eo_data_scope_get might be NULL
    in case the input Evas_Object is not valid Evas_Object.
    The smart data gets dereferenced and can cause a crash if its NULL
    Hence return in case smart data is NULL.
    Signed-off-by: Mrunal Sovani <mruna...@samsung.com>
    Reviewers: raster, Hermet, tasn
    Reviewed By: tasn
    Subscribers: singh.amitesh, cedric, sachin.dev
    Differential Revision: https://phab.enlightenment.org/D3106
 src/lib/evas/canvas/evas_object_smart.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/evas/canvas/evas_object_smart.c 
index cacc5a4..1529f75 100644
--- a/src/lib/evas/canvas/evas_object_smart.c
+++ b/src/lib/evas/canvas/evas_object_smart.c
@@ -722,6 +722,7 @@ evas_object_smart_callback_del(Evas_Object *eo_obj, const 
char *event, Evas_Smar
    return NULL;
    o = eo_data_scope_get(eo_obj, MY_CLASS);
+   if (!o) return NULL;
    if (!event) return NULL;
    const Eo_Event_Description *eo_desc = 


Reply via email to