aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar/zip.cc
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-04-05 15:47:22 +0000
committerGravatar Lukacs Berki <lberki@google.com>2016-04-07 11:39:07 +0000
commit54d94d2ca744359922c2332208898ac64af1c6e3 (patch)
tree2b1ebec63f51f11bbe424a26cb4f25c911f8cd2a /third_party/ijar/zip.cc
parente9e052dcf4a1f508461ad9945d66ffba2346ecc3 (diff)
Description redacted.
-- MOS_MIGRATED_REVID=119053259
Diffstat (limited to 'third_party/ijar/zip.cc')
-rw-r--r--third_party/ijar/zip.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/ijar/zip.cc b/third_party/ijar/zip.cc
index 961a619a54..44372f443b 100644
--- a/third_party/ijar/zip.cc
+++ b/third_party/ijar/zip.cc
@@ -127,10 +127,10 @@ class InputZipFile : public ZipExtractor {
// not enough, we bail out. We only decompress class files, so they should
// be smaller than 64K anyway, but we give a little leeway.
// MAX_BUFFER_SIZE must be bigger than the size of the biggest file in the
- // ZIP. It is set to 256M here so we can uncompress the Bazel server with
- // this library.
+ // ZIP. It is set to 2GB here because no one has audited the code for 64-bit
+ // cleanliness.
static const size_t INITIAL_BUFFER_SIZE = 256 * 1024; // 256K
- static const size_t MAX_BUFFER_SIZE = 256 * 1024 * 1024;
+ static const size_t MAX_BUFFER_SIZE = std::numeric_limits<int32_t>::max();
static const size_t MAX_MAPPED_REGION = 32 * 1024 * 1024;
// These metadata fields are the fields of the ZIP header of the file being