We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84f9e5e + b250e59 commit ba0b8dcCopy full SHA for ba0b8dc
components/bt/host/bluedroid/hci/hci_hal_h4.c
@@ -600,6 +600,7 @@ ble_hs_hci_rx_evt(uint8_t *hci_ev, void *arg)
600
}
601
uint16_t len = hci_ev[1] + 3;
602
uint8_t *data = (uint8_t *)malloc(len);
603
+ assert(data != NULL);
604
data[0] = 0x04;
605
memcpy(&data[1], hci_ev, len - 1);
606
ble_hci_trans_buf_free(hci_ev);
@@ -614,6 +615,7 @@ ble_hs_rx_data(struct os_mbuf *om, void *arg)
614
615
{
616
uint16_t len = om->om_len + 1;
617
618
619
data[0] = 0x02;
620
os_mbuf_copydata(om, 0, len - 1, &data[1]);
621
host_recv_pkt_cb(data, len);
0 commit comments