[
https://issues.apache.org/jira/browse/PDFBOX-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030772#comment-17030772
]
ASF subversion and git services commented on PDFBOX-4762:
---------------------------------------------------------
Commit 1873650 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1873650 ]
PDFBOX-4762: avoid ClassCastException, as suggested by Daniel Persson
> Inconsistent handling of incorrect data
> ---------------------------------------
>
> Key: PDFBOX-4762
> URL: https://issues.apache.org/jira/browse/PDFBOX-4762
> Project: PDFBox
> Issue Type: Improvement
> Components: Rendering
> Affects Versions: 2.0.18
> Reporter: Daniel Persson
> Priority: Minor
> Labels: patch
> Fix For: 2.0.19, 3.0.0 PDFBox
>
> Attachments: inconsistant.patch
>
>
> We had a PDF that had a strange page with 200Mb+ of text to extract and the
> deflate function did not work correctly.
> This created a fatal in PDFBox and I did some debugging and noticed that we
> handle SetNonStrokingColorSpace and SetStrokingColorSpace in different ways.
> One of them had a check if the in data was incorrect and returned and the
> other one did not have this check.
> I made this small patch that I will include in this issue to rectify this
> inconsistency.
>
> Added the crashing pdf on my google drive if you want it to test with
> https://drive.google.com/open?id=1bcT27NoqNM-pphYiFCy13bq81potqUc6
>
> Best regards
> Daniel
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]