[ https://issues.apache.org/jira/browse/PDFBOX-4350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16654735#comment-16654735 ]
ASF subversion and git services commented on PDFBOX-4350: --------------------------------------------------------- Commit 1844209 from til...@apache.org in branch 'pdfbox/branches/2.0' [ https://svn.apache.org/r1844209 ] PDFBOX-4350: avoid IllegalArgumentException because of -1 > IllegalArgumentException in PDFObjectStreamParser > ------------------------------------------------- > > Key: PDFBOX-4350 > URL: https://issues.apache.org/jira/browse/PDFBOX-4350 > Project: PDFBox > Issue Type: Bug > Components: Parsing > Affects Versions: 2.0.12 > Reporter: Robin Schimpf > Priority: Minor > Attachments: IllegalArgumentException PDFObjectStreamParser#parse > > > Fuzzing PDF loading with [JQF|https://github.com/rohanpadhye/jqf] triggered > an IllegalArgumentException. > {code:java} > java.lang.IllegalArgumentException: Illegal Capacity: -1 > at java.util.ArrayList.<init>(ArrayList.java:157) > at > org.apache.pdfbox.pdfparser.PDFObjectStreamParser.parse(PDFObjectStreamParser.java:72) > at > org.apache.pdfbox.pdfparser.COSParser.parseObjectStream(COSParser.java:994) > at > org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:880) > at > org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:794) > at > org.apache.pdfbox.pdfparser.COSParser.parseDictObjects(COSParser.java:754) > at > org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:185) > at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:220) > at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1160) > at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1057) > ... > {code} > The Code used for fuzzing is > {code:java} > PDDocument.load(inputStream) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org