Skip to content

Action overflow#5273

Merged
WillLillis merged 2 commits intotree-sitter:masterfrom
WillLillis:action_overflow
Jan 31, 2026
Merged

Action overflow#5273
WillLillis merged 2 commits intotree-sitter:masterfrom
WillLillis:action_overflow

Conversation

@WillLillis
Copy link
Member

Without this check, action ids > 65,535 can be assigned to uint16_t in parser.c, causing unsigned integer overflow. This causes parsing to either crash or silently misbehave.

This issue was originally raised in the community discord for the tree-sitter-abl grammar. Here's what the new error message looks like:

image

Without this check, action ids > 65,535 can be assigned to `uint16_t`s
in parser.c. This causes parsing to either crash or silently misbehave.
@WillLillis WillLillis added parser-generation Related to `tree-sitter generate` cli ci:backport release-0.26 Backport label labels Jan 30, 2026
@WillLillis WillLillis merged commit 94f4143 into tree-sitter:master Jan 31, 2026
31 of 32 checks passed
@WillLillis WillLillis deleted the action_overflow branch January 31, 2026 03:45
@tree-sitter-ci-bot
Copy link

Successfully created backport PR for release-0.26:

@tree-sitter-ci-bot tree-sitter-ci-bot bot mentioned this pull request Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:backport release-0.26 Backport label cli parser-generation Related to `tree-sitter generate`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants