DescriptionDo not silently drop \u0000 in base::JSONReader
When encoding a string containing nul bytes base::JSONWriter will emit
the Unicode escape sequence "\u0000" which is valid JSON.
base::JSONReader however supports the nonstandard "\x00" escape sequence
but will silently drop the character "\u0000". This patch fixes
JSONParser::DecodeUTF16() properly append nul bytes to the output
string.
BUG=268991
Review-Url: https://codereview.chromium.org/2823023002
Cr-Commit-Position: refs/heads/master@{#465018}
Committed: https://chromium.googlesource.com/chromium/src/+/686319f537227990eb77e717897691bcb7171187
Patch Set 1 #
Messages
Total messages: 15 (9 generated)
|