[poppler] fofi/FoFiTrueType.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Sep 30 09:13:52 UTC 2017


 fofi/FoFiTrueType.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 19eedc6fb693a62f305e13079501e3105f869f3c
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Sep 30 11:12:31 2017 +0200

    Fix crash in broken files
    
    Bug #103045

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 ");


More information about the poppler mailing list