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:
@@ -89,6 +89,7 @@ nsUrlClassifierPrefixSet::SetPrefixes(const uint32_t* aArray, uint32_t aLength)
|
||||
Clear();
|
||||
}
|
||||
} else {
|
||||
MOZ_ASSERT(aArray);
|
||||
rv = MakePrefixSet(aArray, aLength);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user