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

Issue 165174: Try again: Check blockfile size before attempting to read the header. (Closed)

Created:
11 years, 4 months ago by mattm
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Try again: Check blockfile size before attempting to read the header. Reading past the last page of a mmapped file will SIGBUS. BUG=18174 TEST=truncate Default/Cache/data_* to zero bytes, launch chrome, try to load a website. It shouldn't crash. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22843

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -18 lines) Patch
M net/disk_cache/block_files.h View 2 chunks +3 lines, -0 lines 0 comments Download
M net/disk_cache/block_files.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M net/disk_cache/block_files_unittest.cc View 6 chunks +44 lines, -18 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
mattm
Had to close the file before truncating it to make windows happy.
11 years, 4 months ago (2009-08-07 22:38:18 UTC) #1
rvargas (doing something else)
11 years, 4 months ago (2009-08-07 23:22:22 UTC) #2
OK

Powered by Google App Engine
This is Rietveld 408576698