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
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • poppler
  • poppler
  • Merge Requests
  • !67

Closed
Opened Sep 26, 2018 by Marek Kasik@mkasikGuest
  • Report abuse
Report abuse

Fail when PDF contains duplicate objects

  • Overview 10
  • Commits 2
  • Pipelines 6
  • Changes 1

Hi,

I've came across an issue where processing of a PDF takes a lot of time. It happens because processing is slowly approaching the recursionLimit in Parser.cc. I've found that there are some objects duplicated in the PDF. Detecting these duplicates and failing because of them solves the issue. I can not share the PDF but this is almost the same issue as the one reported here: https://bugs.freedesktop.org/show_bug.cgi?id=96217 .

To be specific, the commit in this merge request checks whether current xrefEntry is already occupied during XRef::constructXRef(). If yes then it checks offset of the entry against current position and fail if they are different.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: poppler/poppler!67
Source branch: fail-when-pdf-contains-duplicate-objects