| Index: third_party/WebKit/Source/wtf/text/CString.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/text/CString.cpp b/third_party/WebKit/Source/wtf/text/CString.cpp
|
| index b3af14ce55f0cb51aa25b849372a2e52cf6b0d87..12035bae12164d9a2f0d9021303cce79a60a793e 100644
|
| --- a/third_party/WebKit/Source/wtf/text/CString.cpp
|
| +++ b/third_party/WebKit/Source/wtf/text/CString.cpp
|
| @@ -36,7 +36,7 @@ namespace WTF {
|
|
|
| PassRefPtr<CStringBuffer> CStringBuffer::createUninitialized(size_t length)
|
| {
|
| - RELEASE_ASSERT(length < (numeric_limits<unsigned>::max() - sizeof(CStringBuffer)));
|
| + CHECK_LT(length, numeric_limits<unsigned>::max() - sizeof(CStringBuffer));
|
|
|
| // The +1 is for the terminating NUL character.
|
| size_t size = sizeof(CStringBuffer) + length + 1;
|
|
|