From: Hyuk Lee Date: Wed, 23 Mar 2016 05:27:36 +0000 (+0900) Subject: Fix the Svace issue X-Git-Tag: accepted/tizen/tv/20160323.135546 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18b2a2324c6669882b767bd7afa0fbf723be11cd;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-agent.git Fix the Svace issue - WGID:54916(signed to bigger unsigned) - WGID:55810(passed to proc after free) Change-Id: I6e8537205f82d26301e98bf6552f4b2426fe7cee Signed-off-by: Hyuk Lee --- diff --git a/map-agent/bluetooth_map_agent.c b/map-agent/bluetooth_map_agent.c index 5b1c816..fa87018 100755 --- a/map-agent/bluetooth_map_agent.c +++ b/map-agent/bluetooth_map_agent.c @@ -1066,8 +1066,6 @@ next: msg_release_struct(&msg); msg_release_struct(&send_opt); - g_free(msg_info.handle); - ret = msg_get_int_value(msg_struct_handle, MSG_MESSAGE_DISPLAY_TIME_INT, &dptime); if (ret == MSG_SUCCESS) { @@ -1698,7 +1696,7 @@ static gboolean bluetooth_map_get_message_list(BluetoothMapAgent *agent, if (ret != MSG_SUCCESS) goto fail; - count = msg_list.nCount; + count = (guint64)msg_list.nCount; for (i = 0; i < count; i++) { msg_get_bool_value(msg_list.msg_struct_info[i],