| Index: third_party/WebKit/Source/platform/wtf/text/StringImpl.cpp
|
| diff --git a/third_party/WebKit/Source/platform/wtf/text/StringImpl.cpp b/third_party/WebKit/Source/platform/wtf/text/StringImpl.cpp
|
| index 10def1fa263122811298a84a9ecaad5c90fbb722..aeba8335c32bbaf24036c48b376323b2f8601154 100644
|
| --- a/third_party/WebKit/Source/platform/wtf/text/StringImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/wtf/text/StringImpl.cpp
|
| @@ -650,8 +650,7 @@ PassRefPtr<StringImpl> StringImpl::LowerUnicode(
|
| else
|
| return LowerUnicode();
|
|
|
| - if (length_ > static_cast<unsigned>(numeric_limits<int32_t>::max()))
|
| - IMMEDIATE_CRASH();
|
| + CHECK_LE(length_, static_cast<unsigned>(numeric_limits<int32_t>::max()));
|
| int length = length_;
|
|
|
| RefPtr<StringImpl> upconverted = UpconvertedString();
|
| @@ -676,8 +675,7 @@ PassRefPtr<StringImpl> StringImpl::UpperUnicode(
|
| else
|
| return UpperUnicode();
|
|
|
| - if (length_ > static_cast<unsigned>(numeric_limits<int32_t>::max()))
|
| - IMMEDIATE_CRASH();
|
| + CHECK_LE(length_, static_cast<unsigned>(numeric_limits<int32_t>::max()));
|
| int length = length_;
|
|
|
| RefPtr<StringImpl> upconverted = UpconvertedString();
|
|
|