poppler/GfxFont.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit a615b7796bbf9d4c9a3d1f11d76d0c4ce248ce9e Author: Albert Astals Cid <aa...@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 <aa...@kde.org> +// Copyright (C) 2005, 2006, 2008-2010, 2012, 2014, 2015, 2017 Albert Astals Cid <aa...@kde.org> // Copyright (C) 2005, 2006 Kristian Høgsberg <k...@redhat.com> // Copyright (C) 2006 Takashi Iwai <ti...@suse.de> // Copyright (C) 2007 Julien Rebetez <juli...@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,
_______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler