I understand that, but specifically what is it in a .zip file that will
cause this if statement to throw the IllegalStateException? I don’t
understand where the values of text.length() and string.length() are coming
from.
int size = text.length() + string.length();
if(size > ZipSecureFile.getMaxTextSize()) {
I'm getting this exception and I don't know what (in the .zip file) is
causing this to be thrown.
The text would exceed the max allowed overall size of extracted text. By
default this is prevented as some documents may exhaust available memory
and it may indicate that the file is used to inflate memory usage and thus
could pose a security risk. You can adjust this limit via
ZipSecureFile.setMaxTextSize() if you need to work with files which have a
lot of text. Size: 10485785, limit: MAX_TEXT_SIZE: 10485760
On 2019/03/22 19:11:17, "pj.fanning" <[email protected]> wrote:
> The code is there to protect against
https://en.wikipedia.org/wiki/Zip_bomb>
>
>
>
> -->
> Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html>
>
> --------------------------------------------------------------------->
> To unsubscribe, e-mail: [email protected]>
> For additional commands, e-mail: [email protected]>
>
>