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

Issue 2086053003: Simple Cache: validate lengths before allocations. (Closed)

Created:
4 years, 6 months ago by gavinp
Modified:
4 years, 4 months ago
Reviewers:
Julia Tuttle
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, kinuko+cache_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simple Cache: validate lengths before allocations. This bug was most unfortunate. A corrupt entry could cause Chrome to crash when opening it, without removing the entry. Not a good loop to be in. Now we are much more careful with casts around the data coming from disk to confirm sanity before proceeding. R=juliatuttle@chromium.org BUG=541720 Committed: https://crrev.com/bf840cc6c21c5a5b6e95d120e5493e0a7eb61498 Cr-Commit-Position: refs/heads/master@{#408134}

Patch Set 1 #

Total comments: 4

Patch Set 2 : remediate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -12 lines) Patch
M net/disk_cache/entry_unittest.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.h View 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.cc View 1 4 chunks +14 lines, -11 lines 0 comments Download
M net/disk_cache/simple/simple_test_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_test_util.cc View 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
gavinp
ptal
4 years, 6 months ago (2016-06-22 15:06:56 UTC) #1
gavinp
On 2016/06/22 15:06:56, gavinp wrote: > ptal Ping
4 years, 5 months ago (2016-06-27 18:57:38 UTC) #2
Julia Tuttle
Sorry for the latency. https://codereview.chromium.org/2086053003/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc File net/disk_cache/simple/simple_synchronous_entry.cc (right): https://codereview.chromium.org/2086053003/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc#newcode1191 net/disk_cache/simple/simple_synchronous_entry.cc:1191: if (stream_0_size > stream_1_size) This ...
4 years, 5 months ago (2016-06-27 20:39:10 UTC) #3
Julia Tuttle
Ping?
4 years, 5 months ago (2016-07-18 14:49:05 UTC) #4
Julia Tuttle
Ping?
4 years, 5 months ago (2016-07-25 19:35:07 UTC) #5
gavinp
On 2016/07/25 19:35:07, Julia Tuttle wrote: > Ping? I've been out quite a bit since ...
4 years, 4 months ago (2016-07-26 14:10:45 UTC) #6
gavinp
Julia, PTAL. I believe I remediated to your comments. Thanks! https://codereview.chromium.org/2086053003/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc File net/disk_cache/simple/simple_synchronous_entry.cc (right): https://codereview.chromium.org/2086053003/diff/1/net/disk_cache/simple/simple_synchronous_entry.cc#newcode1191 ...
4 years, 4 months ago (2016-07-26 17:32:35 UTC) #10
Julia Tuttle
lgtm.
4 years, 4 months ago (2016-07-26 18:15:06 UTC) #11
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/2086053003/20001
4 years, 4 months ago (2016-07-27 15:27:43 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-27 15:31:25 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 15:33:42 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/bf840cc6c21c5a5b6e95d120e5493e0a7eb61498
Cr-Commit-Position: refs/heads/master@{#408134}

Powered by Google App Engine
This is Rietveld 408576698