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

Commit df7252a5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add missing extension length check while parsing BNEP control packets" into mnc-dev

parents 309bc9a5 8f8598be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -909,7 +909,7 @@ UINT8 *bnep_process_control_packet (tBNEP_CONN *p_bcb, UINT8 *p, UINT16 *rem_len
        BNEP_TRACE_ERROR("%s: BNEP - bad ctl pkt type: %d", __func__,
                         control_type);
        bnep_send_command_not_understood (p_bcb, control_type);
        if (is_ext)
        if (is_ext && (ext_len > 0))
        {
            if (*rem_len < (ext_len - 1)) {
                goto bad_packet_length;