Skip to content

Fix out of bounds iteration in syntax scanners - #128

Open
rixnobis wants to merge 1 commit into
Rezonality:masterfrom
rixnobis:bounds-checks
Open

rixnobis wants to merge 1 commit into
Rezonality:masterfrom
rixnobis:bounds-checks

Conversation

@rixnobis

Copy link
Copy Markdown

The syntax and string scanners compare iterators with != against the end, but some loops can advance more than once per iteration: in ZepSyntax_Tree::UpdateSyntax, a trailing '~' or '+' increments the iterator twice and steps past the end. Use < instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants