Browse Source

Increase the amount of bytes that findCentralDirectoryFileHeader() will scan when unzipping a .zip file

tags/2021-05-28
ed 6 years ago
parent
commit
bcf388b2cd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/zip/juce_ZipFile.cpp

+ 1
- 1
modules/juce_core/zip/juce_ZipFile.cpp View File

@@ -77,7 +77,7 @@ static int64 findCentralDirectoryFileHeader (InputStream& input, int& numEntries
in.setPosition (in.getTotalLength());
auto pos = in.getPosition();
auto lowestPos = jmax ((int64) 0, pos - 1024);
auto lowestPos = jmax ((int64) 0, pos - 1048576);
char buffer[32] = {};
while (pos > lowestPos)


Loading…
Cancel
Save