jsuya pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=39e9740fca914a360c174cda88403f511181c79b

commit 39e9740fca914a360c174cda88403f511181c79b
Author: Bowon Ryu <[email protected]>
Date:   Wed Aug 5 15:09:05 2020 +0900

    edje_edit: add null check for return of eina_hash_find
    
    Summary: to prevent null pointer dereference
    
    Test Plan: N/A
    
    Reviewers: cedric, jsuya
    
    Reviewed By: jsuya
    
    Subscribers: #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D12094
---
 src/lib/edje/edje_edit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 1dad199055..b9ebf99926 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -6292,6 +6292,7 @@ _edje_edit_state_alloc(int type, Edje *ed)
    Edje_Part_Description_Common *pd = NULL;
 
    ce = eina_hash_find(ed->file->collection, ed->group);
+   if (!ce) return NULL;
 
    switch (type)
      {

-- 


Reply via email to