| Index: third_party/WebKit/Source/wtf/text/StringImpl.h
|
| diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.h b/third_party/WebKit/Source/wtf/text/StringImpl.h
|
| index 161fa19be061c9ad496f7190c45a2f565eda7fc0..eaf077a7371ca90940ca996c9327900bc18c478d 100644
|
| --- a/third_party/WebKit/Source/wtf/text/StringImpl.h
|
| +++ b/third_party/WebKit/Source/wtf/text/StringImpl.h
|
| @@ -424,7 +424,7 @@ public:
|
| private:
|
| template<typename CharType> static size_t allocationSize(unsigned length)
|
| {
|
| - RELEASE_ASSERT(length <= ((std::numeric_limits<unsigned>::max() - sizeof(StringImpl)) / sizeof(CharType)));
|
| + CHECK_LE(length, (std::numeric_limits<unsigned>::max() - sizeof(StringImpl)) / sizeof(CharType));
|
| return sizeof(StringImpl) + length * sizeof(CharType);
|
| }
|
|
|
| @@ -658,7 +658,7 @@ inline unsigned lengthOfNullTerminatedString(const UChar* string)
|
| size_t length = 0;
|
| while (string[length] != UChar(0))
|
| ++length;
|
| - RELEASE_ASSERT(length <= std::numeric_limits<unsigned>::max());
|
| + CHECK_LE(length, std::numeric_limits<unsigned>::max());
|
| return static_cast<unsigned>(length);
|
| }
|
|
|
|
|