Fix memory issue on calling C APIs at Cpp layer. 87/10487/4
authorKIM JungYong <jyong2.kim@samsung.com>
Tue, 16 Aug 2016 05:15:31 +0000 (14:15 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 18 Aug 2016 11:33:58 +0000 (11:33 +0000)
commit43674525f5635a77cdfd840769894f9cda11737b
tree9dff0409560bd40a4330d69e6b1667198e8831b2
parente48fdd4703f4d4462f5ff322d88e5b4768759701
Fix memory issue on calling C APIs at Cpp layer.

When the calling APIs with NSProvider parameter at Cpp layer,
lead to crash by illegal access of memory.
This problem is due to type-cast of NSProvider between NSProvider_internal.
So, type-casting of structure is removed.

Conflicts:
service/notification/src/consumer/NSConsumerCommunication.c
service/notification/src/consumer/NSConsumerInterface.c
service/notification/src/consumer/NSConsumerInternalTaskController.c

Change-Id: I32c61b56510886f9f3be341d2ba497e211f0cad6
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10487
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/notification/src/consumer/NSConsumerCommon.c
service/notification/src/consumer/NSConsumerCommon.h
service/notification/src/consumer/NSConsumerCommunication.c
service/notification/src/consumer/NSConsumerDiscovery.c
service/notification/src/consumer/NSConsumerInterface.c
service/notification/src/consumer/NSConsumerInternalTaskController.c
service/notification/src/consumer/NSConsumerMemoryCache.c
service/notification/src/consumer/NSConsumerScheduler.c