Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a crash if inserting a whitespace after a _ or ^ symbol. #103

Merged
merged 1 commit into from
Jan 24, 2018

Conversation

sskodje
Copy link
Contributor

@sskodje sskodje commented Jan 21, 2018

The ReadScript method is checking for position length before potentially incrementing it with SkipWhiteSpace, leading to index out of bounds exception if you insert a whitespace after a _ or ^. Moving SkipWhiteSpace before the length check seems to fix the issue.

@alexreg
Copy link
Collaborator

alexreg commented Jan 21, 2018

Looks good to me. Thanks for the PR, and including a test! I'll let @ForNeVeR check over it quickly before merging though.

@ForNeVeR ForNeVeR self-requested a review January 22, 2018 03:43
@ForNeVeR ForNeVeR self-assigned this Jan 22, 2018
@ForNeVeR
Copy link
Owner

Sorry for the delay and thanks for the contribution!

@ForNeVeR ForNeVeR merged commit 15cfc84 into ForNeVeR:master Jan 24, 2018
ForNeVeR added a commit that referenced this pull request Jan 24, 2018
ForNeVeR added a commit that referenced this pull request Jan 24, 2018
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.

3 participants