Re: pdftex core dump when including certain pdf files

"KAKUTO, Akira" <kakuto-/k5Uodmu4m/[email protected]>
Newsgroups gmane.comp.tex.pdftex
Message-ID <CAAaQaP6c+3MMDTHV1C-S_bd2efp9xhX3xqw73iU0gjF6OxfgcQ@mail.gmail.com>
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
Object.h.diff (text/plain, 429 B)
--- 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.