You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/10/25 17:37:00 UTC
[jira] [Commented] (PDFBOX-4361) ArrayIndexOutOfBoundsException in
COSParser
[ https://issues.apache.org/jira/browse/PDFBOX-4361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16664060#comment-16664060 ]
ASF subversion and git services commented on PDFBOX-4361:
---------------------------------------------------------
Commit 1844851 from tilman@apache.org in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1844851 ]
PDFBOX-4361: avoid ArrayIndexOutOfBoundsException
> ArrayIndexOutOfBoundsException in COSParser
> -------------------------------------------
>
> Key: PDFBOX-4361
> URL: https://issues.apache.org/jira/browse/PDFBOX-4361
> 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: ArrayIndexOutOfBoundsException COSParser#bfSearchForObjStreams
>
>
> Fuzzing PDF loading with [JQF|https://github.com/rohanpadhye/jqf] triggered an ArrayIndexOutOfBoundsException.
> {code:java}
> java.lang.ArrayIndexOutOfBoundsException: 4
> at org.apache.pdfbox.pdfparser.COSParser.bfSearchForObjStreams(COSParser.java:2035)
> at org.apache.pdfbox.pdfparser.COSParser.rebuildTrailer(COSParser.java:2213)
> at org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:279)
> at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:171)
> 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