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/21 20:07:00 UTC
[jira] [Commented] (PDFBOX-4349) ClassCastException in COSParser
[ https://issues.apache.org/jira/browse/PDFBOX-4349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16658363#comment-16658363 ]
ASF subversion and git services commented on PDFBOX-4349:
---------------------------------------------------------
Commit 1844516 from lehmi@apache.org in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1844516 ]
PDFBOX-4349: avoid ClassCastException
> ClassCastException in COSParser
> -------------------------------
>
> Key: PDFBOX-4349
> URL: https://issues.apache.org/jira/browse/PDFBOX-4349
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.12
> Reporter: Robin Schimpf
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Attachments: ClassCastException COSParser#parseTrailerValuesDynamically
>
>
> Fuzzing PDF loading with [JQF|https://github.com/rohanpadhye/jqf] triggered an ClassCastException.
> {code:java}
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSInteger cannot be cast to org.apache.pdfbox.cos.COSObject
> at org.apache.pdfbox.pdfparser.COSParser.parseTrailerValuesDynamically(COSParser.java:2841)
> at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:173)
> 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