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: 855880, cis.counter: 8537, ratio: 0.009974529139599009Limits: MIN_INFLATE_RATIO: 0.01

apache.org | 1 month ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    POI regression testing report

    apache.org | 1 month ago
    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: 855880, cis.counter: 8537, ratio: 0.009974529139599009Limits: MIN_INFLATE_RATIO: 0.01

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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: 855880, cis.counter: 8537, ratio: 0.009974529139599009Limits: MIN_INFLATE_RATIO: 0.01

      at o.a.p.xwpf.usermodel.XWPFPictureData.getChecksum()
    2. o.a.p
      POIXMLDocument.load
      1. o.a.p.xwpf.usermodel.XWPFPictureData.getChecksum(XWPFPictureData.java:157)
      2. o.a.p.xwpf.usermodel.XWPFDocument.registerPackagePictureData(XWPFDocument.java:1316)
      3. o.a.p.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:213)
      4. o.a.p.POIXMLDocument.load(POIXMLDocument.java:190)
      4 frames