nuttx/mm/mm_heap
Brennan Ashton fcd6e1c7eb mm: Do not memcopy more than oldsize when realloc
When realloc up from a mem area to a larger one where a new node
is needed. The the larger memory region is copied from the source
this can both leak data as well as cause memory faults accesssing
invalid data.

This was first reported by Kwonsk

Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-06-29 14:56:26 -07:00
..
Make.defs mm/: add mm_heapmember function and reimplement kmm_heapmember base on mm_heapmember since this function is very useful if multiple heaps exist. 2018-08-23 09:38:49 -06:00
mm_addfreechunk.c Fix non C89 noncompliant code that was causing the ZDS-II compile to fail. 2020-02-19 23:09:10 +01:00
mm_brkaddr.c Remove some empty file section section header comments 2016-02-17 18:57:35 -06:00
mm_calloc.c mm/mm_heap/mm_calloc.c: Verify that the number of elements times the size of an element will not overflow type size_t. This is required by the SEI CERT C coding style and resolves anonymous Bitbucket Issue #139 2019-01-07 16:13:48 -06:00
mm_extend.c mm/: Coding style clean-up 2020-02-13 15:16:53 +01:00
mm_free.c Refine __KERNEL__ and CONFIG_BUILD_xxx usage in the code base 2020-05-01 10:43:47 -03:00
mm_heapmember.c mm/: add mm_heapmember function and reimplement kmm_heapmember base on mm_heapmember since this function is very useful if multiple heaps exist. 2018-08-23 09:38:49 -06:00
mm_initialize.c mm: Fix heap corruption in protected build 2020-04-22 13:45:56 +08:00
mm_mallinfo.c Include malloc.h instead of stdlib.h for mallinfo() 2020-06-15 07:21:19 -06:00
mm_malloc.c Refine __KERNEL__ and CONFIG_BUILD_xxx usage in the code base 2020-05-01 10:43:47 -03:00
mm_memalign.c mm/: Coding style clean-up 2020-02-13 15:16:53 +01:00
mm_realloc.c mm: Do not memcopy more than oldsize when realloc 2020-06-29 14:56:26 -07:00
mm_sbrk.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
mm_sem.c debug: Reduce CONFIG_CPP_HAVE_VARARGS usage 2020-05-05 08:27:58 -06:00
mm_shrinkchunk.c mm/: Coding style clean-up 2020-02-13 15:16:53 +01:00
mm_size2ndx.c mm/: Coding style clean-up 2020-02-13 15:16:53 +01:00
mm_zalloc.c waitpid: CRITICAL BUGFIX. Add a reference counting mechansim to prevent wait from using stale memory that was freed by the exiting task 2015-12-22 11:48:17 -06:00