Skip to content

BUG: Fix UnboundLocalError when update_page_form_field_values with /Sig#3634

Merged
stefan6419846 merged 2 commits intopy-pdf:mainfrom
John-Sharp:issue3554
Feb 11, 2026
Merged

BUG: Fix UnboundLocalError when update_page_form_field_values with /Sig#3634
stefan6419846 merged 2 commits intopy-pdf:mainfrom
John-Sharp:issue3554

Conversation

@John-Sharp
Copy link
Contributor

Closes #3633

@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.39%. Comparing base (219153e) to head (0819654).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3634   +/-   ##
=======================================
  Coverage   97.39%   97.39%           
=======================================
  Files          55       55           
  Lines        9880     9881    +1     
  Branches     1806     1806           
=======================================
+ Hits         9623     9624    +1     
  Misses        151      151           
  Partials      106      106           

☔ 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.

Copy link
Collaborator

@stefan6419846 stefan6419846 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@stefan6419846 stefan6419846 merged commit 75de17f into py-pdf:main Feb 11, 2026
25 of 32 checks passed
stefan6419846 added a commit that referenced this pull request Feb 17, 2026
## What's new

### Security (SEC)
- Detect cyclic references when accessing TreeObject.children (#3645) by @stefan6419846
- Limit size of `/ToUnicode` entries (#3646) by @stefan6419846
- Limit FlateDecode recovery attempts (#3644) by @stefan6419846

### Bug Fixes (BUG)
- Avoid own object replacement logic in `PageObject.replace_contents` (#3638) by @stefan6419846
- Fix UnboundLocalError when update_page_form_field_values with /Sig (#3634) by @John-Sharp

### Robustness (ROB)
- Avoid divison by zero when decoding FlateDecode PNG prediction (#3641) by @stefan6419846

[Full Changelog](6.7.0...6.7.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.

UnboundLocalError for appearance_stream_obj when doing update_page_form_field_values with flatten in 6.2.0

3 participants