[Poppler-bugs] [Bug 52215] New: Division by zero in poppler/PSOutputDev.cc:3132
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jul 17 21:55:51 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=52215
Bug #: 52215
Summary: Division by zero in poppler/PSOutputDev.cc:3132
Classification: Unclassified
Product: poppler
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: utils
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: cryptooctoploid at gmail.com
Created attachment 64336
--> https://bugs.freedesktop.org/attachment.cgi?id=64336
testcase
% gdb pdftops
(gdb) run -origpagesizes /tmp/foo.pdf
Starting program: /usr/bin/pdftops -origpagesizes /tmp/foo.pdf
Program received signal SIGFPE, Arithmetic exception.
0x00007ffff7cd254a in PSOutputDev::checkPageSlice (this=0x435ba0,
page=0x4359b0, rotateA=0, useMediaBox=<optimized out>, crop=false, sliceX=0,
sliceY=0, sliceW=0, sliceH=0, printing=true, abortCheckCbk=0,
abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0)
at
/var/tmp/portage/app-text/poppler-0.20.2/work/poppler-0.20.2/poppler/PSOutputDev.cc:3132
3132 stripeH = (sliceH + nStripes - 1) / nStripes;
(gdb) bt
#0 0x00007ffff7cd254a in PSOutputDev::checkPageSlice (this=0x435ba0,
page=0x4359b0, rotateA=0, useMediaBox=<optimized out>, crop=false, sliceX=0,
sliceY=0, sliceW=0, sliceH=0, printing=true, abortCheckCbk=0,
abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0)
at
/var/tmp/portage/app-text/poppler-0.20.2/work/poppler-0.20.2/poppler/PSOutputDev.cc:3132
#1 0x00007ffff7cbcac3 in Page::displaySlice (this=0x4359b0, out=0x435ba0,
hDPI=<optimized out>, vDPI=<optimized out>, rotate=0, useMediaBox=false,
crop=true, sliceX=sliceX at entry=-1, sliceY=sliceY at entry=-1,
sliceW=sliceW at entry=-1, sliceH=sliceH at entry=-1, printing=true,
abortCheckCbk=abortCheckCbk at entry=0,
abortCheckCbkData=abortCheckCbkData at entry=0x0,
annotDisplayDecideCbk=annotDisplayDecideCbk at entry=0,
annotDisplayDecideCbkData=annotDisplayDecideCbkData at entry=0x0)
at
/var/tmp/portage/app-text/poppler-0.20.2/work/poppler-0.20.2/poppler/Page.cc:507
#2 0x00007ffff7cbccfe in Page::display (this=<optimized out>, out=<optimized
out>, hDPI=<optimized out>, vDPI=<optimized out>,
rotate=<optimized out>, useMediaBox=<optimized out>, crop=<optimized out>,
printing=<optimized out>, abortCheckCbk=0, abortCheckCbkData=0x0,
annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at
/var/tmp/portage/app-text/poppler-0.20.2/work/poppler-0.20.2/poppler/Page.cc:450
#3 0x00007ffff7cc22c5 in PDFDoc::displayPages (this=0x434d90, out=0x435ba0,
firstPage=<optimized out>, lastPage=1, hDPI=72, vDPI=72, rotate=0,
useMediaBox=false, crop=true, printing=true, abortCheckCbk=0,
abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0)
at
/var/tmp/portage/app-text/poppler-0.20.2/work/poppler-0.20.2/poppler/PDFDoc.cc:483
#4 0x0000000000402840 in main (argc=2, argv=<optimized out>) at
/var/tmp/portage/app-text/poppler-0.20.2/work/poppler-0.20.2/utils/pdftops.cc:398
This happens with certain pdfs produced by cups.
See: https://bugs.gentoo.org/show_bug.cgi?id=426674 or
https://bugs.gentoo.org/show_bug.cgi?id=426552
Started with commit 6ee907f2.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list