diff options
author | Inkyun Kil <inkyun.kil@samsung.com> | 2017-08-08 13:47:01 +0900 |
---|---|---|
committer | Inkyun Kil <inkyun.kil@samsung.com> | 2017-08-08 13:47:01 +0900 |
commit | 6d611798a6b9deb6599f1fdf92e4fec35707c01c (patch) | |
tree | c412310763ee28b76ccde441404802450e313fc7 | |
parent | eadc4a249cf9b50554f1fc179848b15b9e267031 (diff) | |
download | message-port-accepted/tizen_3.0_ivi.tar.gz message-port-accepted/tizen_3.0_ivi.tar.bz2 message-port-accepted/tizen_3.0_ivi.zip |
Add null check when allocating memorysubmit/tizen_3.0/20170809.043616accepted/tizen/3.0/wearable/20170810.094359accepted/tizen/3.0/tv/20170810.094438accepted/tizen/3.0/mobile/20170810.094343accepted/tizen/3.0/ivi/20170810.094453accepted/tizen/3.0/common/20170810.115117accepted/tizen_3.0_wearableaccepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0_common
Change-Id: Icf15bed9cb3cd7091eed24126a88203b4cce4130
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
-rwxr-xr-x | src/message-port.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/message-port.c b/src/message-port.c index e7b2bfc..acc3023 100755 --- 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) { |