o.a.p.POIXMLException

java.io.IOException: Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data. This 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.setMinInflateRatio() if you need to work with files which exceed this limit. Counter: 823296, cis.counter: 8192, ratio: 0.009950248756218905Limits: MIN_INFLATE_RATIO: 0.01


Solutions on the web1

Solution icon of web
via apache.org by Unknown author, 6 months ago
java.io.IOException: Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data. This may indicate that the file is used to inflate memory usage and thus could pose a security risk. You can

Stack trace

  • o.a.p.POIXMLException: java.io.IOException: Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data. This 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.setMinInflateRatio() if you need to work with files which exceed this limit. Counter: 823296, cis.counter: 8192, ratio: 0.009950248756218905Limits: MIN_INFLATE_RATIO: 0.01 at o.a.p.xwpf.usermodel.XWPFPictureData.getChecksum(XWPFPictureData.java:157) at o.a.p.xwpf.usermodel.XWPFDocument.registerPackagePictureData(XWPFDocument.java:1316) at o.a.p.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:213) at o.a.p.POIXMLDocument.load(POIXMLDocument.java:190)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.