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 2019/03/16 12:47:00 UTC

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

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

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

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

PDFBOX-4488: wrap NegativeArraySizeException into IOException

> 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