[Poppler-bugs] [Bug 25189] New: division by zero in Gfx::doAxialShFill
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Nov 19 10:15:10 PST 2009
http://bugs.freedesktop.org/show_bug.cgi?id=25189
Summary: division by zero in Gfx::doAxialShFill
Product: poppler
Version: unspecified
Platform: All
OS/Version: NetBSD
Status: NEW
Severity: major
Priority: medium
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: M.Drochner at fz-juelich.de
Created an attachment (id=31318)
--> (http://bugs.freedesktop.org/attachment.cgi?id=31318)
patch to avoid division-by-zero
A PDF document (which I can make available but which is too large to post here)
could be viewed in "evince" but when I tried to print it the resulting PDF
was invalid. It turned out that it contained "nan" literally in linear shade
objects where numbers are expected.
The NaNs were originating from poppler's Gfx::doAxialShFill function. Both
tMin and tMax are zero in that situation (as was dy; dx was non-zero).
For now, I've using the appended patch to work around the problem.
(It seems to me that problem is in the intersection code but I didn't
look deeper yet.)
--
Configure bugmail: http://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