Closed
Description
function defrag_free_list
in libraries/ea_malloc/malloc_freelist.c contains a bug miscalculating the new block size.
After a few malloc/free operations it hangs.
line 70 should be lb->size += ALLOC_HEADER_SZ + b->size;
(i.e.: replace sizeof(*b)
by ALLOC_HEADER_SZ
).
This bug has already been solved in the current upstream version:
libmemory/src/malloc_freelist.c
Metadata
Metadata
Assignees
Labels
No labels