You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2020/02/16 15:27:00 UTC

[jira] [Resolved] (PDFBOX-4778) Avoid illegal matrix values

     [ https://issues.apache.org/jira/browse/PDFBOX-4778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-4778.
----------------------------------------
    Resolution: Fixed

I've added a check for the result values of a matrix multiplication. If any of the values is infinite or NaN an IllegalArgumentException is thrown.

[~tallison] Thanks for the pointer


> Avoid illegal matrix values
> ---------------------------
>
>                 Key: PDFBOX-4778
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4778
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.18, 3.0.0 PDFBox
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>             Fix For: 3.0.0 PDFBox, 2.0.20
>
>         Attachments: hang-090214-015108-51.pdf
>
>
> [~tallison] found a bunch of problematic [pdfs| https://bugs.ghostscript.com/show_bug.cgi?id=695040] and one of them runs very slow/forever.
> The attached pdf has a broken content stream so that a lot of matrix operations are skipped due to missing values which lead to illegal values when multiplying matrices. Some of the calculated test positions are broken and in the end text extraction with sorting is very slow or runs infinite.



--
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