Skip to content

Fix ArrayIndexOutOfBoundsException in getDoubleArrayForBox() - #713

Merged
MaximPlusov merged 2 commits into
integrationfrom
pdpage
Aug 5, 2026
Merged

Fix ArrayIndexOutOfBoundsException in getDoubleArrayForBox()#713
MaximPlusov merged 2 commits into
integrationfrom
pdpage

Conversation

@LonelyMidoriya

@LonelyMidoriya LonelyMidoriya commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of oversized page bounding-box data by limiting processing to the supported values.
    • Added a warning when additional bounding-box values are detected.

@LonelyMidoriya LonelyMidoriya self-assigned this Jul 31, 2026
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 48b923e8-a300-475e-9df3-3e82e317e474

📥 Commits

Reviewing files that changed from the base of the PR and between a8a18e5 and b609b7e.

📒 Files selected for processing (1)
  • src/main/java/org/verapdf/pd/PDPage.java
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/main/java/org/verapdf/pd/PDPage.java

📝 Walkthrough

Walkthrough

getDoubleArrayForBox processes a maximum of four bounding-box array elements and logs a warning when additional elements exist.

Changes

Bounding-box parsing

Layer / File(s) Summary
Limit bounding-box array processing
src/main/java/org/verapdf/pd/PDPage.java
getDoubleArrayForBox limits parsing to four elements and logs a warning for larger arrays.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: preventing ArrayIndexOutOfBoundsException in getDoubleArrayForBox().
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch pdpage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@MaximPlusov
MaximPlusov merged commit ef2c95e into integration Aug 5, 2026
9 checks passed
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.

2 participants