diff options
-rw-r--r-- | net/disk_cache/sparse_control.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/disk_cache/sparse_control.cc b/net/disk_cache/sparse_control.cc index 509ce78..06912de 100644 --- a/net/disk_cache/sparse_control.cc +++ b/net/disk_cache/sparse_control.cc @@ -176,7 +176,7 @@ int SparseControl::StartIO(SparseOperation op, int64 offset, net::IOBuffer* buf, return net::ERR_INVALID_ARGUMENT; // We only support up to 64 GB. - if (offset + buf_len >= 0x1000000000LL) + if (offset + buf_len >= 0x1000000000LL || offset + buf_len < 0) return net::ERR_CACHE_OPERATION_NOT_SUPPORTED; DCHECK(!user_buf_); |