Skip to content

bug in SDRAM defrag #864

Closed
Closed
@mrubioroy

Description

@mrubioroy

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions