[poppler] fofi/FoFiTrueType.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun Sep 28 10:29:41 PDT 2008
fofi/FoFiTrueType.cc | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 68658721583b05ebacb1165ac36e91d49735bbd9
Author: Albert Astals Cid <aacid at kde.org>
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,
More information about the poppler
mailing list