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

Commit 4033c5e8 authored by Chienyuan's avatar Chienyuan
Browse files

Fix information dislosure in sdp_copy_raw_data

Bug: 112710632
Test: manual
Change-Id: I6a9ea2479509449ff65a19f73e17b5f2a63b6ce4
parent 85ac0dab
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -368,11 +368,6 @@ static void sdp_copy_raw_data(tCONN_CB* p_ccb, bool offset) {
      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",
        __func__, list_len, cpy_len, p, p_ccb, p_ccb->p_db,
        p_ccb->p_db->raw_size, p_ccb->p_db->raw_used, p_ccb->p_db->raw_data);
    memcpy(&p_ccb->p_db->raw_data[p_ccb->p_db->raw_used], p, cpy_len);
    p_ccb->p_db->raw_used += cpy_len;
  }