Index: net/disk_cache/blockfile/backend_worker_v3.cc |
diff --git a/net/disk_cache/blockfile/backend_worker_v3.cc b/net/disk_cache/blockfile/backend_worker_v3.cc |
index 9d2e6a61f3cfb09f19490193aa00f3a5ea3a18cf..7c6b52cc10d4fc14800efa61dcc55b2ffae1e8f9 100644 |
--- a/net/disk_cache/blockfile/backend_worker_v3.cc |
+++ b/net/disk_cache/blockfile/backend_worker_v3.cc |
@@ -397,7 +397,7 @@ bool BackendImpl::CheckIndex() { |
#if !defined(NET_BUILD_STRESS_CACHE) |
if (data_->header.num_bytes < 0 || |
- (max_size_ < kint32max - kDefaultCacheSize && |
+ (max_size_ < std::numeric_limits<int32_t>::max() - kDefaultCacheSize && |
data_->header.num_bytes > max_size_ + kDefaultCacheSize)) { |
LOG(ERROR) << "Invalid cache (current) size"; |
return false; |