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

Issue 17265007: Unlink corrupt SimpleCache index files immediately after load. (Closed)

Created:
7 years, 6 months ago by gavinp
Modified:
7 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Unlink corrupt SimpleCache index files immediately after load. The crash on startup in the referenced bug is very bad in part because the corrupt index which caused it is left on disk, so all startups until user data is cleared will crash. For maximum safety, we should unlink the index file ASAP after finding it is corrupt. R=rdsmith@chromium.org BUG=251465 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207813

Patch Set 1 #

Patch Set 2 : cleaner #

Patch Set 3 : confusing linkage fixed #

Patch Set 4 : tryable #

Total comments: 6

Patch Set 5 : rdsmith remediation #

Total comments: 2

Patch Set 6 : narrower #

Patch Set 7 : narrowest! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -1 line) Patch
M net/disk_cache/simple/simple_index_file.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M net/disk_cache/simple/simple_index_file.cc View 1 2 3 4 5 1 chunk +9 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_index_file_unittest.cc View 1 2 3 4 5 6 2 chunks +53 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
gavinp
rdsmith, pasko: PTAL. clamy: FYI. https://chromiumcodereview.appspot.com/17265007/diff/14001/net/disk_cache/simple/simple_index_file_unittest.cc File net/disk_cache/simple/simple_index_file_unittest.cc (right): https://chromiumcodereview.appspot.com/17265007/diff/14001/net/disk_cache/simple/simple_index_file_unittest.cc#newcode91 net/disk_cache/simple/simple_index_file_unittest.cc:91: SimpleIndexFile::IndexCompletionCallback GetCallback() { rdsmith: ...
7 years, 6 months ago (2013-06-19 17:17:31 UTC) #1
Randy Smith (Not in Mondays)
LGTM. Thanks for doing this--I kept meaning to go back and expand the unit tests ...
7 years, 6 months ago (2013-06-19 21:06:00 UTC) #2
gavinp
Thanks Randy! Pasko: PTAL. https://chromiumcodereview.appspot.com/17265007/diff/14001/net/disk_cache/simple/simple_index_file_unittest.cc File net/disk_cache/simple/simple_index_file_unittest.cc (right): https://chromiumcodereview.appspot.com/17265007/diff/14001/net/disk_cache/simple/simple_index_file_unittest.cc#newcode54 net/disk_cache/simple/simple_index_file_unittest.cc:54: class TestSimpleIndexFile : public SimpleIndexFile ...
7 years, 6 months ago (2013-06-19 23:21:25 UTC) #3
Randy Smith (Not in Mondays)
https://chromiumcodereview.appspot.com/17265007/diff/14001/net/disk_cache/simple/simple_index_file_unittest.cc File net/disk_cache/simple/simple_index_file_unittest.cc (right): https://chromiumcodereview.appspot.com/17265007/diff/14001/net/disk_cache/simple/simple_index_file_unittest.cc#newcode91 net/disk_cache/simple/simple_index_file_unittest.cc:91: SimpleIndexFile::IndexCompletionCallback GetCallback() { On 2013/06/19 23:21:25, gavinp wrote: > ...
7 years, 6 months ago (2013-06-20 12:44:30 UTC) #4
pasko
I think the bugfix should go in a separate commit. It would reduce the chances ...
7 years, 6 months ago (2013-06-20 13:52:21 UTC) #5
gavinp
On 2013/06/20 13:52:21, pasko wrote: > I think the bugfix should go in a separate ...
7 years, 6 months ago (2013-06-20 17:25:46 UTC) #6
gavinp
Remediated to Pasko's review; good point on making this narrow. pasko, rdsmith: PTAL. rdsmith: I ...
7 years, 6 months ago (2013-06-20 20:18:18 UTC) #7
Randy Smith (Not in Mondays)
LGTM.
7 years, 6 months ago (2013-06-21 01:29:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/17265007/34001
7 years, 6 months ago (2013-06-21 01:47:37 UTC) #9
gavinp
7 years, 6 months ago (2013-06-21 14:40:44 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 manually as r207813 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698