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

Unified Diff: Source/wtf/text/TextEncoding.cpp

Issue 23532016: Handle odd data lengths in UTF-16 decoder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Simplify Created 6 years, 10 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 | « Source/wtf/text/TextCodecUserDefined.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/TextEncoding.cpp
diff --git a/Source/wtf/text/TextEncoding.cpp b/Source/wtf/text/TextEncoding.cpp
index 99d6ed8c44b31eb4c3ae43ff747c7d3c0eaea24e..9adff579120c04ae646a1759407d88bc778569a0 100644
--- a/Source/wtf/text/TextEncoding.cpp
+++ b/Source/wtf/text/TextEncoding.cpp
@@ -60,7 +60,7 @@ String TextEncoding::decode(const char* data, size_t length, bool stopOnError, b
if (!m_name)
return String();
- return newTextCodec(*this)->decode(data, length, true, stopOnError, sawError);
+ return newTextCodec(*this)->decode(data, length, DataEOF, stopOnError, sawError);
}
CString TextEncoding::encode(const String& string, UnencodableHandling handling) const
« no previous file with comments | « Source/wtf/text/TextCodecUserDefined.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698