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:
39e380f
)
Edje smart: Add NULL safety
author
Jean-Philippe Andre
<jp.andre@samsung.com>
Wed, 22 Apr 2015 01:51:25 +0000
(10:51 +0900)
committer
Jean-Philippe Andre
<jp.andre@samsung.com>
Wed, 22 Apr 2015 02:33:04 +0000
(11:33 +0900)
This case actually happens with E. It's invalid but still happening,
and because Eo doesn't actually check the parent (or its type) fully,
an invalid, non-NULL object was returned.
See T2336 (this is not fixing the root cause!).
src/lib/edje/edje_smart.c
patch
|
blob
|
history
diff --git
a/src/lib/edje/edje_smart.c
b/src/lib/edje/edje_smart.c
index
97d31b2
..
7de630d
100644
(file)
--- a/
src/lib/edje/edje_smart.c
+++ b/
src/lib/edje/edje_smart.c
@@
-19,6
+19,7
@@
EAPI Evas_Object *
edje_object_add(Evas *evas)
{
Evas_Object *e;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(evas, NULL);
e = eo_add(MY_CLASS, evas);
return e;
}