add extra max size config

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898239 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-02-19 22:41:22 +00:00
parent 699d71e524
commit ac58e2f5f4
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,8 @@ import org.apache.poi.util.TempFile;
}
// Grab the de-compressed contents for later
data = (entrySize == -1) ? IOUtils.toByteArray(inp) : IOUtils.toByteArray(inp, (int)entrySize, MAX_ENTRY_SIZE);
data = (entrySize == -1) ? IOUtils.toByteArrayWithMaxLength(inp, getMaxEntrySize()) :
IOUtils.toByteArray(inp, (int)entrySize, getMaxEntrySize());
}
}