[cups.bugs] [MOD] STR #2031: pdftops Seg Faults when filtering certain pdfs

Hin-Tak Leung htl10 at users.sourceforge.net
Tue Oct 17 08:10:30 PDT 2006


[STR New]

Here is gdb on fc5 against the cups-shipped pdftops (poppler-shipped
pdftops doesn't segfault). It looks like the code is trying to do a
dictionary look up on the "Creator" field of the pdf, which does 
not exist on v1.2 pdf's (this is a very old-style pdf).

============
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912514426800 (LWP 32362)]
Dict::lookup (this=0x2aaaab30944d, key=0x55555560f2b3 "Creator",
obj=0x7fff60d9dd30) at Dict.cxx:61
61          if (!strcmp(key, entries[i].key))
(gdb) bt
#0  Dict::lookup (this=0x2aaaab30944d, key=0x55555560f2b3 "Creator",
obj=0x7fff60d9dd30) at Dict.cxx:61
#1  0x000055555559e60d in PSOutputDev::writeHeader (this=0x555555778820,
firstPage=1, lastPage=17, mediaBox=0x555555778b70,
    cropBox=0x555555778b90, pageRotate=0) at Object.h:253
#2  0x00005555555a444e in PSOutputDev::init (this=0x555555778820,
outputFuncA=Variable "outputFuncA" is not available.
) at PSOutputDev.cxx:1059
#3  0x00005555555a4871 in PSOutputDev (this=0x555555778820,
fileName=0x5555557786f0 "-", xrefA=0x555555773c50, catalog=0x555555773ce0,
    firstPage=1, lastPage=17, modeA=psModePS, imgLLXA=0, imgLLYA=0,
imgURXA=0, imgURYA=0, manualCtrlA=0, pageRangesA=0x0) at
PSOutputDev.cxx:944
#4  0x000055555559168e in main (argc=Variable "argc" is not available.
) at pdftops.cxx:312
(gdb)


============

Link: http://www.cups.org/str.php?L2031
Version: 1.2.4





More information about the cups-devel mailing list