Bug 1438671 - Add assertions to enforce the size of prefix strings. r=gcp

Also document the meaning of mPrimed in LookupCache.h.

MozReview-Commit-ID: 63GAHwU3Rx3
This commit is contained in:
Francois Marier
2018-03-29 15:40:13 -07:00
parent 098fce2112
commit 79f0140281
3 changed files with 14 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ nsUrlClassifierPrefixSet::SetPrefixes(const uint32_t* aArray, uint32_t aLength)
Clear();
}
} else {
MOZ_ASSERT(aArray);
rv = MakePrefixSet(aArray, aLength);
}