esp-idf/components/heap/test
Angus Gratton b7fc067c8c heap: Fix bug when realloc moves data between heaps
When realloc-ing to a smaller buffer size which ends up allocated in a different heap, the heap
structure is corrupted. This can only happen:

* If heap checking is Comprehensive (meaning buffers are never shrunk in place) and the heap the buffer was originally allocated in is full.
* Calling heap_caps_realloc() to deliberately move a buffer to a different capabilities type, and shrink it at the same time.

Probable fix for https://github.com/espressif/esp-idf/issues/1582
Probably the same issue:
https://www.esp32.com/viewtopic.php?f=2&t=4583
https://www.esp32.com/viewtopic.php?f=13&t=3717
2018-02-09 16:10:52 +08:00
..
component.mk heap: Refactor heap regions/capabilities out of FreeRTOS 2017-07-10 17:46:03 +08:00
test_heap_trace.c unit tests: fix warnings, build with -Werror 2017-10-19 21:35:23 +08:00
test_malloc_caps.c spi_flash: Expose an accessor the current SPI flash guard functions 2017-11-20 15:54:31 +11:00
test_malloc.c Add logic to make external RAM usable with malloc() 2017-09-28 17:17:50 +08:00
test_realloc.c heap: Fix bug when realloc moves data between heaps 2018-02-09 16:10:52 +08:00
test_runtime_heap_reg.c component/heap : fix heap_region_add check bug 2017-11-16 11:10:13 +08:00