sdp: Fix Out-of-bounds heap read in service_search_attr_req function 33/150033/1
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 13 Sep 2017 07:01:40 +0000 (10:01 +0300)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 14 Sep 2017 05:16:20 +0000 (14:16 +0900)
commit3655baa59b9c8b1af4f01c9b38bd189b9db84ca7
treeb1ed11d8e354ced184fe4bbd54aab69e3bf9a8ea
parent1b328abea1687e8e58ed6cb5bdb4694b8aef023c
sdp: Fix Out-of-bounds heap read in service_search_attr_req function

Check if there is enough data to continue otherwise return an error.
(CVE-2017-1000250)

Change-Id: I45d44d1bad703fa22af0f1d13cf710686ad64aae
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/sdpd-request.c