creditdatamw/zerocell

Throws an exception when an excel file exceeds a certain compression ratio

Closed this issue · 0 comments

"exception":"java.io.IOException: Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data.\nThis may indicate that the file is used to inflate memory usage and thus could pose a security risk.\nYou can adjust this limit via ZipSecureFile.setMinInflateRatio() if you need to work with files which exceed this limit.\nUncompressed size: 110039, Raw/compressed size: 819, ratio: 0.007443\nLimits: MIN_INFLATE_RATIO: 0.010000, Entry: xl/styles.xml\n\tat org.apache.poi.openxml4j.util.ZipArchiveThresholdInputStream.checkThreshold(ZipArchiveThresholdInputStream.java:132)\n\tat org.apache.poi.openxml4j.util.ZipArchiveThresholdInputStream.read(ZipArchiveThresholdInputStream.java:82)