-
Notifications
You must be signed in to change notification settings - Fork 1.5k
BUG: Guard empty input to prevent IndexError #3448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3448 +/- ##
=======================================
Coverage 96.97% 96.97%
=======================================
Files 54 54
Lines 9337 9337
Branches 1711 1711
=======================================
Hits 9055 9055
Misses 168 168
Partials 114 114 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Thanks for the PR. Could you please add a corresponding test as well? |
@stefan6419846 |
You can either add a unit test without a PDF file or an integration test with downloading the PDF file on the fly (see other tests). If possible, I consider a unit test suitable enough here. |
9ac6f35
to
7416ff6
Compare
- Resolves py-pdf#3446 - Handle empty string case - Add a unit test for edge cases
7416ff6
to
415b04b
Compare
@stefan6419846 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
## What's new ### New Features (ENH) - Enhance XMP metadata handling with creation and setter methods (#3410) by @Arya-A-Nair - Add all font metrics for base 14 Type 1 PDF fonts (#3363) by @PJBrs - Allow deleting embedded files (#3461) by @stefan6419846 - Add support for Python in FIPS mode for document identifier (#3438) by @xnox ### Bug Fixes (BUG) - Fix handling of UTF-16 encoded destination titles (#3463) by @stefan6419846 - Guard empty input to prevent IndexError (#3448) by @KyleJung0828 ### Developer Experience (DEV) - Fix type hint for XMP metadata setter to add bytes type (#3464) by @stefan6419846 [Full Changelog](6.0.0...6.1.0)
Resolves #3446
How to check
As mentioned in #3446 you can test with guwunmong.pdf.