From 306e1c63881fbe3cc572210f1b9b94ade00ec521 Mon Sep 17 00:00:00 2001 From: Hyuk Lee Date: Wed, 23 Mar 2016 14:27:36 +0900 Subject: [PATCH] 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 --- map-agent/bluetooth_map_agent.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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], -- 2.7.4