mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/build_failure_in_espcoredump' into 'master'
espcoredump: Fix string truncation build failure See merge request espressif/esp-idf!13135
This commit is contained in:
commit
e55f2936fd
@ -700,7 +700,7 @@ static void elf_parse_exc_task_name(esp_core_dump_summary_t *summary, void *tcb_
|
||||
* But that has assumption that TCB pointer can be used as TaskHandle. So let's
|
||||
* keep it this way. */
|
||||
memset(summary->exc_task, 0, sizeof(summary->exc_task));
|
||||
strncpy(summary->exc_task, (char *)tcb->ucDummy7, sizeof(summary->exc_task) - 1);
|
||||
strlcpy(summary->exc_task, (char *)tcb->ucDummy7, sizeof(summary->exc_task));
|
||||
ESP_COREDUMP_LOGD("Crashing task %s", summary->exc_task);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user