ROB: Fix AESV2 decryption when /Length missing in encrypt dict#3629
Merged
stefan6419846 merged 1 commit intopy-pdf:mainfrom Feb 6, 2026
Merged
ROB: Fix AESV2 decryption when /Length missing in encrypt dict#3629stefan6419846 merged 1 commit intopy-pdf:mainfrom
stefan6419846 merged 1 commit intopy-pdf:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3629 +/- ##
=======================================
Coverage 97.39% 97.39%
=======================================
Files 55 55
Lines 9852 9855 +3
Branches 1800 1801 +1
=======================================
+ Hits 9595 9598 +3
Misses 151 151
Partials 106 106 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
0c4d5e1 to
27eeba4
Compare
Collaborator
|
Thanks for the PR. Could you please check whether we are able to keep full coverage? Additionally, please do not use type ignores unless really required, and if required only with specific error codes. |
27eeba4 to
06aa790
Compare
Contributor
Author
|
Okay thanks, refactored to hit full test coverage - though this version feels a bit less readable to me |
06aa790 to
f08027c
Compare
stefan6419846
added a commit
that referenced
this pull request
Feb 8, 2026
## What's new ### Deprecations (DEP) - Deprecate support for abbreviations in decode_stream_data (#3617) by @stefan6419846 ### New Features (ENH) - Add ability to add font resources for 14 Adobe Core fonts in text widget annotations (#3624) by @PJBrs ### Bug Fixes (BUG) - Avoid invalid load for ICCBased FlateDecode images in mode 1 (#3619) by @stefan6419846 ### Robustness (ROB) - Fix AESV2 decryption when /Length missing in encrypt dict (#3629) by @dmitry-kostin - Fix merging when annotations point to NullObject (#3613) by @stefan6419846 - Check for `self._info` being None in `compress_identical_objects` (#3612) by @stefan6419846 [Full Changelog](6.6.2...6.7.0)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/Lengthis missing in the main encrypt dictTest plan
/Lengthin encrypt dictFixes #3628