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:
bb3b4ed
)
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
Myles Watson
<mylesgw@google.com>
Wed, 30 May 2018 17:25:20 +0000
(17:25 +0000)
Bug:
78136869
Test: manual connection to an A2DP device
Change-Id: I71392cf1a70567fec957feb36768069ac5258aa1
(cherry picked from commit
ef7dddabbd70222fa0fafc97e8562d977f550d26
)
stack/sdp/sdp_server.c
patch
|
blob
|
history
diff --git
a/stack/sdp/sdp_server.c
b/stack/sdp/sdp_server.c
index
5354aee
..
e1e4a67
100644
(file)
--- a/
stack/sdp/sdp_server.c
+++ b/
stack/sdp/sdp_server.c
@@
-361,6
+361,7
@@
static void process_service_attr_req (tCONN_CB *p_ccb, UINT16 trans_num,
if (max_list_len > (p_ccb->rem_mtu_size - SDP_MAX_ATTR_RSPHDR_LEN))
max_list_len = p_ccb->rem_mtu_size - SDP_MAX_ATTR_RSPHDR_LEN;
+ param_len = (UINT16)(p_req_end - p_req);
p_req = sdpu_extract_attr_seq (p_req, param_len, &attr_seq);
if ((!p_req) || (!attr_seq.num_attr) ||