sdp: Fix Out-of-bounds heap read in service_search_attr_req function 84/149984/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 01:59:34 +0000 (10:59 +0900)
commitb3ae23ddca7acf4e2a3eb82573b5e6e6c61b66cd
tree30444a7f05323aa9143f84c24038b2f53cb2dc6b
parente7f091af9e7598fab9659114b141999ed2464f08
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: Iedcc39a0706b0052aeb167c77f2da2b5597f91ce
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/sdpd-request.c