[poppler] poppler/PSOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sat Feb 7 13:31:08 PST 2015
poppler/PSOutputDev.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 22895623e6cd2a5923f552421d44cc80cab77dd8
Author: Albert Astals Cid <aacid at kde.org>
Date: Sat Feb 7 22:28:21 2015 +0100
Fix malformed file crash from bug #86854
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index 63109fa..2502f5f 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -1900,7 +1900,7 @@ void PSOutputDev::setupFont(GfxFont *font, Dict *parentResDict) {
switch (fontLoc->fontType) {
case fontType1:
// this assumes that the PS font name matches the PDF font name
- psName = font->getEmbeddedFontName()->copy();
+ psName = font->getEmbeddedFontName() ? font->getEmbeddedFontName()->copy() : new GooString();
setupEmbeddedType1Font(&fontLoc->embFontID, psName);
break;
case fontType1C:
More information about the poppler
mailing list