You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2019/03/16 12:44:00 UTC

[jira] [Updated] (PDFBOX-4488) NegativeArraySizeException with image with extreme width

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

Tilman Hausherr updated PDFBOX-4488:
------------------------------------
    Attachment: POPPLER-737.pdf

> NegativeArraySizeException with image with extreme width
> --------------------------------------------------------
>
>                 Key: PDFBOX-4488
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4488
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.14
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.15, 3.0.0 PDFBox
>
>         Attachments: POPPLER-737.pdf
>
>
> {noformat}
> java.lang.NegativeArraySizeException: null
>     org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.from1Bit(SampledImageReader.java:264)
>     org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.getRGBImage(SampledImageReader.java:200)
>     org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getImage(PDImageXObject.java:419)
>     org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getImage(PDImageXObject.java:401)
>     org.apache.pdfbox.rendering.PageDrawer.drawImage(PageDrawer.java:1042){noformat}
> The image has a width 458477041. We should wrap this into an IOException instead.



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