commit | 19cb703ecc541db80eeed5917ae7da60175c2741 | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@chromium.org> | Tue Jan 14 16:55:21 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 14 16:55:21 2020 |
tree | 392dbd0d2d502fc1d1116b25cd46892b1e0aa156 | |
parent | 04d2574e29cf17169ff18764bc272e0de37a1bfc [diff] |
base: reject nonsense JSON starting with '/'. When trying to consume comments, the JSON parser would, upon seeing a '/', consume two bytes and ignore them if they didn't match the pattern of a comment (i.e. "//" or "/*"). This lead to the first two bytes of "/33" being ignored as a “comment” and the remainder ("3") parsing as the value three. Change-Id: I3bbcb7e608960ff7edf62a21767f0caa35cccfd0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1999328 Reviewed-by: Robert Sesek <rsesek@chromium.org> Commit-Queue: Adam Langley <agl@chromium.org> Cr-Commit-Position: refs/heads/master@{#731468}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .