Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: third_party/WebKit/Source/platform/wtf/text/TextCodecUTF8.cpp

Issue 2919443002: Use IMMEDIATE_CRASH() instead of CRASH() directly (Closed)
Patch Set: Use IMMEDIATE_CRASH() instead of CRASH() directly Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/wtf/text/TextCodecUTF8.cpp
diff --git a/third_party/WebKit/Source/platform/wtf/text/TextCodecUTF8.cpp b/third_party/WebKit/Source/platform/wtf/text/TextCodecUTF8.cpp
index 32b21a7f535d9985d3eee9ac59cd351429b40adf..55f0ce5834fd0ca8f9173d15ab70121b3538c997 100644
--- a/third_party/WebKit/Source/platform/wtf/text/TextCodecUTF8.cpp
+++ b/third_party/WebKit/Source/platform/wtf/text/TextCodecUTF8.cpp
@@ -464,7 +464,7 @@ CString TextCodecUTF8::EncodeCommon(const CharType* characters, size_t length) {
// Non-BMP characters take two UTF-16 code units and can take up to 4 bytes
// (2x).
if (length > std::numeric_limits<size_t>::max() / 3)
- CRASH();
+ IMMEDIATE_CRASH();
Vector<uint8_t> bytes(length * 3);
size_t i = 0;
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/text/StringImpl.cpp ('k') | third_party/WebKit/Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698