Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
poppler
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 613
    • Issues 613
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 39
    • Merge Requests 39
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • poppler
  • poppler
  • Issues
  • #62

Closed
Open
Opened Nov 19, 2009 by Bugzilla Migration User@bugzilla-migration

division by zero in Gfx::doAxialShFill

Submitted by M.D..@..ich.de

Assigned to poppler-bugs

Link to original bug (#25189)

Description

Created attachment 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.)

Patch 31318, "patch to avoid division-by-zero":
patch-ap

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: poppler/poppler#62