Skip to content

[libc] Further fixes to v7malloc#2132

Merged
ghaerr merged 1 commit intomasterfrom
v7malloc3
Dec 14, 2024
Merged

[libc] Further fixes to v7malloc#2132
ghaerr merged 1 commit intomasterfrom
v7malloc3

Conversation

@ghaerr
Copy link
Copy Markdown
Owner

@ghaerr ghaerr commented Dec 14, 2024

Further inspection found that v7malloc was calling sbrk twice the memory required, due to an off-by-one calculation not adding an extra word for the top of heap link to sbrk, which takes an additional word in the arena.

Added more debugging to show heap traversal during request block matching and before sbrk is called.

@ghaerr ghaerr merged commit 31b645b into master Dec 14, 2024
@ghaerr ghaerr deleted the v7malloc3 branch December 14, 2024 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant