Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59c2e7cb authored by Zongheng Wang's avatar Zongheng Wang Committed by android-build-merger
Browse files

SDP: Disconnect when there is a bad length am: f704594f am: e775e16f am:...

SDP: Disconnect when there is a bad length am: f704594f am: e775e16f am: 8f49fdc6 am: e53df703
am: 1798c891

Change-Id: Iee49e1f37dd060b3d9bc014dca272273082ec354
parents 22a5d6b2 1798c891
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -657,6 +657,7 @@ static void process_service_search_attr_rsp(tCONN_CB* p_ccb, uint8_t* p_reply,
  p = sdpu_get_len_from_type(p, p + p_ccb->list_len, type, &seq_len);
  if (p == NULL || (p + seq_len) > (p + p_ccb->list_len)) {
    SDP_TRACE_WARNING("%s: bad length", __func__);
    sdp_disconnect(p_ccb, SDP_ILLEGAL_PARAMETER);
    return;
  }
  p_end = &p_ccb->rsp_list[p_ccb->list_len];