• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

修訂5771119d00fdbaba7601fa7180a348fd7a67ff85 (tree)
時間2019-09-28 06:52:22
作者Zongheng Wang <wangzongheng@goog...>
Commiterandroid-build-merger

Log Message

SDP: Disconnect when there is a bad length am: 7f555a1a9b am: 325d1539ba am: 23bcf92253 am: 736669e4a5
am: 4a8fc7789e

Change-Id: Iee49e1f37dd060b3d9bc014dca272273082ec354

Change Summary

差異

--- a/stack/sdp/sdp_discovery.cc
+++ b/stack/sdp/sdp_discovery.cc
@@ -657,6 +657,7 @@ static void process_service_search_attr_rsp(tCONN_CB* p_ccb, uint8_t* p_reply,
657657 p = sdpu_get_len_from_type(p, p + p_ccb->list_len, type, &seq_len);
658658 if (p == NULL || (p + seq_len) > (p + p_ccb->list_len)) {
659659 SDP_TRACE_WARNING("%s: bad length", __func__);
660+ sdp_disconnect(p_ccb, SDP_ILLEGAL_PARAMETER);
660661 return;
661662 }
662663 p_end = &p_ccb->rsp_list[p_ccb->list_len];