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:43:00 UTC

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

Tilman Hausherr created PDFBOX-4488:
---------------------------------------

             Summary: 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
             Fix For: 2.0.15, 3.0.0 PDFBox


{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