| Index: third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
|
| index 6fc1f15a2df3867d4294cf5e13e0b588cf4c266e..4a77188e257a5f75e8b1f15cb58fb0e1a7d6c953 100644
|
| --- a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
|
| +++ b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
|
| @@ -166,7 +166,7 @@ CString TextCodecUTF16::encode(const UChar* characters, size_t length, Unencodab
|
| CString TextCodecUTF16::encode(const LChar* characters, size_t length, UnencodableHandling)
|
| {
|
| // In the LChar case, we do actually need to perform this check in release. :)
|
| - RELEASE_ASSERT(length <= numeric_limits<size_t>::max() / 2);
|
| + CHECK(length <= numeric_limits<size_t>::max() / 2);
|
|
|
| char* bytes;
|
| CString result = CString::newUninitialized(length * 2, bytes);
|
|
|