| 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;
|
|
|