https://bz.apache.org/bugzilla/show_bug.cgi?id=65887

--- Comment #1 from [email protected] ---
After using IOUtils.setByteArrayMaxOverride(2_000_001) to increase the limit,
the following error occurs:

org.apache.poi.util.RecordFormatException: Tried to allocate an array of length
38,142,464, but the maximum length for this record type is 2,000,001.
If the file is not corrupt, please open an issue on bugzilla to request 
increasing the maximum allowable size for this record type.
As a temporary workaround, consider setting a higher override value with
IOUtils.setByteArrayMaxOverride()
        at org.apache.poi.util.IOUtils.throwRFE(IOUtils.java:535)
~[poi-5.2.0.jar:5.2.0]
        at org.apache.poi.util.IOUtils.checkLength(IOUtils.java:209)
~[poi-5.2.0.jar:5.2.0]
        at org.apache.poi.util.IOUtils.safelyAllocateCheck(IOUtils.java:497)
~[poi-5.2.0.jar:5.2.0]
        at
org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:341)
~[poi-5.2.0.jar:5.2.0]
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:445)
~[poi-5.2.0.jar:5.2.0]

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to