add checking logic of pdu data length.
authorjihwan.seo <jihwan.seo@samsung.com>
Fri, 16 Dec 2016 04:29:24 +0000 (13:29 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 16 Dec 2016 09:06:06 +0000 (09:06 +0000)
commit26135d7d4954f863495f3b088412df1ce9e869a8
treeed827642e928b79eae1fce5a11d0adae3322158b
parent2779c1ae8f64ed6d3a5f80a67193ba166f428c8b
add checking logic of pdu data length.

unneccessary parsing logic is running
when received data is wrong.
it should be prevented.

Change-Id: Ic36359ae96f0aaa7321a1f1e8ed2d5d086ba1198
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15743
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/connectivity/src/camessagehandler.c