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

Unified Diff: Source/modules/encoding/TextDecoder.cpp

Issue 23532016: Handle odd data lengths in UTF-16 decoder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 3 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: Source/modules/encoding/TextDecoder.cpp
diff --git a/Source/modules/encoding/TextDecoder.cpp b/Source/modules/encoding/TextDecoder.cpp
index 24a18cd59e94589b17f1e7bb7f4e21ae52e3b74d..c232fb91dcacd2b1d352cee8567b58931954943f 100644
--- a/Source/modules/encoding/TextDecoder.cpp
+++ b/Source/modules/encoding/TextDecoder.cpp
@@ -87,9 +87,6 @@ String TextDecoder::decode(ArrayBufferView* input, const Dictionary& options, Ex
bool flush = !stream;
- // FIXME: Not all TextCodec implementations handle |flush| - notably TextCodecUTF16
- // ignores it and never flushes!
-
bool sawError = false;
String s = m_codec->decode(start, length, flush, m_fatal, sawError);

Powered by Google App Engine
This is Rietveld 408576698