Skip to content

Commit

Permalink
support large zip
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie authored Oct 15, 2024
1 parent 96686cf commit 45f2ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hazel/zip/zip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ inline std::string cleanupName(const void *data, size_t N) {
bool Reader::readDirectoryEnd(directoryEnd &d, bela::error_code &ec) {
bela::Buffer buffer(16 * 1024);
int64_t directoryEndOffset = 0;
constexpr size_t offrange[] = {1024, 65 * 1024};
constexpr size_t offrange[] = {1024, 65 * 1024, 5 * 1024 * 1024};
bela::endian::LittenEndian b;
for (size_t i = 0; i < std::size(offrange); i++) {
auto blen = offrange[i];
Expand Down Expand Up @@ -577,4 +577,4 @@ bool Reader::LooksLikeODF(std::string *mime) const {
return false;
}

} // namespace hazel::zip
} // namespace hazel::zip

0 comments on commit 45f2ab7

Please sign in to comment.