zephyr/tests/lib
Nicolas Pitre aeda6ccdd8 lib/os/heap: fix realloc issues
If the new size amounts to the same number of chunks then:

- If right-chunk is used then we needlessly allocate new memory and
  copy data over.

- If right-chunk is free then we attempt to split it with a zero size
  which corrupts the prev/next list.

Make sure this case is properly handled and add a test for it.

While at it, let's simplify the code somewhat as well.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2021-01-04 11:12:05 -05:00
..
c_lib libc: add strtok_r implementation 2020-08-18 09:19:58 -07:00
cmsis_dsp tests: add filter for some tests using newlib 2020-12-16 08:57:40 -05:00
devicetree/api dts: handle unspecified phandle-array elements 2020-12-22 07:34:29 -06:00
fdtable tests: lib: fdtable: fix tests after modifying reference counting 2020-08-27 11:42:19 +03:00
gui/lvgl tests: add filter for some tests using newlib 2020-12-16 08:57:40 -05:00
heap lib/os/heap: fix realloc issues 2021-01-04 11:12:05 -05:00
heap_align lib/os/heap: minimize initial overallocation in the aligned case 2020-11-30 14:50:07 -05:00
json tests/samples: enable for integration testing 2020-07-30 08:00:03 -04:00
mem_alloc tests: add filter for some tests using newlib 2020-12-16 08:57:40 -05:00
notify tests/samples: enable for integration testing 2020-07-30 08:00:03 -04:00
onoff tests: onoff: use typedef for spinlock key 2020-10-06 19:56:51 -04:00
ringbuffer tests: lib: ringbuffer: Add performance test 2020-11-11 13:17:49 +01:00
sprintf tests/sprintf: FP tests independent of endian 2020-12-04 14:33:43 +02:00