static check: noti test unterminated strings
authorMats Wichmann <mats@linux.com>
Fri, 11 Aug 2017 16:12:55 +0000 (10:12 -0600)
committerPhil Coval <philippe.coval@osg.samsung.com>
Mon, 28 Aug 2017 19:33:57 +0000 (19:33 +0000)
commita54db53f54b443af730573c19a5f37c132058e90
tree54ea702fe7899c8169a1f56f9b006f26bdaef748
parentc40c2a7fb57a51b8bbf0920cbf09f447dcce9c68
static check: noti test unterminated strings

The test strncpy'd three strings using the strlen of the string,
leaving the destination buffer without the string terminator.
strcpy will do the right thing here since in this case the source is
declared as a string which is sure to be terminated.

Change-Id: I85a15ab92b311481015c898f44b034fe49bf55f4
Signed-off-by: Mats Wichmann <mats@linux.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21885
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
service/notification/unittest/NSProviderTest.cpp