Skip to content

Prevent malloc_size underflolw - #1372

Merged
saghul merged 1 commit into
masterfrom
free-underflow
Mar 2, 2026
Merged

saghul merged 1 commit into
masterfrom
free-underflow

Conversation

@saghul

@saghul saghul commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

I was going nuts debugging an issue that turned out to be mismatched
allocators, which triggered a malloc_size underflow and the whole
program was running GC all the time unable to do anything else.

abort() so the user can see things went wrong.

I was going nuts debugging an issue that turned out to be mismatched
allocators, which triggered a malloc_size underflow and the whole
program was running GC all the time unable to do anything else.

abort() so the user can see things went wrong.

@bnoordhuis bnoordhuis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but s/underflolw/underflow/ :-)

@saghul
saghul merged commit 7304c3d into master Mar 2, 2026
122 checks passed
@saghul
saghul deleted the free-underflow branch March 2, 2026 19:03
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.

2 participants