mirror of https://github.com/apache/poi.git
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:
parent
699d71e524
commit
ac58e2f5f4
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue