We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function defrag_free_list in libraries/ea_malloc/malloc_freelist.c contains a bug miscalculating the new block size.
defrag_free_list
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).
lb->size += ALLOC_HEADER_SZ + b->size;
sizeof(*b)
ALLOC_HEADER_SZ
This bug has already been solved in the current upstream version: libmemory/src/malloc_freelist.c
The text was updated successfully, but these errors were encountered:
Can you post a sketch to reproduce the issue ?
Never mind, I do see the issue.
Sorry, something went wrong.
ea_malloc: Fix defrag_free_list block size bug.
5ca5520
Fixes arduino#864.
iabdalkader
Successfully merging a pull request may close this issue.
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.: replacesizeof(*b)
byALLOC_HEADER_SZ
).This bug has already been solved in the current upstream version:
libmemory/src/malloc_freelist.c
The text was updated successfully, but these errors were encountered: