Skip to content
New issue

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

[libc] Further fixes to v7malloc #2132

Merged
merged 1 commit into from
Dec 14, 2024
Merged

[libc] Further fixes to v7malloc #2132

merged 1 commit into from
Dec 14, 2024

Conversation

ghaerr
Copy link
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
2 checks passed
@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