Bug 710974 - extraneous commas should be rejected by number list parser. r=dholbert

This commit is contained in:
Tim Taubert 2012-07-30 10:02:46 +01:00
parent b553f704bb
commit 9007cd0287

View File

@ -63,7 +63,7 @@ SVGNumberList::SetValueFromString(const nsAString& aValue)
while (tokenizer.hasMoreTokens()) {
CopyUTF16toUTF8(tokenizer.nextToken(), str); // NS_ConvertUTF16toUTF8
const char *token = str.get();
if (token == '\0') {
if (*token == '\0') {
return NS_ERROR_DOM_SYNTAX_ERR; // nothing between commas
}
char *end;