Hi, There is a bug in IOUtils in 4.1.2 because of which large xlsx files whose zipEntry size is “-1” and the content length cross “Integer.MAX_VALUE – 2” will result in an OOM with message “Requested array size exceeds VM limit”(code ref<https://github.com/apache/poi/blob/30388294ec80ee4f5c914a916631bb77b5d5f86b/src/java/org/apache/poi/util/IOUtils.java#L185>).
I see that this is already fixed in later versions by restricting with “BYTE_ARRAY_MAX_OVERRIDE”. I would like to make this fix on top of 4.1.2 since we cannot upgrade to the latest version now. Thanks , Jithin