From 63d9c452fa9742266ea5917be55f722367f15b26 Mon Sep 17 00:00:00 2001 From: Michal Szczecinski Date: Fri, 27 May 2022 10:30:00 +0200 Subject: [PATCH] eo_base_class: fixed possible null dereference Change-Id: I399b323d23610daf51becd878bac24ae0b38847d --- src/lib/eo/eo_base_class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c index 52c5ca9..ebdb596 100644 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -2050,7 +2050,7 @@ _event_callback_call(Eo *obj_id, Efl_Object_Data *pd, .generation = 1, }; Eina_Bool need_hash = EINA_TRUE; - + if (pd == NULL || pd->callbacks == NULL) return EINA_FALSE; if (pd->callbacks_count == 0) return EINA_TRUE; else EFL_OBJECT_EVENT_CALLBACK_BLOCK(pd, desc, EFL_EVENT_CALLBACK_ADD, need_hash) else EFL_OBJECT_EVENT_CALLBACK_BLOCK(pd, desc, EFL_EVENT_CALLBACK_DEL, need_hash) -- 2.7.4