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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix Created 4 years, 2 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
Index: third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h b/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
index 974088c7f4800bc4ed731e14b10d33068a5cfa99..43cfd86a907541c338c75e37afbb884580761d58 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
@@ -55,7 +55,7 @@ class TypedArrayBase : public ArrayBufferView {
// Invoked by the indexed getter. Does not perform range checks; caller
// is responsible for doing so and returning undefined as necessary.
T item(unsigned index) const {
- ASSERT_WITH_SECURITY_IMPLICATION(index < TypedArrayBase<T>::m_length);
+ SECURITY_DCHECK(index < TypedArrayBase<T>::m_length);
return TypedArrayBase<T>::data()[index];
}
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp ('k') | third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698