Index: net/disk_cache/blockfile/block_files.cc |
diff --git a/net/disk_cache/blockfile/block_files.cc b/net/disk_cache/blockfile/block_files.cc |
index 9aa8f0f1856e81048b545058779b75acc8e33736..f46a937534993b78cbadd7326750cc48d25c4227 100644 |
--- a/net/disk_cache/blockfile/block_files.cc |
+++ b/net/disk_cache/blockfile/block_files.cc |
@@ -656,11 +656,11 @@ bool BlockFiles::FixBlockFileHeader(MappedFile* file) { |
if (file_size < file_header.Size()) |
return false; // file_size > 2GB is also an error. |
- const int kMinBlockSize = 36; |
- const int kMaxBlockSize = 4096; |
+ const int kMinHeaderBlockSize = 36; |
+ const int kMaxHeaderBlockSize = 4096; |
BlockFileHeader* header = file_header.Header(); |
- if (header->entry_size < kMinBlockSize || |
- header->entry_size > kMaxBlockSize || header->num_entries < 0) |
+ if (header->entry_size < kMinHeaderBlockSize || |
+ header->entry_size > kMaxHeaderBlockSize || header->num_entries < 0) |
return false; |
// Make sure that we survive crashes. |