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

Tilman Hausherr updated PDFBOX-3181:
------------------------------------
    Description: 
method 
org.apache.pdfbox.pdmodel.graphics.image.LosslessFactory.createAlphaFromARGBImage
raise an exception on 
{code}
int[] pixels = alphaRaster.getPixels(0, 0,
                alphaRaster.getSampleModel().getWidth(),
                alphaRaster.getSampleModel().getHeight(),
                (int\[]) null);
{code}
when {{alphaRaster.getSampleModel().getWidth()}} or 
{{alphaRaster.getSampleModel().getHeight()}} is greater than 
{{image.getWidth()}} or {{image.getHeight()}} (e.g. when BufferedImage created 
by {{java.awt.image.BufferedImage.getSubimage}})


  was:
method 
org.apache.pdfbox.pdmodel.graphics.image.LosslessFactory.createAlphaFromARGBImage
raise an exception on 
int[] pixels = alphaRaster.getPixels(0, 0,
                alphaRaster.getSampleModel().getWidth(),
                alphaRaster.getSampleModel().getHeight(),
                (int[]) null);
when alphaRaster.getSampleModel().getWidth() or 
alphaRaster.getSampleModel().getHeight() is greater than image.getWidth() or 
image.getHeight() (e.g. when BufferedImage created by 
java.awt.image.BufferedImage.getSubimage)



> java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds! in 
> org.apache.pdfbox.pdmodel.graphics.image.LosslessFactory.createFromImage
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-3181
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3181
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>         Environment: PDFBox 20.RC2 (Oracle JDK 1.6 or Oracle JDK 1.7)
>            Reporter: Paolo Clerici
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.0
>
>
> method 
> org.apache.pdfbox.pdmodel.graphics.image.LosslessFactory.createAlphaFromARGBImage
> raise an exception on 
> {code}
> int[] pixels = alphaRaster.getPixels(0, 0,
>                 alphaRaster.getSampleModel().getWidth(),
>                 alphaRaster.getSampleModel().getHeight(),
>                 (int\[]) null);
> {code}
> when {{alphaRaster.getSampleModel().getWidth()}} or 
> {{alphaRaster.getSampleModel().getHeight()}} is greater than 
> {{image.getWidth()}} or {{image.getHeight()}} (e.g. when BufferedImage 
> created by {{java.awt.image.BufferedImage.getSubimage}})



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to