• reillyg's avatar
    Do not silently drop \u0000 in base::JSONReader · 686319f5
    reillyg authored
    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}
    686319f5
Name
Last commit
Last update
..
correctness_fuzzer.cc Loading commit data...
json_file_value_serializer.cc Loading commit data...
json_file_value_serializer.h Loading commit data...
json_parser.cc Loading commit data...
json_parser.h Loading commit data...
json_parser_unittest.cc Loading commit data...
json_perftest.cc Loading commit data...
json_reader.cc Loading commit data...
json_reader.h Loading commit data...
json_reader_unittest.cc Loading commit data...
json_string_value_serializer.cc Loading commit data...
json_string_value_serializer.h Loading commit data...
json_value_converter.cc Loading commit data...
json_value_converter.h Loading commit data...
json_value_converter_unittest.cc Loading commit data...
json_value_serializer_unittest.cc Loading commit data...
json_writer.cc Loading commit data...
json_writer.h Loading commit data...
json_writer_unittest.cc Loading commit data...
string_escape.cc Loading commit data...
string_escape.h Loading commit data...
string_escape_unittest.cc Loading commit data...