mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
heap: Fix printf usage in heap poisoning
This commit fixes the bug where printf() is used in verify_allocated_region() when ets_printf() should be used.
This commit is contained in:
parent
2c780ab1cc
commit
4b05708daf
@ -110,7 +110,7 @@ static poison_head_t *verify_allocated_region(void *data, bool print_errors)
|
|||||||
}
|
}
|
||||||
if (canary != TAIL_CANARY_PATTERN) {
|
if (canary != TAIL_CANARY_PATTERN) {
|
||||||
if (print_errors) {
|
if (print_errors) {
|
||||||
printf("CORRUPT HEAP: Bad tail at %p. Expected 0x%08x got 0x%08x\n", &tail->tail_canary,
|
MULTI_HEAP_STDERR_PRINTF("CORRUPT HEAP: Bad tail at %p. Expected 0x%08x got 0x%08x\n", &tail->tail_canary,
|
||||||
TAIL_CANARY_PATTERN, canary);
|
TAIL_CANARY_PATTERN, canary);
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user