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:
9a85d82
)
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
Myles Watson
<mylesgw@google.com>
Tue, 29 May 2018 23:55:58 +0000
(16:55 -0700)
Bug:
78136869
Test: manual connection to an A2DP device
Change-Id: I71392cf1a70567fec957feb36768069ac5258aa1
stack/sdp/sdp_server.cc
patch
|
blob
|
history
diff --git
a/stack/sdp/sdp_server.cc
b/stack/sdp/sdp_server.cc
index
733f1a3
..
8c764f3
100644
(file)
--- a/
stack/sdp/sdp_server.cc
+++ b/
stack/sdp/sdp_server.cc
@@
-567,6
+567,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) ||