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 2021/02/23 18:51:00 UTC

[jira] [Commented] (PDFBOX-5107) ClassCastException in COSStream.getFilterList

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

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

Commit 1886856 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1886856 ]

PDFBOX-5107: avoid ClassCastException

> ClassCastException in COSStream.getFilterList
> ---------------------------------------------
>
>                 Key: PDFBOX-5107
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5107
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Fabian Meumertzheim
>            Priority: Major
>         Attachments: crash-0e606f01d95525c256f9d5116e790f70739eae3e.pdf
>
>
> The attached (broken) PDF throws the following undeclared exception when loaded via Loader.loadPDF (using current Git revision 275c77953ec8c2c896f9085b3508bef2c4d00d2f):
> java.lang.ClassCastException: class org.apache.pdfbox.cos.COSInteger cannot be cast to class org.apache.pdfbox.cos.COSName (org.apache.pdfbox.cos.COSInteger and org.apache.pdfbox.cos.COSName are in unnamed module of loader 'app')
> 	at org.apache.pdfbox.cos.COSStream.getFilterList(COSStream.java:331)
> 	at org.apache.pdfbox.cos.COSStream.createView(COSStream.java:186)
> 	at org.apache.pdfbox.pdfparser.PDFObjectStreamParser.<init>(PDFObjectStreamParser.java:48)
> 	at org.apache.pdfbox.pdfparser.COSParser.bfSearchForObjStreams(COSParser.java:1643)
> 	at org.apache.pdfbox.pdfparser.COSParser.rebuildTrailer(COSParser.java:1879)
> 	at org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:263)
> 	at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:127)
> 	at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:180)
> 	at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:154)
> 	at org.apache.pdfbox.Loader.loadPDF(Loader.java:204)
> 	at com.example.PdfBoxFuzzer.fuzzerTestOneInput(PdfBoxFuzzer.java:31)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org