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

Commit b1a8262a authored by Brian Delwiche's avatar Brian Delwiche Committed by Automerger Merge Worker
Browse files

Merge "Add bounds check in avdt_scb_act.cc" into tm-dev am: eac401d9 am: 6d687985

parents 49008ab2 6d687985
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1023,6 +1023,11 @@ void avdt_scb_hdl_write_req(AvdtpScb* p_scb, tAVDT_SCB_EVT* p_data) {

  /* Build a media packet, and add an RTP header if required. */
  if (add_rtp_header) {
    if (p_data->apiwrite.p_buf->offset < AVDT_MEDIA_HDR_SIZE) {
      android_errorWriteWithInfoLog(0x534e4554, "242535997", -1, NULL, 0);
      return;
    }

    ssrc = avdt_scb_gen_ssrc(p_scb);

    p_data->apiwrite.p_buf->len += AVDT_MEDIA_HDR_SIZE;