зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1231224 part 4 - Fix TokenStream::getDirective to check append() return value. r=jwalden
This commit is contained in:
Родитель
b214d21a76
Коммит
2eae9f8a3f
|
@ -877,13 +877,15 @@ TokenStream::getDirective(bool isMultiline, bool shouldWarnDeprecated,
|
|||
ungetChar('*');
|
||||
break;
|
||||
}
|
||||
tokenbuf.append(c);
|
||||
if (!tokenbuf.append(c))
|
||||
return false;
|
||||
}
|
||||
|
||||
if (tokenbuf.empty())
|
||||
if (tokenbuf.empty()) {
|
||||
// The directive's URL was missing, but this is not quite an
|
||||
// exception that we should stop and drop everything for.
|
||||
return true;
|
||||
}
|
||||
|
||||
size_t length = tokenbuf.length();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче