huhuang03 / sfntly

Automatically exported from code.google.com/p/sfntly
0 stars 0 forks source link

NameTable iteration breaks on some fonts #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Some fonts have name table entries where the name bytes field is empty (zero 
length), and additionally has the index to the entry equal to the bounds of the 
name table.

Extra bounds checking introduced with r155 causes sfntly to crash on such 
entries with an IndexOutOfBounds exception. I believe that in this case, such 
entries are valid (since the length is zero) and sfntly should not throw an 
exception.

Original issue reported on code.google.com by tinned...@yahoo.com on 10 Jul 2013 at 4:22

Attachments: