Skip to content

[BUG] allocating continious blocks can set wrong first free #1714

@dabekjakub

Description

@dabekjakub

alloc.c line 299

/* update first_free if needed */
if (map->first_free == start)
   map->first_free += count;

Probable bug here - this is not always first free (it most likely works now because we do not free resources mid work yet) but if there was a realocation or any block was fited in a hole in memory this can result in first free beeing block which is already used.

Metadata

Metadata

Labels

P1Blocker bugs or important featuresbugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions