security: Fix to access dereferenced object memory in OCSecure class
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 13 Jan 2017 06:11:44 +0000 (15:11 +0900)
committerRandeep Singh <randeep.s@samsung.com>
Tue, 7 Feb 2017 05:59:21 +0000 (05:59 +0000)
commitf625e3cc5d3d3ef21b6145501cc4a25d428949ad
tree5c7178063938fc5f5f8878fd9662a32a3a085d35
parent7831f57922c9a328285cb0cfbc321eca38b6b080
security: Fix to access dereferenced object memory in OCSecure class

[Joonghwan Lee]

This patch fix below invalid memory access in OCSecure class
- invalid DisplayNumContext object access
- invalid UserConfirmNumContext object access
- minor fix : prevent duplicated call of SetResult()

[Philippe Coval]

Ported from 1.2-rel branch to master

  Conflicts:
resource/csdk/security/provisioning/src/ownershiptransfermanager.c

Change-Id: I623c856f7086cf7fe7333e69f682070434961fbe
Signed-off-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16369
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Author: Joonghwan Lee <jh05.lee@samsung.com>
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16949
resource/csdk/security/include/oxmverifycommon.h
resource/csdk/security/provisioning/src/ownershiptransfermanager.c
resource/csdk/security/src/oxmverifycommon.c
resource/provisioning/src/OCProvisioningManager.cpp