NULL pointer check in cbor_test
authorHabib Virji <habib.virji@samsung.com>
Fri, 9 Dec 2016 13:55:46 +0000 (13:55 +0000)
committerZiran Sun <ziran.sun@samsung.com>
Tue, 13 Dec 2016 11:32:40 +0000 (11:32 +0000)
commiteff5b1879523483e90d02474cd19dfd125cfe3ea
treed0a5a69b91fb90899677a75575cb827c65872577
parent1779c18179c11c096e8d0aa71545ccf29fa22c3c
NULL pointer check in cbor_test

cbor_test directly uses value returned by OCRepPayloadGetPropeString in memcmp .

The value is not checked before calling memcmp.

BUG: https://jira.iotivity.org/browse/IOT-1662
Change-Id: Ia998ab4154d0b2efb69dff232532d2b8b7f4f5de
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15365
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
resource/csdk/stack/test/cbortests.cpp