Remove an vulnerability for using strcat() function in oicgroup 21/7521/2
authorJihun Ha <jihun.ha@samsung.com>
Fri, 1 Apr 2016 07:38:34 +0000 (16:38 +0900)
committerUze Choi <uzchoi@samsung.com>
Mon, 4 Apr 2016 01:09:02 +0000 (01:09 +0000)
commitf3ca5da79ccd9d283fe9cd7d4359d30900c86166
tree5a29d4503c745290aebb13bba17da91d15f617b2
parenta755f0487af05031eda7897ae3fdd29d864668b8
Remove an vulnerability for using strcat() function in oicgroup

Rather than strcat function, strncat function with a consideration of
a maximum length of string is better to be used for security reason.

Change-Id: I12b76ef4c149c66fac2b6b2963feef86d760d85f
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7521
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
resource/csdk/stack/src/oicgroup.c