Iotivity crash on 502 Bad Gateway error 71/222671/1
authorSourav Bhuwalka <s.bhuwalka@samsung.com>
Fri, 10 Jan 2020 07:26:17 +0000 (12:56 +0530)
committerSudipto <sudipto.bal@samsung.com>
Fri, 17 Jan 2020 06:08:04 +0000 (11:38 +0530)
commit176c9ded8f1aeb60bb2e6d9966d7b4253c1cd033
tree89b9cf77857679c8ef81562dc52b6026fe08f18e
parent4fc8805e346d3b7ec57cc7ca7aa33d599585e865
Iotivity crash on 502 Bad Gateway error

Initialising dimensions with 0 which was not done earlier
In case OCRepPayloadGetPropObjectArray function fails links
become NULL but since dimensions is not initailised with 0 it will
have some garbage value and will enter in loop and crash will occur

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/649/commits/3a10bc1df11c5c2bbf7465e3aa06a76adb4734c6
(cherry-picked from 3a10bc1df11c5c2bbf7465e3aa06a76adb4734c6)

Change-Id: I9f156c9f3459ad756d3fde2759aa518d48380d54
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
resource/csdk/resource-directory/src/RDClient.cpp