Skip to content

ROB: Improve handling for malformed cross-reference tables#3483

Merged
stefan6419846 merged 2 commits intopy-pdf:mainfrom
stefan6419846:issue3482
Sep 29, 2025
Merged

ROB: Improve handling for malformed cross-reference tables#3483
stefan6419846 merged 2 commits intopy-pdf:mainfrom
stefan6419846:issue3482

Conversation

@stefan6419846
Copy link
Copy Markdown
Collaborator

Closes #3482.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.09%. Comparing base (5848de3) to head (9c10bbf).
⚠️ Report is 69 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3483   +/-   ##
=======================================
  Coverage   97.09%   97.09%           
=======================================
  Files          56       56           
  Lines        9657     9658    +1     
  Branches     1748     1748           
=======================================
+ Hits         9376     9377    +1     
  Misses        168      168           
  Partials      113      113           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stefan6419846
Copy link
Copy Markdown
Collaborator Author

@stefan6419846 stefan6419846 merged commit 2b2eca2 into py-pdf:main Sep 29, 2025
16 checks passed
@stefan6419846 stefan6419846 deleted the issue3482 branch September 29, 2025 12:01
stefan6419846 added a commit that referenced this pull request Oct 19, 2025
## What's new

### Bug Fixes (BUG)
- Fix handling of zero-length StreamObject (#3485) by @Likend

### Robustness (ROB)
- Deal with wrong size for incremental PDF files (#3495) by @stefan6419846
- Improve handling for malformed cross-reference tables (#3483) by @stefan6419846

### Developer Experience (DEV)
- Use released Python 3.14 by @stefan6419846
- Use Mapping instead of dict in type hint of update_page_form_field_values (#3490) by @stefan6419846

[Full Changelog](6.1.1...6.1.2)
OpenNingia pushed a commit to OpenNingia/pypdf that referenced this pull request Oct 23, 2025
Closes py-pdf#3482.

Additionally, I had to replace a dead test file link.
OpenNingia pushed a commit to OpenNingia/pypdf that referenced this pull request Oct 23, 2025
## What's new

### Bug Fixes (BUG)
- Fix handling of zero-length StreamObject (py-pdf#3485) by @Likend

### Robustness (ROB)
- Deal with wrong size for incremental PDF files (py-pdf#3495) by @stefan6419846
- Improve handling for malformed cross-reference tables (py-pdf#3483) by @stefan6419846

### Developer Experience (DEV)
- Use released Python 3.14 by @stefan6419846
- Use Mapping instead of dict in type hint of update_page_form_field_values (py-pdf#3490) by @stefan6419846

[Full Changelog](py-pdf/pypdf@6.1.1...6.1.2)
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.

UnboundLocalError when reading cross-reference tables with wrong SPACE positions

1 participant