From 4dcf49c6e9b478b8115e82f312566f042f086c9a Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 13 Mar 2014 10:36:43 +0900 Subject: [PATCH] evas: let's not access a potential NULL object when looping on a corrupted object list. This fix CID 1191920. --- src/lib/evas/canvas/evas_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c index d7cd29d..142f6f0 100644 --- a/src/lib/evas/canvas/evas_map.c +++ b/src/lib/evas/canvas/evas_map.c @@ -484,8 +484,8 @@ _evas_object_map_enable_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bo for (eo_parents = obj->smart.parent; eo_parents; eo_parents = parents->smart.parent) { parents = eo_data_scope_get(eo_parents, EVAS_OBJ_CLASS); - if (parents) - parents->child_has_map = EINA_TRUE; + if (!parents) break; + parents->child_has_map = EINA_TRUE; } } else -- 2.7.4