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: 356352, cis.counter: 3534, ratio: 0.009917160560344827Limits: MIN_INFLATE_RATIO: 0.01

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web8

  • via apache.org by Unknown author, 5 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: 356352, cis.counter: 3534, ratio: 0.009917160560344827Limits: 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’re the first here who have seen this exception.