seoz pushed a commit to branch master.
commit 2cec43c303035a642bae51297bf294974fc0b2ca
Author: Daniel Juyung Seo <[email protected]>
Date: Fri Jul 5 19:09:22 2013 +0900
elm_sys_notify.c: fixed memory illegal access issue spotted by coverity.
CID 1039984.
---
src/lib/elm_sys_notify.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/elm_sys_notify.c b/src/lib/elm_sys_notify.c
index 4f22a4a..1e1627e 100644
--- a/src/lib/elm_sys_notify.c
+++ b/src/lib/elm_sys_notify.c
@@ -274,7 +274,7 @@ _on_action_invoked(void *data EINA_UNUSED,
return;
}
- d = malloc(sizeof(*d));
+ d = calloc(1, sizeof(*d));
if (!eldbus_message_arguments_get(msg, "us", &(d->id), &aux))
{
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev