You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An email I had viewed with the HTML Renderer had a dodgy font family.
The blockSource had the value "font-family: helveticaneue,;"
The CssParser.ParseFontFamilyProperty method initially extracts the font "helveticaneue", but fails to find it.
It then tries to extract the next font by starting at the index of the comma, and increments the index by one to look at the next character.
Since the comma is the last character, it causes an IndexOutOfRangeException.
There needs to be a check to make sure that the index is never equal to or greater than the length of the property value.
The text was updated successfully, but these errors were encountered:
SebBrookfield
added a commit
to SebBrookfield/HTML-Renderer
that referenced
this issue
Aug 4, 2017
An email I had viewed with the HTML Renderer had a dodgy font family.
The blockSource had the value "font-family: helveticaneue,;"
The CssParser.ParseFontFamilyProperty method initially extracts the font "helveticaneue", but fails to find it.
It then tries to extract the next font by starting at the index of the comma, and increments the index by one to look at the next character.
Since the comma is the last character, it causes an IndexOutOfRangeException.
There needs to be a check to make sure that the index is never equal to or greater than the length of the property value.
The text was updated successfully, but these errors were encountered: