pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4338) ArrayIndexOutOfBoundsException in COSParser
Date Thu, 11 Oct 2018 18:45:00 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-4338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16646888#comment-16646888
] 

ASF subversion and git services commented on PDFBOX-4338:
---------------------------------------------------------

Commit 1843583 from tilman@apache.org in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1843583 ]

PDFBOX-4338: add test

> ArrayIndexOutOfBoundsException in COSParser
> -------------------------------------------
>
>                 Key: PDFBOX-4338
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4338
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.12
>            Reporter: Robin Schimpf
>            Priority: Minor
>         Attachments: ArrayIndexOutOfBoundsException COSParser
>
>
> Fuzzing PDF loading with [JQF|https://github.com/rohanpadhye/jqf] triggered an ArrayIndexOutOfBoundsException.
> {code:java}
> java.lang.ArrayIndexOutOfBoundsException: -1
>     java.util.ArrayList.elementData(ArrayList.java:422)
>     java.util.ArrayList.get(ArrayList.java:435)
>     org.apache.pdfbox.cos.COSArray.get(COSArray.java:210)
>     org.apache.pdfbox.pdfparser.BaseParser.parseCOSArray(BaseParser.java:638)
>     org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:874)
>     org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionaryValue(BaseParser.java:152)
>     org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionaryNameValuePair(BaseParser.java:279)
>     org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionary(BaseParser.java:212)
>     org.apache.pdfbox.pdfparser.COSParser.retrieveCOSDictionary(COSParser.java:2297)
>     org.apache.pdfbox.pdfparser.COSParser.searchForTrailerItems(COSParser.java:2235)
>     org.apache.pdfbox.pdfparser.COSParser.rebuildTrailer(COSParser.java:2210)
>     org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:279)
>     org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:171)
>     org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:220)
>     org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1028)
>     org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:966)
>     ...
> {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