Skip to content

ROB: Avoid index errors on empty lines in xref table#3162

Merged
stefan6419846 merged 1 commit intopy-pdf:mainfrom
stefan6419846:issue2886
Feb 27, 2025
Merged

ROB: Avoid index errors on empty lines in xref table#3162
stefan6419846 merged 1 commit intopy-pdf:mainfrom
stefan6419846:issue2886

Conversation

@stefan6419846
Copy link
Copy Markdown
Collaborator

Closes #2886.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.53%. Comparing base (f15ddca) to head (fad543d).
Report is 95 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3162   +/-   ##
=======================================
  Coverage   96.53%   96.53%           
=======================================
  Files          53       53           
  Lines        8914     8916    +2     
  Branches     1634     1635    +1     
=======================================
+ Hits         8605     8607    +2     
  Misses        185      185           
  Partials      124      124           

☔ 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 stefan6419846 merged commit b7f3811 into py-pdf:main Feb 27, 2025
16 checks passed
@stefan6419846 stefan6419846 deleted the issue2886 branch February 27, 2025 13:26
stefan6419846 added a commit that referenced this pull request Mar 2, 2025
## What's new

### Bug Fixes (BUG)
- Use the correct name StandardEncoding for the predefined cmap (#3156) by @stefan6419846
- Handle inline images containing `EI ` sequences (#3152) by @stefan6419846
- Fix check box value which should be name object (#3124) by @stefan6419846
- Fix stream position on inline image fallback extraction (#3120) by @stefan6419846
- Fix object count for incremental writer (#3117) by @m32

### Robustness (ROB)
- Avoid index errors on empty lines in xref table (#3162) by @stefan6419846
- Improve handling of LZW decoder table overflow (#3159) by @stefan6419846
- Ignore non-numbers for width when building font width map (#3158) by @stefan6419846
- Avoid negative seek values when reading partially broken files (#3157) by @stefan6419846

### Documentation (DOC)
- Fixed PageObject.images example usage for replacing image (#3149) by @jutoth

[Full Changelog](5.3.0...5.3.1)
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.

Using PdfReader causes a crash: IndexError when reading xref table

1 participant