poppler/GlobalParams.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 547f19cd420f2d579d921620545e6496adb6a9fb Author: Albert Astals Cid <[email protected]> Date: Tue May 22 18:17:58 2018 +0200 Fix crash in "generic" GlobalParams::findSystemFontFile Not very important since we usually either use the fontconfig or the windows one fixes oss-fuzz/8427 diff --git a/poppler/GlobalParams.cc b/poppler/GlobalParams.cc index 2d8ecad7..6d8941ea 100644 --- a/poppler/GlobalParams.cc +++ b/poppler/GlobalParams.cc @@ -1296,9 +1296,12 @@ GooString *GlobalParams::findSystemFontFile(GfxFont *font, SysFontInfo *fi; GooString *path; + const GooString *fontName = font->getName(); + if (!fontName) return nullptr; + path = NULL; lockGlobalParams; - if ((fi = sysFonts->find(font->getName(), font->isFixedWidth(), gFalse))) { + if ((fi = sysFonts->find(fontName, font->isFixedWidth(), gFalse))) { path = fi->path->copy(); *type = fi->type; *fontNum = fi->fontNum; _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
