Skip to content

SEC: Avoid infinite loop in read_from_stream for broken files#3693

Merged
stefan6419846 merged 2 commits intopy-pdf:mainfrom
stefan6419846:read-from-stream
Mar 23, 2026
Merged

SEC: Avoid infinite loop in read_from_stream for broken files#3693
stefan6419846 merged 2 commits intopy-pdf:mainfrom
stefan6419846:read-from-stream

Conversation

@stefan6419846
Copy link
Collaborator

This only affects the non-strict mode and is triggered for errors which should always trigger a hard error, id est recursion and filter limit errors.

This only affects the non-strict mode and is triggered for errors which
should always trigger a hard error, id est recursion and filter limit
errors.
@codecov
Copy link

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.43%. Comparing base (3bef339) to head (67f30e2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3693   +/-   ##
=======================================
  Coverage   97.43%   97.43%           
=======================================
  Files          55       55           
  Lines       10001    10003    +2     
  Branches     1837     1837           
=======================================
+ Hits         9744     9746    +2     
  Misses        149      149           
  Partials      108      108           

☔ 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 02b1345 into py-pdf:main Mar 23, 2026
18 checks passed
@stefan6419846 stefan6419846 deleted the read-from-stream branch March 23, 2026 14:48
stefan6419846 added a commit that referenced this pull request Mar 23, 2026
## What's new

### Security (SEC)
- Avoid infinite loop in read_from_stream for broken files (#3693) by @stefan6419846

### Robustness (ROB)
- Resolve UnboundLocalError for xobjs in _get_image (#3684) by @Yuki9814

[Full Changelog](6.9.1...6.9.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.

1 participant