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

Unified Diff: third_party/WebKit/Source/platform/wtf/text/CString.cpp

Issue 2833123002: Replace ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/wtf (Closed)
Patch Set: wtf Created 3 years, 8 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/platform/wtf/text/CString.cpp
diff --git a/third_party/WebKit/Source/platform/wtf/text/CString.cpp b/third_party/WebKit/Source/platform/wtf/text/CString.cpp
index c175b535deb0557ef8bbfd077e4cd20c4eaf0174..46480f42f1c21609ebd629bf1ac84d7ce410c3cf 100644
--- a/third_party/WebKit/Source/platform/wtf/text/CString.cpp
+++ b/third_party/WebKit/Source/platform/wtf/text/CString.cpp
@@ -37,8 +37,7 @@ namespace WTF {
PassRefPtr<CStringImpl> CStringImpl::CreateUninitialized(size_t length,
char*& data) {
// TODO(esprehn): This doesn't account for the NUL.
- RELEASE_ASSERT(length <
- (numeric_limits<unsigned>::max() - sizeof(CStringImpl)));
+ CHECK_LT(length, (numeric_limits<unsigned>::max() - sizeof(CStringImpl)));
// The +1 is for the terminating NUL character.
size_t size = sizeof(CStringImpl) + length + 1;

Powered by Google App Engine
This is Rietveld 408576698