Skip to content
  • 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