From: kamaljeet Date: Thu, 22 Aug 2019 07:34:43 +0000 (+0530) Subject: [Contacts-service][Nno-ACR] Asan issue fixes TFDF-3462,3463 X-Git-Tag: submit/tizen/20190822.101121^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F212505%2F1;p=platform%2Fcore%2Fpim%2Fcontacts-service.git [Contacts-service][Nno-ACR] Asan issue fixes TFDF-3462,3463 Change-Id: If127af507334be98c3efb206c0a53c168c757bae Signed-off-by: kamaljeet --- diff --git a/server/db/ctsvc_db_plugin_contact.c b/server/db/ctsvc_db_plugin_contact.c index 0ba4551..31dac37 100644 --- a/server/db/ctsvc_db_plugin_contact.c +++ b/server/db/ctsvc_db_plugin_contact.c @@ -1596,7 +1596,7 @@ static int __ctsvc_db_contact_get_records_with_query(contacts_query_h query, int } if (false == had_contact_id) { - void *tmp = realloc(s_query->projection, sizeof(unsigned int)*(s_query->projection_count+1)); + int *tmp = (int *)realloc(s_query->projection, sizeof(unsigned int)*(s_query->projection_count+1)); if (NULL == tmp) { /* LCOV_EXCL_START */ ERR("realloc() Fail");