esp-idf/components/heap
Guillaume Souchere 2ea046c091 heap: Fix erroneous value returned by heap_caps_get_allocated_size() when poisoning is enabled
When light (or comprehensive) poisoning is enabled, the size requested by the user for allocation
is extended by a few bytes to store the canary header and footer. heap_caps_get_allocated_size() should
return the original size asked by the user (without the additional canary bytes).

test_malloc.c extended with a new test assuring that  heap_caps_get_allocated_size() returns the proper size
regardless of the degree of poisoning.
2023-02-22 11:42:02 +01:00
..
include C/Cxx: unify static assertions with the macro ESP_STATIC_ASSERT 2022-12-19 15:06:15 +01:00
port heap: Modify the memory type of the memory used as startup stack when memory protection is enabled 2023-01-31 07:40:20 +01:00
test heap: Fix erroneous value returned by heap_caps_get_allocated_size() when poisoning is enabled 2023-02-22 11:42:02 +01:00
test_multi_heap_host heap: Update host tests after incorporation of the new TLSF implementation 2022-12-14 12:37:23 +01:00
tlsf@8c9cd0517a feat: remove tlsf_fls and tlsf_ffs from linker as they are inlined. 2022-12-14 12:37:23 +01:00
CMakeLists.txt heap: Update the component to incorporate the new TLSF implementation 2022-12-14 12:37:23 +01:00
heap_caps_init.c heap: Fix memory boundary condition checks when adding new region 2022-10-12 08:17:50 +02:00
heap_caps.c heap: Fix priority in shex() bit shift 2023-02-13 09:03:32 +01:00
heap_private.h heap: add check for usage of flash content from iram 2022-12-14 12:37:16 +01:00
heap_task_info.c heap: Remove TLSF related files and replace them with the tlsf submodule 2022-08-15 11:11:52 +02:00
heap_trace_standalone.c heap: Remove TLSF related files and replace them with the tlsf submodule 2022-08-15 11:11:52 +02:00
internals.md heap: add documentation about the function placement in IRAM and its usage in ISR 2022-11-24 12:40:00 +01:00
Kconfig heap: use ROM implementation for heap tlsf on esp32c2 2022-05-12 05:18:57 +00:00
linker.lf heap: fix linker issues and remove spi flash dependencies 2022-12-14 12:37:23 +01:00
multi_heap_config.h heap: Remove TLSF related files and replace them with the tlsf submodule 2022-08-15 11:11:52 +02:00
multi_heap_internal.h heap: fix linker issues and remove spi flash dependencies 2022-12-14 12:37:23 +01:00
multi_heap_platform.h esp_rom: extract int matrix route and cpu ticks getter 2022-02-09 13:52:20 +08:00
multi_heap_poisoning.c heap: Fix erroneous value returned by heap_caps_get_allocated_size() when poisoning is enabled 2023-02-22 11:42:02 +01:00
multi_heap.c heap: Remove size check in multi_heap.c when registering a new heap 2022-12-14 12:37:23 +01:00