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

Tilman Hausherr commented on PDFBOX-1749:
-----------------------------------------

About "Is there anything that can be done to avoid an endless loop?"

1) try to open the font with createFont() first and catch the exception
or
2) make a change in "your own" PDFBOX installation at the place mentioned 
(GlyfSimpleDescript.java), e.g. add this
if (repeats == -1)
  throw new IOException("premature EOF");

> Out of memory exception when parsing TTF file
> ---------------------------------------------
>
>                 Key: PDFBOX-1749
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1749
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 1.8.3
>         Environment: ubuntu
> java version "1.7.0_40"
> Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
> Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
>            Reporter: Erik Hetzner
>         Attachments: 16A4FF_8.ttf, PDFBOX_1749.java
>
>
> When parsing the attached TTF file with fontbox, I get an OutOfMemoryError 
> (heap space) when parsing via an input stream. If I parse via a File, fontbox 
> seems to never return.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to