Tilman Hausherr created PDFBOX-5745:
---------------------------------------
Summary: 0
Key: PDFBOX-5745
URL: https://issues.apache.org/jira/browse/PDFBOX-5745
Project: PDFBox
Issue Type: Bug
Components: FontBox
Affects Versions: 3.0.1 PDFBox
Reporter: Tilman Hausherr
Assignee: Tilman Hausherr
Fix For: 3.0.2 PDFBox, 4.0.0
Attachments: NotoSansNewTaiLue-Regular.ttf
An EOFException happens when reading the attached font. The cause is that
lookupListOffset is 0, which doesn't make sense; we should skip it and assuming
an empty table.
{noformat}
java.io.EOFException: EOF at 19112, -1 -1
at
org.apache.fontbox.ttf.TTFDataStream.readUnsignedShort(TTFDataStream.java:154)
at
org.apache.fontbox.ttf.GlyphSubstitutionTable.readSingleLookupSubTable(GlyphSubstitutionTable.java:506)
at
org.apache.fontbox.ttf.GlyphSubstitutionTable.readLookupSubtable(GlyphSubstitutionTable.java:287)
at
org.apache.fontbox.ttf.GlyphSubstitutionTable.readLookupTable(GlyphSubstitutionTable.java:463)
at
org.apache.fontbox.ttf.GlyphSubstitutionTable.readLookupList(GlyphSubstitutionTable.java:275)
at
org.apache.fontbox.ttf.GlyphSubstitutionTable.read(GlyphSubstitutionTable.java:103)
at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:365)
at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:159)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:138)
at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:68)
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]