Commit 2d88572a authored by apisarev's avatar apisarev Committed by Commit bot

Initialize member array field.

In RuleData we have array field, which is not initialized at
construction of the object. And after object constructed, we iterate
through this array by pointer. This code look dangerous and MSan detect
this problem.
To be safe during this iteration need initialize this array. It was
done.

R=skobes
BUG=None

Review-Url: https://codereview.chromium.org/2600123002
Cr-Commit-Position: refs/heads/master@{#440838}
parent 253c3206
......@@ -129,7 +129,8 @@ RuleData::RuleData(StyleRule* rule,
m_linkMatchType(selector().computeLinkMatchType()),
m_hasDocumentSecurityOrigin(addRuleFlags & RuleHasDocumentSecurityOrigin),
m_propertyWhitelist(
determinePropertyWhitelistType(addRuleFlags, selector())) {
determinePropertyWhitelistType(addRuleFlags, selector())),
m_descendantSelectorIdentifierHashes() {
SelectorFilter::collectIdentifierHashes(
selector(), m_descendantSelectorIdentifierHashes, maximumIdentifierCount);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment