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 2014/12/05 07:53:12 UTC

[jira] [Commented] (PDFBOX-2540) ArrayIndexOutOfBoundsException in Type1Parser.parseASCII

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

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

Commit 1643161 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1643161 ]

PDFBOX-2540: avoid ArrayIndexOutOfBoundsException if font is empty

> ArrayIndexOutOfBoundsException in Type1Parser.parseASCII
> --------------------------------------------------------
>
>                 Key: PDFBOX-2540
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2540
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: 451024.pdf
>
>
> I get this with the file 451024.pdf:
> {code}
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.apache.fontbox.type1.Type1Parser.parseASCII(Type1Parser.java:76)
>         at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:61)
> {code}
> The cause is an empty /FontFile and the failure to expect this, the fix is easy.



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