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

Commit 7144fd4b authored by Atanas Kirilov's avatar Atanas Kirilov Committed by android-build-merger
Browse files

Merge "RESTRICT AUTOMERGE: Fixes two bluetooth causing remote overreads (2/2)"...

Merge "RESTRICT AUTOMERGE: Fixes two bluetooth causing remote overreads (2/2)" into oc-dev am: bb90e1eb
am: 2adf465a

Change-Id: I7619a5cb7f50dfe5fd4f504bf2f06c4a675d4fa3
parents be342094 2adf465a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -332,7 +332,7 @@ static void process_service_search_rsp(tCONN_CB* p_ccb, uint8_t* p_reply,
 ******************************************************************************/
#if (SDP_RAW_DATA_INCLUDED == TRUE)
static void sdp_copy_raw_data(tCONN_CB* p_ccb, bool offset) {
  unsigned int cpy_len;
  unsigned int cpy_len, rem_len;
  uint32_t list_len;
  uint8_t* p;
  uint8_t type;
@@ -360,6 +360,11 @@ static void sdp_copy_raw_data(tCONN_CB* p_ccb, bool offset) {
    if (list_len < cpy_len) {
      cpy_len = list_len;
    }
    rem_len = SDP_MAX_LIST_BYTE_COUNT - (unsigned int)(p - &p_ccb->rsp_list[0]);
    if (cpy_len > rem_len) {
      SDP_TRACE_WARNING("rem_len :%d less than cpy_len:%d", rem_len, cpy_len);
      cpy_len = rem_len;
    }
    SDP_TRACE_WARNING(
        "%s: list_len:%d cpy_len:%d p:%p p_ccb:%p p_db:%p raw_size:%d "
        "raw_used:%d raw_data:%p",