| Index: third_party/WebKit/Source/core/dom/Text.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Text.cpp b/third_party/WebKit/Source/core/dom/Text.cpp
|
| index c9b0047b4d1353186acf0398f615d563b7b7b0e0..09e391a059a668ae763dc4a898fe20c2b6676a55 100644
|
| --- a/third_party/WebKit/Source/core/dom/Text.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Text.cpp
|
| @@ -175,8 +175,8 @@ String Text::wholeText() const {
|
| if (!n->IsTextNode())
|
| continue;
|
| const String& data = ToText(n)->data();
|
| - if (std::numeric_limits<unsigned>::max() - data.length() < result_length)
|
| - IMMEDIATE_CRASH();
|
| + CHECK_GE(std::numeric_limits<unsigned>::max() - data.length(),
|
| + result_length);
|
| result_length += data.length();
|
| }
|
| StringBuilder result;
|
|
|