Skip to content

fix: avoid out-of-bounds panic scanning truncated comment start#19

Open
SAY-5 wants to merge 1 commit into
bluk:trunkfrom
SAY-5:fix-comment-start-oob
Open

fix: avoid out-of-bounds panic scanning truncated comment start#19
SAY-5 wants to merge 1 commit into
bluk:trunkfrom
SAY-5:fix-comment-start-oob

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 12, 2026

Input ending in <!- made scan_declaration_comment_or_cdata index one byte past the end of the slice because the bounds check used < instead of <= like every other peek check. Closes #17.

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.

Possible index out of bounds in comment parsing code

1 participant