Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan

This commit is contained in:
Tristan Bourvon
2018-04-10 21:11:02 +02:00
parent 6ca6b03ffd
commit 6095241db8
536 changed files with 5457 additions and 2818 deletions

View File

@@ -126,9 +126,29 @@ nsHtml5Tokenizer::nsHtml5Tokenizer(nsHtml5TreeBuilder* tokenHandler,
bool viewingXmlSource)
: tokenHandler(tokenHandler)
, encodingDeclarationHandler(nullptr)
, lastCR{ false }
, stateSave{}
, returnStateSave{}
, index{}
, forceQuirks{ false }
, additional{ u'\0' }
, entCol{}
, firstCharKey{}
, lo{}
, hi{}
, candidate{}
, charRefBufMark{}
, value{}
, seenDigits{ false }
, cstart{}
, strBufLen{}
, charRefBuf(jArray<char16_t, int32_t>::newJArray(32))
, charRefBufLen{}
, bmpChar(jArray<char16_t, int32_t>::newJArray(1))
, astralChar(jArray<char16_t, int32_t>::newJArray(2))
, endTagExpectation{ nullptr }
, endTagExpectationAsArray{}
, endTag{ false }
, containsHyphen(false)
, tagName(nullptr)
, nonInternedTagName(new nsHtml5ElementName())
@@ -140,6 +160,11 @@ nsHtml5Tokenizer::nsHtml5Tokenizer(nsHtml5TreeBuilder* tokenHandler,
, attributes(tokenHandler->HasBuilder() ? new nsHtml5HtmlAttributes(0)
: nullptr)
, newAttributesEachTime(!tokenHandler->HasBuilder())
, shouldSuspend{ false }
, confident{ false }
, line{}
, attributeLine{}
, interner{ nullptr }
, viewingXmlSource(viewingXmlSource)
{
MOZ_COUNT_CTOR(nsHtml5Tokenizer);