[pdftex] pdftex core dump when including certain pdf files

KAKUTO, Akira kakuto at fuk.kindai.ac.jp
Fri Jul 15 07:51:20 CEST 2016


Hi Norbert,

> But this may not be a desirable fix.

If we use getNum() instead of getInt() in pdftoepdf.cc,
tryplot.pdf is created successfully even if we use poppler.
But I don't know the change is harmless or not.
See an attached pdftoepdf.cc.diff.

Best,
Akira
-------------- next part --------------
--- pdftoepdf.cc.orig	Fri Feb 19 11:45:31 2016
+++ pdftoepdf.cc	Fri Jul 15 14:38:51 2016
@@ -427,7 +427,7 @@
         && (fontmap = lookup_fontmap(basefont->getName())) != NULL) {
         // copy the value of /StemV
         fontdesc->dictLookup("StemV", &stemV);
-        fd = epdf_create_fontdescriptor(fontmap, stemV->getInt());
+        fd = epdf_create_fontdescriptor(fontmap, stemV->getNum());
         if (fontdesc->dictLookup("CharSet", &charset) &&
             charset->isString() && is_subsetable(fontmap))
             epdf_mark_glyphs(fd, charset->getString()->getCString());


More information about the pdftex mailing list