projects
/
platform
/
core
/
appfw
/
message-port.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eadc4a2
)
Add null check when allocating memory
62/142962/1
accepted/tizen_3.0_common
accepted/tizen_3.0_ivi
accepted/tizen_3.0_mobile
accepted/tizen_3.0_tv
accepted/tizen_3.0_wearable
accepted/tizen/3.0/common/20170810.115117
accepted/tizen/3.0/ivi/20170810.094453
accepted/tizen/3.0/mobile/20170810.094343
accepted/tizen/3.0/tv/20170810.094438
accepted/tizen/3.0/wearable/20170810.094359
submit/tizen_3.0/20170809.043616
author
Inkyun Kil
<inkyun.kil@samsung.com>
Tue, 8 Aug 2017 04:47:01 +0000
(13:47 +0900)
committer
Inkyun Kil
<inkyun.kil@samsung.com>
Tue, 8 Aug 2017 04:47:01 +0000
(13:47 +0900)
Change-Id: Icf15bed9cb3cd7091eed24126a88203b4cce4130
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/message-port.c
patch
|
blob
|
history
diff --git
a/src/message-port.c
b/src/message-port.c
index
e7b2bfc
..
acc3023
100755
(executable)
--- a/
src/message-port.c
+++ b/
src/message-port.c
@@
-1066,6
+1066,7
@@
static bool __check_sender_validation(GVariant *parameters, const char *sender,
char *local_appid = NULL;
int pid = __get_sender_pid(conn, sender);
int *watcher_id = (int *)calloc(1, sizeof(int));
+ retvm_if(!watcher_id, false, "Malloc failed");
ret = aul_app_get_appid_bypid(pid, buffer, sizeof(buffer));
if (ret != AUL_R_OK) {