pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PDFBOX-4350) IllegalArgumentException in PDFObjectStreamParser
Date Thu, 18 Oct 2018 07:22:00 GMT

     [ https://issues.apache.org/jira/browse/PDFBOX-4350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tilman Hausherr updated PDFBOX-4350:
------------------------------------
    Fix Version/s: 3.0.0 PDFBox
                   2.0.13

> 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
>             Fix For: 2.0.13, 3.0.0 PDFBox
>
>         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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message