mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
Merge branch 'fix/fix_pawr_crash_errors_v5.1' into 'release/v5.1'
fix(ble): fix hci log malloc failure crash See merge request espressif/esp-idf!44119
This commit is contained in:
@@ -220,6 +220,10 @@ esp_err_t IRAM_ATTR bt_hci_log_record_data(bt_hci_log_t *p_hci_log_ctl, char *st
|
||||
ts = esp_timer_get_time();
|
||||
|
||||
temp_buf = (uint8_t *)malloc(data_len + 8);
|
||||
if (!temp_buf) {
|
||||
return ESP_ERR_NO_MEM;
|
||||
}
|
||||
|
||||
memset(temp_buf, 0x0, data_len + 8);
|
||||
|
||||
memcpy(temp_buf, &ts, 8);
|
||||
|
||||
Submodule components/bt/host/nimble/nimble updated: 07192bf01b...6b9c4d1f5b
Reference in New Issue
Block a user