Chromium Code Reviews
DescriptionDon't initialize ICU replacement character for UTF-32 encodings
The TextCodecICU wrapper erroneously called ucnv_setSubstChars() with
only a single byte replacement for non-byte-based encodings -
basically the UTF-32 family. The code path is only exercised when
computing names for files in form uploads. This would hit an ASSERT in
debug builds, and result in an empty filename in release builds.
BUG=662146, 417850
R=tkent@chromium.org
Committed: https://crrev.com/2e2c129641218bcf03de40f74124a5c4f7c21f86
Cr-Commit-Position: refs/heads/master@{#430356}
Patch Set 1 #Patch Set 2 : Add tests for TextEncoding methods #
Total comments: 1
Patch Set 3 : Don't use zero-length array initializer, to keep MSVC happy #
Depends on Patchset: Messages
Total messages: 30 (19 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||