Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

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

Merged
eXpl0it3r merged 1 commit intoArthurHub:masterArthurHub/HTML-Renderer:masterfrom
SebBrookfield:masterSebBrookfield/HTML-Renderer:masterCopy head branch name to clipboard
Dec 10, 2025
Merged

#94 Fixed issue where parsing font values with trailing commas causes…#96
eXpl0it3r merged 1 commit intoArthurHub:masterArthurHub/HTML-Renderer:masterfrom
SebBrookfield:masterSebBrookfield/HTML-Renderer:masterCopy head branch name to clipboard

Conversation

@SebBrookfield
Copy link
Contributor

… 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
@eXpl0it3r eXpl0it3r merged commit 0b3cd8c into ArthurHub:master Dec 10, 2025
@eXpl0it3r
Copy link
Collaborator

Thank you for fixing this!

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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.