Skip to content

assorted bug fixes and many memory corruption fixes#799

Merged
squeek502 merged 1 commit intoluvit:masterfrom
truemedian:bugfix
Feb 25, 2026
Merged

assorted bug fixes and many memory corruption fixes#799
squeek502 merged 1 commit intoluvit:masterfrom
truemedian:bugfix

Conversation

@truemedian
Copy link
Copy Markdown
Member

This is a lot of changes all rolled into one because it would otherwise be 30 different single-line commits.

Most of the issues are related to not checking the return of malloc for a null return.

@truemedian truemedian force-pushed the bugfix branch 2 times, most recently from cd2b03c to 09c1f1c Compare February 24, 2026 23:07
fix: fix pop(-1) stack corruption

fix: fix many memory leaks and potential out-of-memory crashes

remove schema, never been used

fix: uninitialized memory access in parse_sockaddr

fix: uv_interface_addresses can fail

fix: interface indexes are already 1-based

fix: prevent malloc(-1)

fix: sparse_rawlen assumed the table was at index -2

fix: prevent infinite sleep

nit: add missing copyright headers
Copy link
Copy Markdown
Member

@squeek502 squeek502 left a comment

Choose a reason for hiding this comment

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

Nice work!

@squeek502 squeek502 merged commit d2966af into luvit:master Feb 25, 2026
15 checks passed
@truemedian truemedian deleted the bugfix branch March 18, 2026 18:52
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