hssfworkbook zip炸弹
时间: 2023-09-07 20:16:54 浏览: 202
您可以通过添加以下代码来解决HSSFWorkbook出现"Zip bomb detected"的问题:
ZipSecureFile.setMinInflateRatio(0.001); [3]
这行代码的作用是设置解压缩比例的最低限制,以防止出现压缩炸弹的情况。通过将最小解压缩比例设置为0.001,您可以避免Zip bomb检测的错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [HSSFWorkbook.zip](https://download.csdn.net/download/qq_33238562/11266306)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [java:获取后缀为doc、docx、xls、xlsx、ppt、pptx、pdf、xml的文件中的文本](https://blog.csdn.net/qq_42449963/article/details/128367403)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文