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 2016/11/30 20:07:58 UTC
[jira] [Commented] (PDFBOX-3610) ArrayIndexOutOfBoundsException in
PDICCBased.loadICCProfile()
[ https://issues.apache.org/jira/browse/PDFBOX-3610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15709630#comment-15709630 ]
ASF subversion and git services commented on PDFBOX-3610:
---------------------------------------------------------
Commit 1772108 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1772108 ]
PDFBOX-3610: catch ArrayIndexOutOfBoundsException
> ArrayIndexOutOfBoundsException in PDICCBased.loadICCProfile()
> -------------------------------------------------------------
>
> Key: PDFBOX-3610
> URL: https://issues.apache.org/jira/browse/PDFBOX-3610
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.3
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 2.0.4, 2.1.0
>
> Attachments: gs-bugzilla687042.pdf
>
>
> {code}
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
> at java.awt.color.ICC_ColorSpace.fromRGB(Unknown Source)
> at org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.loadICCProfile(PDICCBased.java:145)
> at org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.<init>(PDICCBased.java:89)
> {code}
> The line that triggers this is this new line
> {code}
> awtColorSpace.fromRGB(new float[3]);
> {code}
> According to the javadoc ArrayIndexOutOfBoundsException happens only if the input array is smaller than 3.... I'll just add ArrayIndexOutOfBoundsException to the catch list. Probably yet another JDK bug.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org