stefan pushed a commit to branch master.

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

commit debb51e5df59e0e55b087a150dfc3f01cab33013
Author: Stefan Schmidt <[email protected]>
Date:   Thu Sep 4 15:09:17 2014 +0200

    edje_edit: Check return of _edje_part_description_find_byname
    
    If this retruns NULL we would do a NULL deref some lines below. Better 
check.
    
    CID 1222458 1222457
---
 src/lib/edje/edje_edit.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 6d4f640..f805130 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -6857,6 +6857,7 @@ edje_edit_state_text_text_source_set(Evas_Object *obj, 
const char *part, const c
    if (source)
      {
         spd = _edje_part_description_find_byname(eed, source, state, value);
+        if (!spd) return EINA_FALSE;
         txt = (Edje_Part_Description_Text *) pd;
         source_txt = (Edje_Part_Description_Text *) spd;
 
@@ -6916,6 +6917,7 @@ edje_edit_state_text_source_set(Evas_Object *obj, const 
char *part, const char *
    if (source)
      {
         spd = _edje_part_description_find_byname(eed, source, state, value);
+        if (!spd) return EINA_FALSE;
         txt = (Edje_Part_Description_Text *) pd;
         source_style = (Edje_Part_Description_Text *) spd;
 

-- 


Reply via email to