[poppler] poppler/GfxFont.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Tue Jun 20 21:38:24 UTC 2017
poppler/GfxFont.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a615b7796bbf9d4c9a3d1f11d76d0c4ce248ce9e
Author: Albert Astals Cid <aacid at kde.org>
Date: Tue Jun 20 23:37:26 2017 +0200
Fix crash in malformed documents
Fixes bug #101523
diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc
index ea23e03a..b59ec06c 100644
--- a/poppler/GfxFont.cc
+++ b/poppler/GfxFont.cc
@@ -13,7 +13,7 @@
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
-// Copyright (C) 2005, 2006, 2008-2010, 2012, 2014, 2015 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005, 2006, 2008-2010, 2012, 2014, 2015, 2017 Albert Astals Cid <aacid at kde.org>
// Copyright (C) 2005, 2006 Kristian Høgsberg <krh at redhat.com>
// Copyright (C) 2006 Takashi Iwai <tiwai at suse.de>
// Copyright (C) 2007 Julien Rebetez <julienr at svn.gnome.org>
@@ -2371,7 +2371,7 @@ int *GfxCIDFont::getCodeToGIDMap(FoFiTrueType *ff, int *mapsizep) {
Ref embID;
*mapsizep = 0;
- if (!ctu) return NULL;
+ if (!ctu || !getCollection()) return NULL;
if (getCollection()->cmp("Adobe-Identity") == 0) return NULL;
if (getEmbeddedFontID(&embID)) {
/* if this font is embedded font,
More information about the poppler
mailing list