Skip to content

PDFBOX-6286: Scope page-tree recursion state to each lookup - #540

Open
AryanRG wants to merge 1 commit into
apache:trunkfrom
AryanRG:fix/pdfbox-6286-page-tree-lookup-state
Open

AryanRG wants to merge 1 commit into
apache:trunkfrom
AryanRG:fix/pdfbox-6286-page-tree-lookup-state

Conversation

@AryanRG

@AryanRG AryanRG commented Oct 17, 2026 •

Copy link
Copy Markdown

Summary

  • Fix false recursion on a valid PDPageTree.get() lookup after an out-of-range lookup on the same tree by scoping the visited set to each traversal.
  • Add an in-memory, one-page regression test for the failing sequence.

Jira: https://issues.apache.org/jira/browse/PDFBOX-6286

Validation

  • TestPDPageTree: 8 tests passed using focused Maven resource, compile, and test goals.
  • The standard Maven test lifecycle did not finish while fetching external fixtures. The full suite and stable branches were not tested.

Prepared with AI assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant