pjfanning commented on code in PR #1027:
URL: https://github.com/apache/poi/pull/1027#discussion_r2895303345
##########
poi-ooxml/src/test/java/org/apache/poi/openxml4j/opc/TestPackage.java:
##########
@@ -798,6 +798,15 @@ private void openXmlBombFile(String file) throws
IOException {
}
}
+ @Test
+ void testFakeZipBomb() throws IOException, InvalidFormatException {
+ String file = getSampleFileName("fake-zipbomb-reproducer.docx");
+ try (POITextExtractor extractor = ExtractorFactory.createExtractor(new
File(file))) {
+ assertNotNull(extractor);
+ extractor.getText();
Review Comment:
maybe assertNotNull here too
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]