From bcf388b2cd4adce28f0d71b64df65aadc5bd1917 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 16 Jan 2019 16:51:50 +0000 Subject: [PATCH] Increase the amount of bytes that findCentralDirectoryFileHeader() will scan when unzipping a .zip file --- modules/juce_core/zip/juce_ZipFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/zip/juce_ZipFile.cpp b/modules/juce_core/zip/juce_ZipFile.cpp index c8c7b39f13..6fcd0c5f34 100644 --- a/modules/juce_core/zip/juce_ZipFile.cpp +++ b/modules/juce_core/zip/juce_ZipFile.cpp @@ -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)