https://bz.apache.org/bugzilla/show_bug.cgi?id=58499

--- Comment #3 from Mirek <m.han...@netpr.pl> ---
Sorry - I was mistaken with root cause. My problem can be reproduced with such
test


try (OutputStream os = new NullOutputStream()) {
            SXSSFWorkbook workbook = new SXSSFWorkbook();
            Sheet sheet = workbook.createSheet();
            for (int i = 0; i < 900; i++) {
                Row r = sheet.createRow(i);
                Cell c = r.createCell(0);
                CellStyle cs = workbook.createCellStyle();
                c.setCellStyle(cs);
                c.setCellValue("AAA");                
            }
            workbook.write(os);
            workbook.dispose();
}


This code will throw zip bomb exception.  Adding
ZipSecureFile.setMinInflationRatio(0) eliminates this problem. You can close
this issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to