Fix potential buffer over-read errors for un-terminated JSON strings and comments.

BUG=698693
TEST=base_unittests --gtest_filter=JSON* under MSan

Review-Url: https://codereview.chromium.org/2859513002
Cr-Commit-Position: refs/heads/master@{#470555}


CrOS-Libchrome-Original-Commit: 20abc56a850ed875b6be6d5ed2f8eeafeca5371a
2 files changed
tree: 7b24182744cfeb2f794e10deadc897a2869bdac1
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/