[IOT-1611] Memory corruption in OCSetAttribute
authorDave Thaler <dthaler@microsoft.com>
Tue, 29 Nov 2016 02:26:30 +0000 (18:26 -0800)
committerZiran Sun <ziran.sun@samsung.com>
Tue, 29 Nov 2016 10:48:10 +0000 (10:48 +0000)
commitf4217dab180e728271e79d5a3ea314c39fb1d628
tree94fecbf40acab7930ddb5052ac800fe56f4f7420
parent73b04a36692e1d23931b621262298b5a4b7f8431
[IOT-1611] Memory corruption in OCSetAttribute

Fix memory corruption bugs in OCSetAttribute introduced by
https://gerrit.iotivity.org/gerrit/#/c/14377/ which left pointers to
freed memory in the attribute list, which was then later used.

Change-Id: Ib776d4bd14aab7b39c74188246005628fbe18ecf
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14873
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
resource/csdk/stack/src/ocresource.c