Skip to content

backport: wasm realloc optimization fix#5286

Merged
WillLillis merged 2 commits intotree-sitter:release-0.26from
WillLillis:wasm_realloc_clobber_backport
Feb 1, 2026
Merged

backport: wasm realloc optimization fix#5286
WillLillis merged 2 commits intotree-sitter:release-0.26from
WillLillis:wasm_realloc_clobber_backport

Conversation

@WillLillis
Copy link
Member

Manual backport of #5276

WillLillis and others added 2 commits January 31, 2026 19:28
the region in place.

Previous changes to `malloc` caused `realloc` to sometimes pull regions
off of the free list during this optimization. Because no `memcpy` is
performed, this resulted in corrupted data returning to the caller.

Co-authored-by: trim21 <i@trim21.me>
@WillLillis WillLillis changed the title test: rename wasm corpus test "wasm_realloc"->"wasm_realloc_overflow_… backport: wasm realloc optimization fix Feb 1, 2026
@WillLillis WillLillis merged commit 666144d into tree-sitter:release-0.26 Feb 1, 2026
19 checks passed
@WillLillis WillLillis deleted the wasm_realloc_clobber_backport branch February 1, 2026 01:06
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