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

#94 Fixed issue where parsing font values with trailing commas causes… #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SebBrookfield
Copy link

… an IndexOutOfRangeException.

When dealing with a property value with a trailing comma, the code would try to start from that comma, and increase the start index by one. This would cause the start index to go out of bounds since it was the last character in the string.

Also removed the check for start being greater than -1 since the start index is never decremented.
This fixes #94.

@Licshee Licshee self-requested a review August 11, 2017 08:54
@Licshee Licshee self-assigned this Aug 11, 2017
@Licshee Licshee added the bug label Aug 11, 2017
@SebBrookfield SebBrookfield reopened this May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A trailing comma can cause an IndexOutOfRangeException when parsing fonts.
2 participants