Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Issue 2859513002: Fix potential buffer over-read errors for un-terminated JSON strings and comments. (Closed)

Created:
3 years, 7 months ago by Robert Sesek
Modified:
3 years, 7 months ago
Reviewers:
jdoerrie, brettw
CC:
chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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} Committed: https://chromium.googlesource.com/chromium/src/+/20abc56a850ed875b6be6d5ed2f8eeafeca5371a

Patch Set 1 #

Patch Set 2 : test message fix #

Total comments: 2

Patch Set 3 : ConsumeLiteral #

Total comments: 2

Patch Set 4 : Address comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -24 lines) Patch
M base/json/json_parser.cc View 1 2 3 6 chunks +38 lines, -14 lines 2 comments Download
M base/json/json_parser_unittest.cc View 1 2 3 3 chunks +44 lines, -7 lines 2 comments Download
M extensions/utility/unpacker_unittest.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 44 (27 generated)
Robert Sesek
3 years, 7 months ago (2017-05-02 19:37:58 UTC) #10
Robert Sesek
ping
3 years, 7 months ago (2017-05-04 17:21:45 UTC) #13
jdoerrie
Thanks for the fix! The test cases mentioned in the bug don't cause the uninitialized ...
3 years, 7 months ago (2017-05-05 09:34:11 UTC) #14
Robert Sesek
On 2017/05/05 09:34:11, jdoerrie wrote: > Thanks for the fix! The test cases mentioned in ...
3 years, 7 months ago (2017-05-05 21:20:50 UTC) #17
brettw
On 2017/05/05 21:20:50, Robert Sesek wrote: > > Do you want to address these issues ...
3 years, 7 months ago (2017-05-05 23:47:11 UTC) #20
jdoerrie
On 2017/05/05 23:47:11, brettw (busy this week) wrote: > On 2017/05/05 21:20:50, Robert Sesek wrote: ...
3 years, 7 months ago (2017-05-08 08:37:05 UTC) #21
jdoerrie
LGTM, I will file a bug for the issues with the calls to CBU8_NEXT. https://codereview.chromium.org/2859513002/diff/40001/base/json/json_parser.cc ...
3 years, 7 months ago (2017-05-08 08:38:25 UTC) #22
Robert Sesek
https://codereview.chromium.org/2859513002/diff/40001/base/json/json_parser.cc File base/json/json_parser.cc (right): https://codereview.chromium.org/2859513002/diff/40001/base/json/json_parser.cc#newcode534 base/json/json_parser.cc:534: if (!CanConsume(2)) { On 2017/05/08 08:38:25, jdoerrie (slow this ...
3 years, 7 months ago (2017-05-08 21:10:49 UTC) #25
Robert Sesek
brettw: ping
3 years, 7 months ago (2017-05-09 18:58:14 UTC) #28
brettw
LGTM, some optional/future suggestions: https://codereview.chromium.org/2859513002/diff/60001/base/json/json_parser.cc File base/json/json_parser.cc (right): https://codereview.chromium.org/2859513002/diff/60001/base/json/json_parser.cc#newcode282 base/json/json_parser.cc:282: NextChar(); Did you consider making ...
3 years, 7 months ago (2017-05-09 19:53:14 UTC) #29
Robert Sesek
Thanks. https://codereview.chromium.org/2859513002/diff/60001/base/json/json_parser.cc File base/json/json_parser.cc (right): https://codereview.chromium.org/2859513002/diff/60001/base/json/json_parser.cc#newcode282 base/json/json_parser.cc:282: NextChar(); On 2017/05/09 19:53:14, brettw (behind--catching up) wrote: ...
3 years, 7 months ago (2017-05-09 21:27:37 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2859513002/60001
3 years, 7 months ago (2017-05-09 21:29:18 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/335545)
3 years, 7 months ago (2017-05-09 22:57:59 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2859513002/60001
3 years, 7 months ago (2017-05-10 01:20:51 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 7 months ago (2017-05-10 03:23:53 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2859513002/60001
3 years, 7 months ago (2017-05-10 12:49:18 UTC) #41
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 13:50:03 UTC) #44
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/20abc56a850ed875b6be6d5ed2f8...

Powered by Google App Engine
This is Rietveld 408576698