projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34c836e
)
evas: let's not access a potential NULL object when looping on a corrupted object...
author
Cedric BAIL
<cedric.bail@samsung.com>
Thu, 13 Mar 2014 01:36:43 +0000
(10:36 +0900)
committer
Cedric BAIL
<cedric.bail@samsung.com>
Thu, 13 Mar 2014 01:40:14 +0000
(10:40 +0900)
This fix CID 1191920.
src/lib/evas/canvas/evas_map.c
patch
|
blob
|
history
diff --git
a/src/lib/evas/canvas/evas_map.c
b/src/lib/evas/canvas/evas_map.c
index
d7cd29d
..
142f6f0
100644
(file)
--- 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