fofi/FoFiTrueType.cc |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 68658721583b05ebacb1165ac36e91d49735bbd9
Author: Albert Astals Cid <[EMAIL PROTECTED]>
Date:   Sun Sep 28 19:29:06 2008 +0200

    If tables is null, don't try to write to file as it'll crash, fixes crash 
on 17811 when using cairooutputdev

diff --git a/fofi/FoFiTrueType.cc b/fofi/FoFiTrueType.cc
index 60906ae..b7f3f6c 100644
--- a/fofi/FoFiTrueType.cc
+++ b/fofi/FoFiTrueType.cc
@@ -902,6 +902,10 @@ void FoFiTrueType::writeTTF(FoFiOutputFunc outputFunc,
     return;
   }
 
+  if (tables == NULL) {
+    return;
+  }
+
   // check for missing tables
   // (Note: if the OS/2 table is missing, the Microsoft PCL5 driver
   // will embed a PCL TrueType font with the pitch field set to zero,
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to