IOT-2796 prevent sprintf writing past array 25/22725/3
authorGeorge Nash <george.nash@intel.com>
Fri, 6 Oct 2017 21:46:49 +0000 (14:46 -0700)
committerRick Bell <richard.s.bell@intel.com>
Mon, 9 Oct 2017 19:04:08 +0000 (19:04 +0000)
commitf30605d06cae47d9ef082040549d79f736892b42
treeef531bbc9e53d02383f278d15171026a7e4b99f3
parent72dac1877e27a46d7f38626b8e3b26d7f871dc50
IOT-2796 prevent sprintf writing past array

tmp is not large enough to hold the two characters
appended to it and the terminating null character.

To make room for the terminating null character the
arrays were increased in size by 1.

Bug: https://jira.iotivity.org/browse/IOT-2796
Change-Id: I53683401a581cef89c8d32088b47d87448140ca2
Signed-off-by: George Nash <george.nash@intel.com>
resource/csdk/security/tool/json2cbor.c