diff --git a/components/esp_common/src/stack_check.c b/components/esp_common/src/stack_check.c index cffff6555a..66d76ba3fd 100644 --- a/components/esp_common/src/stack_check.c +++ b/components/esp_common/src/stack_check.c @@ -31,10 +31,9 @@ __esp_stack_guard_setup (void) __stack_chk_guard = (void *)esp_random(); } -void __stack_chk_fail (void) +IRAM_ATTR void __stack_chk_fail (void) { - esp_rom_printf("\r\nStack smashing protect failure!\r\n\r\n"); - abort(); + esp_system_abort(DRAM_STR("Stack smashing protect failure!")); } #endif diff --git a/tools/ci/check_callgraph.py b/tools/ci/check_callgraph.py index 3d2c4d5b99..a1eac5d22c 100755 --- a/tools/ci/check_callgraph.py +++ b/tools/ci/check_callgraph.py @@ -111,7 +111,7 @@ class Reference(object): class IgnorePair(): - def __init__(self, pair) -> None: # type: (str) + def __init__(self, pair): # type: (str) -> None self.symbol, self.function_call = pair.split('/')