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

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

Commit 1625160 from [~jahewson] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1625160 ]

PDFBOX-2352: Handle TTFs with too many horizontal metrics

> NegativeArraySizeException in HorizontalMetricsTable.read
> ---------------------------------------------------------
>
>                 Key: PDFBOX-2352
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2352
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>         Attachments: PDFBOX-2352-266813-p1.pdf
>
>
> I get this exception with the attached file:
> {code}
> java.lang.NegativeArraySizeException
>       at 
> org.apache.fontbox.ttf.HorizontalMetricsTable.read(HorizontalMetricsTable.java:63)
>       at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:286)
>       at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:146)
>       at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:122)
>       at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:96)
>       at 
> org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.<init>(PDTrueTypeFont.java:108)
>       at 
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:81)
>       at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:171)
>       at 
> org.apache.pdfbox.util.PDFStreamEngine.getFonts(PDFStreamEngine.java:556)
> {code}



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

Reply via email to