1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

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

This commit is contained in:
ed 2019-01-16 16:51:50 +00:00
parent 815c9ee236
commit bcf388b2cd

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)