mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1169800 - nsContentUtils::ParseLegacyFontSize should check when the input string is just '+' or '-', r=dveditz
This commit is contained in:
parent
9c222f8082
commit
9ad09bc9db
@ -1660,7 +1660,7 @@ nsContentUtils::ParseLegacyFontSize(const nsAString& aValue)
|
||||
++iter;
|
||||
}
|
||||
|
||||
if (*iter < char16_t('0') || *iter > char16_t('9')) {
|
||||
if (iter == end || *iter < char16_t('0') || *iter > char16_t('9')) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user