Bug 1169800 - nsContentUtils::ParseLegacyFontSize should check when the input string is just '+' or '-', r=dveditz

This commit is contained in:
Andrea Marchesini 2015-06-02 08:05:48 +01:00
parent 9c222f8082
commit 9ad09bc9db

View File

@ -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;
}