jackdanielz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=cd8e6dbce15203d8efbec6767997169de4efe1e6
commit cd8e6dbce15203d8efbec6767997169de4efe1e6 Author: Youngbok Shin <[email protected]> Date: Fri Jun 12 11:01:55 2015 +0300 cnp: Add safety check for NULL pointer from calloc() for anim_icon. Summary: It could be failed to allocate memory for Anim_Icon. CID - 337351 @fix Reviewers: raster, thiepha, woohyun, Hermet Differential Revision: https://phab.enlightenment.org/D2672 --- src/lib/elm_cnp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c index d2bd5e0..12f71fb 100644 --- a/src/lib/elm_cnp.c +++ b/src/lib/elm_cnp.c @@ -4339,6 +4339,13 @@ _anim_icons_make(Eina_List *icons) EINA_LIST_FOREACH(icons, itr, o) { /* Now add icons to animation window */ Anim_Icon *st = calloc(1, sizeof(*st)); + + if (!st) + { + ERR("Failed to allocate memory for icon!"); + continue; + } + evas_object_geometry_get(o, &st->start_x, &st->start_y, &st->start_w, &st->start_h); evas_object_show(o); st->o = o; --
