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

Commit 720d83a8 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix out of bounds read in l2c_rcv_acl_data

Test: none
Bug: 80432895
Change-Id: I7807d00c02a84c545476e84bc1b71e0718df1f24
Merged-In: I7807d00c02a84c545476e84bc1b71e0718df1f24
parent 53a89d92
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ void l2c_rcv_acl_data (BT_HDR *p_msg)
    UINT8       pkt_type;
    tL2C_LCB    *p_lcb;
    tL2C_CCB    *p_ccb = NULL;
    UINT16      l2cap_len, rcv_cid, psm;
    UINT16      l2cap_len, rcv_cid;

    /* Extract the handle */
    STREAM_TO_UINT16 (handle, p);
@@ -239,8 +239,6 @@ void l2c_rcv_acl_data (BT_HDR *p_msg)
        counter_add("l2cap.ch2.rx.bytes", l2cap_len);
        counter_add("l2cap.ch2.rx.pkts", 1);
        /* process_connectionless_data (p_lcb); */
        STREAM_TO_UINT16 (psm, p);
        L2CAP_TRACE_DEBUG( "GOT CONNECTIONLESS DATA PSM:%d", psm ) ;

#if (L2CAP_UCD_INCLUDED == TRUE)
        /* if it is not broadcast, check UCD registration */