system/bt
Revision | 5771119d00fdbaba7601fa7180a348fd7a67ff85 (tree) |
---|---|
Time | 2019-09-28 06:52:22 |
Author | Zongheng Wang <wangzongheng@goog...> |
Commiter | android-build-merger |
SDP: Disconnect when there is a bad length am: 7f555a1a9b am: 325d1539ba am: 23bcf92253 am: 736669e4a5
am: 4a8fc7789e
Change-Id: Iee49e1f37dd060b3d9bc014dca272273082ec354
@@ -657,6 +657,7 @@ static void process_service_search_attr_rsp(tCONN_CB* p_ccb, uint8_t* p_reply, | ||
657 | 657 | p = sdpu_get_len_from_type(p, p + p_ccb->list_len, type, &seq_len); |
658 | 658 | if (p == NULL || (p + seq_len) > (p + p_ccb->list_len)) { |
659 | 659 | SDP_TRACE_WARNING("%s: bad length", __func__); |
660 | + sdp_disconnect(p_ccb, SDP_ILLEGAL_PARAMETER); | |
660 | 661 | return; |
661 | 662 | } |
662 | 663 | p_end = &p_ccb->rsp_list[p_ccb->list_len]; |