mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 710974 - extraneous commas should be rejected by number list parser. r=dholbert
This commit is contained in:
parent
b553f704bb
commit
9007cd0287
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user