csdk: move OCClientResponse from stack to heap
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 3 Oct 2016 21:22:36 +0000 (23:22 +0200)
committerZiran Sun <ziran.sun@samsung.com>
Mon, 30 Jan 2017 12:36:08 +0000 (12:36 +0000)
commitadc5b8a81434b4b3cb6143f2a9ffa01f8432e70f
treeeff18615709a5e6a68b150922e2422bf9a3a1101
parenta38797f66b9c1372d77c6cf9230d2e7642958ea8
csdk: move OCClientResponse from stack to heap

OCClientResponse is about 50KByte and should not be stored on the
stack. On LEDE with MIPS, musl libc this causes a segmentation fault.
Moving this structure to the heap is the simple solution for this
problem, but this structure should be shrined.

There are probably more places were this is stored on the stack and
will cause problems. This fixes the other issue I saw in
https://jira.iotivity.org/browse/IOT-1374

Change-Id: I45d8aee4a8151fea51d3318acb1eea61ce579060
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12731
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
resource/csdk/stack/src/ocstack.c