Fix memory access error 17/21917/2
authorMats Wichmann <mats@linux.com>
Tue, 15 Aug 2017 14:44:26 +0000 (08:44 -0600)
committerRandeep Singh <randeep.s@samsung.com>
Thu, 7 Sep 2017 06:58:15 +0000 (06:58 +0000)
commit106f3d3343b5709c7c73f78184a02d2bfe086f37
tree95459142d92ac000ef87780db50223daafe4ab6c
parent62bef131113a8892b863d947049dc66821bde00d
Fix memory access error

off-by-one in allocating memory for a string: was no space
for the null terminator since strlen() was used to compute size.

Change-Id: Ic7b836416f2a5319f2906be504fec09de29182dc
Signed-off-by: Mats Wichmann <mats@linux.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21917
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/security/tool/json2cbor.c