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

Unified Diff: third_party/WebKit/Source/wtf/text/StringImpl.cpp

Issue 2635033002: Avoid infinite recursion in StringImpl::asciiForDebugging (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/StringImpl.cpp
diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.cpp b/third_party/WebKit/Source/wtf/text/StringImpl.cpp
index f8b6b7b033bb9be1e02e8ffbe480421656638a98..6654e3040fbb556d50ee42fb0180e10a2a2e184a 100644
--- a/third_party/WebKit/Source/wtf/text/StringImpl.cpp
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.cpp
@@ -335,7 +335,7 @@ bool StringImpl::isSafeToSendToAnotherThread() const {
#if DCHECK_IS_ON()
std::string StringImpl::asciiForDebugging() const {
- CString ascii = String(substring(0, 128)).ascii();
+ CString ascii = String(isolatedCopy()->substring(0, 128)).ascii();
return std::string(ascii.data(), ascii.length());
}
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698