Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Unified Diff: third_party/WebKit/Source/wtf/BitVector.h

Issue 2704953002: Make security checks in BitVector not just debug (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/BitVector.h
diff --git a/third_party/WebKit/Source/wtf/BitVector.h b/third_party/WebKit/Source/wtf/BitVector.h
index 034c33d5f7a1cb053b34273ff58d5f88012665d8..dd0b2aa2de646de56f16632afef1e706b8fcb5ee 100644
--- a/third_party/WebKit/Source/wtf/BitVector.h
+++ b/third_party/WebKit/Source/wtf/BitVector.h
@@ -103,19 +103,19 @@ class WTF_EXPORT BitVector {
void clearAll();
bool quickGet(size_t bit) const {
- SECURITY_DCHECK(bit < size());
+ SECURITY_CHECK(bit < size());
return !!(bits()[bit / bitsInPointer()] &
(static_cast<uintptr_t>(1) << (bit & (bitsInPointer() - 1))));
}
void quickSet(size_t bit) {
- SECURITY_DCHECK(bit < size());
+ SECURITY_CHECK(bit < size());
bits()[bit / bitsInPointer()] |=
(static_cast<uintptr_t>(1) << (bit & (bitsInPointer() - 1)));
}
void quickClear(size_t bit) {
- SECURITY_DCHECK(bit < size());
+ SECURITY_CHECK(bit < size());
bits()[bit / bitsInPointer()] &=
~(static_cast<uintptr_t>(1) << (bit & (bitsInPointer() - 1)));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698