hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8e6e1860c3a78304c645422edc3b4872f0f21ef8

commit 8e6e1860c3a78304c645422edc3b4872f0f21ef8
Author: Wonki Kim <wonki_....@samsung.com>
Date:   Wed Feb 12 16:47:33 2020 +0900

    eo: remove potentional NULL dereferencing
    
    Summary: this patch removes a potentional NULL dereferencing
    
    Reviewers: jsuya, Hermet
    
    Reviewed By: Hermet
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D11325
---
 src/lib/eo/eo_base_class.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 9fd4d2b08b..097a4e0356 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -1939,6 +1939,7 @@ _efl_object_event_future_scheduler_get(const Eo *obj, 
Efl_Object_Data *pd, Efl_C
    if (!array) return NULL;
 
    ext = _efl_object_extension_need(pd);
+   EINA_SAFETY_ON_NULL_RETURN(ext);
 
    // First lookup for an existing scheduler that match the provided array
    if (!ext->schedulers) ext->schedulers = 
eina_hash_pointer_new(_futures_cancel_cb);

-- 


Reply via email to