[CONPRO-1561] Crash in memcpy 89/225289/2 submit/tizen/20200219.001638
authorsamanway <samanway@linux-samanway.sa.corp.samsungelectronics.net>
Tue, 4 Feb 2020 11:07:38 +0000 (16:37 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 19 Feb 2020 00:15:04 +0000 (09:15 +0900)
commit6692961c25d77dc0846b17bd4b7fd5b513de0599
tree17063e67c67838d073254aa1e2d7b9731cc7f809
parent38c89116ed81b44e062b6acbb84094862a95ba85
[CONPRO-1561] Crash in memcpy

- In Caremotehandler.c, function CACloneInfo was copying token into buffer in vulnurable way
- Fixed it appending NULL in destination string

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/662
(cherry-picked from f8af2d6ca117bdf270c97c5c28f86bb0169659e5)

Change-Id: I84dfff77ecbf3a333913ce341060d7e30444ac62
Signed-off-by: samanway <samanway-dey@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
resource/csdk/connectivity/common/src/caremotehandler.c