[pdftex] pdftex core dump when including certain pdf files

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


Hi Norbert,

> That line is
>         Dict *getDict() { OBJECT_TYPE_CHECK(objDict); return dict; }
> where the error comes from OBJECT_TYPE_CHECK:

Many thanks.
If we remove
OBJECT_TYPE_CHECK(objInt);
in getInt(), as in xpdf, the crash disappears.
But this may not be a desirable fix.
See an attached Object.h.diff.

Note that Object.h.r40068 is
texlive/trunk/Build/source/libs/poppler/poppler-src/poppler/Object.h
and it is slightly modified by Peter compared with the
opriginal one in poppler 0.45.0.

Best,
Akira
-------------- next part --------------
--- Object.h.r40068	Fri Jul 15 13:43:44 2016
+++ Object.h	Fri Jul 15 13:44:42 2016
@@ -200,7 +200,7 @@
 
   // Accessors.
   GBool getBool() { OBJECT_TYPE_CHECK(objBool); return booln; }
-  int getInt() { OBJECT_TYPE_CHECK(objInt); return intg; }
+  int getInt() { return intg; }
   double getReal() { OBJECT_TYPE_CHECK(objReal); return real; }
 
   // Note: integers larger than 2^53 can not be exactly represented by a double.


More information about the pdftex mailing list