OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f9b973
)
DO NOT MERGE: SDP: Recalculate param_len after max_list_len
author
Myles Watson
<mylesgw@google.com>
Tue, 29 May 2018 23:55:58 +0000
(16:55 -0700)
committer
Ryan Longair
<rlongair@google.com>
Tue, 12 Jun 2018 18:27:18 +0000
(11:27 -0700)
Bug:
78136869
Test: manual connection to an A2DP device
Change-Id: I71392cf1a70567fec957feb36768069ac5258aa1
(cherry picked from commit
9cc9eea21c7868034242b7ab8be750c565e46bfd
)
stack/sdp/sdp_server.cc
patch
|
blob
|
history
diff --git
a/stack/sdp/sdp_server.cc
b/stack/sdp/sdp_server.cc
index
121c248
..
d2bbd6c
100644
(file)
--- a/
stack/sdp/sdp_server.cc
+++ b/
stack/sdp/sdp_server.cc
@@
-569,6
+569,7
@@
static void process_service_search_attr_req(tCONN_CB* p_ccb, uint16_t trans_num,
if (max_list_len > (p_ccb->rem_mtu_size - SDP_MAX_SERVATTR_RSPHDR_LEN))
max_list_len = p_ccb->rem_mtu_size - SDP_MAX_SERVATTR_RSPHDR_LEN;
+ param_len = static_cast<uint16_t>(p_req_end - p_req);
p_req = sdpu_extract_attr_seq(p_req, param_len, &attr_seq);
if ((!p_req) || (!attr_seq.num_attr) ||