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

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

Commit 1843581 from til...@apache.org in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1843581 ]

PDFBOX-4338: remote loading of test file

> 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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to