raster pushed a commit to branch master.

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

commit c4e96e4e8388c6e20e06f2723309f573b914c0b1
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Nov 21 19:33:12 2017 +0900

    eo - fi missed error condition if eoid passed in is NULL
    
    in some cases construction can fail badly and this causes a crash...
    eoid is NULL going in and this causes a cascade of failure. survive
    and be more robust.
---
 src/lib/eo/eo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 0d443ef625..d944f40759 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1023,6 +1023,7 @@ cleanup:
 EAPI Eo *
 _efl_add_end(Eo *eo_id, Eina_Bool is_ref, Eina_Bool is_fallback)
 {
+   if (!eo_id) return NULL;
    Eo *ret = efl_finalize(eo_id);
    ret = _efl_add_internal_end(eo_id, ret);
 

-- 


Reply via email to