Modify OCParseSecurityPayload() to prevent core-dump in debug mode.
authorleechul <chuls.lee@samsung.com>
Mon, 28 Dec 2015 23:19:33 +0000 (08:19 +0900)
committerSachin Agrawal <sachin.agrawal@intel.com>
Tue, 29 Dec 2015 08:16:06 +0000 (08:16 +0000)
commite38dab2f0e8dd70c58b7b69489cc9b1b487147cd
treede8f0d56d19b9f5db2b669f6e6d735e20012693c
parent4ab453c240df5bf0e158518f15818bec3fc7598f
Modify OCParseSecurityPayload() to prevent core-dump in debug mode.

   1. Add cbor value verification code
   2. Remove the cbor_value_leave_container() invoking.

Change-Id: Iaa0b784c1688eddff8d1a1eec6406f396e508db7
Signed-off-by: leechul <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4733
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
resource/csdk/stack/src/ocpayloadparse.c