Malloc-Implementations
Malloc-Implementations copied to clipboard
Access of memory past the end of a memory buffer
In the API malloc_ex() free_ex() realloc_ex() taking address with &tlsf->fl_bitmap yields a singleton pointer and passing &tlsf->fl_bitmap to function set_bit which uses it as an array. This might corrupt or misinterpret adjacent memory locations. Out-of-bounds access that memory not owned by this buffer will be accessed, causing memory corruption or incorrect computations.
#https://github.com/ros2/tlsf/issues/5
sorry, the following was unexpectedly referenced here while operating with a ctrl+v, please ignore it, which has nothing to do with this issue
https://github.com/gaoethan/uncrustify/pull/1