Changed paths:
M Lib/fontTools/ttLib/sfnt.py
M Tests/ttLib/sfnt_test.py
Log Message:
-----------
Raise TTLibError on a truncated table directory
DirectoryEntry.fromFile unpacked whatever it read, so a file cut short
inside the directory (or one with a corrupt numTables, as happens when a
font is fuzzed) escaped as struct.error rather than TTLibError.
Changed paths:
M Lib/fontTools/ttLib/sfnt.py
M Tests/ttLib/sfnt_test.py
Log Message:
-----------
Raise TTLibError on a truncated table directory
DirectoryEntry.fromFile unpacked whatever it read, so a file cut short
inside the directory (or one with a corrupt numTables, as happens when a
font is fuzzed) escaped as struct.error rather than TTLibError.