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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy