diff options
author | Albert Astals Cid <aacid@kde.org> | 2017-09-30 11:12:31 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2017-09-30 11:12:31 +0200 |
commit | 19eedc6fb693a62f305e13079501e3105f869f3c (patch) | |
tree | 0ef8b378d92ad2c32aff58adc75238811cce0301 | |
parent | 5df4a8b0ad56b11c9be3b362e33810c5af57952b (diff) |
Fix crash in broken files
Bug #103045
-rw-r--r-- | fofi/FoFiTrueType.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fofi/FoFiTrueType.cc b/fofi/FoFiTrueType.cc index 58f604aa..4495cb3b 100644 --- a/fofi/FoFiTrueType.cc +++ b/fofi/FoFiTrueType.cc @@ -451,7 +451,7 @@ int FoFiTrueType::mapNameToGID(char *name) { GBool FoFiTrueType::getCFFBlock(char **start, int *length) { int i; - if (!openTypeCFF) { + if (!openTypeCFF || !tables) { return gFalse; } i = seekTable("CFF "); |