Pebble: raise limit of appinfo.json. Some pbws have huge ones :/

Fixes #505
here
Andreas Shimokawa 2017-01-18 21:47:15 +01:00
parent e226a97c73
commit ed020c2a97
1 changed files with 4 additions and 1 deletions

View File

@ -145,8 +145,11 @@ public class PBWReader {
} else if (fileName.equals("appinfo.json")) {
long bytes = ze.getSize();
if (bytes > 65536) // that should be too much
if (bytes > 500000) {
LOG.warn(fileName + " exeeds maximum of 500000 bytes");
// that should be too much
break;
}
ByteArrayOutputStream baos = new ByteArrayOutputStream();
while ((count = zis.read(buffer)) != -1) {