OSDN Git Service

SDP: disconnect if sdp_copy_raw_data fails
authorZongheng Wang <wangzongheng@google.com>
Mon, 5 Aug 2019 19:45:35 +0000 (12:45 -0700)
committerMyles Watson <mylesgw@google.com>
Fri, 13 Sep 2019 23:08:55 +0000 (23:08 +0000)
commit41939a2b5a8e3584c5a99dfe264a47df79e3091f
tree23075426fa7e0565e238fc5d91e56685ca8e84e1
parent098e2972201b454de0f95a72636ecd9009dc32de
SDP: disconnect if sdp_copy_raw_data fails

Our partners met with the problem with sdp_copy_raw_data updated in
CVE-2019-2116. When peer device responds with a wrong size,
sdp_copy_raw_data will not complete and won't trigger
disconnection. This CL enables the disconnection when a wrong size is
received.

Bug: 137239831
Bug: 117105007
Test: manual test
Change-Id: I9f0df8b2de28970e7d69b737ce5d363785183bf3
Merged-In: I9f0df8b2de28970e7d69b737ce5d363785183bf3
(cherry picked from commit bc9df3451dad17c1ab1002fdbc85d60e57d4f0af)
stack/sdp/sdp_discovery.cc