mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
fix(espcoredump): prevent null pointer dereference in panic reason handling
This commit is contained in:
parent
cd913c60be
commit
190f021ba8
@ -301,7 +301,7 @@ void esp_panic_handler(panic_info_t *info)
|
||||
char *panic_reason_str = NULL;
|
||||
if (info->pseudo_excause) {
|
||||
panic_reason_str = (char *)info->reason;
|
||||
} else if (g_panic_abort && strlen(g_panic_abort_details)) {
|
||||
} else if (g_panic_abort) {
|
||||
panic_reason_str = g_panic_abort_details;
|
||||
}
|
||||
if (panic_reason_str) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user