ajwillia-ms pushed a commit to branch master.

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

commit c5181470c169874026bd7836dc2aa48c5b0d75e7
Author: Andy Williams <[email protected]>
Date:   Mon Nov 28 00:08:58 2016 +0000

    eo: safety in string comparison
    
    Avoid potential for Eo to crash if app manages to unset key
    @fix
---
 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 0812f59..d937a63 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -232,7 +232,7 @@ _key_generic_get(const Eo *obj, Efl_Object_Data *pd, const 
char *key, Eo_Generic
    if (!ext) return NULL;
    EINA_INLIST_FOREACH(ext->generic_data, node)
      {
-        if (!strcmp(node->key, key))
+        if (node->key && !strcmp(node->key, key))
           {
              if (node->d_type == d_type)
                {

-- 


Reply via email to