FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Check whether an EncodedURL can be decoded before giving it back by exarkun · Pull Request #178 · python-hyper/hyperlink · GitHub

Check whether an EncodedURL can be decoded before giving it back - #178

Open
exarkun wants to merge 4 commits into
python-hyper:masterfrom
exarkun:153-safe-decodedurls-strategy
Open

Check whether an EncodedURL can be decoded before giving it back#178
exarkun wants to merge 4 commits into
python-hyper:masterfrom
exarkun:153-safe-decodedurls-strategy

Conversation

exarkun commented Aug 27, 2022

Copy link
Copy Markdown
Contributor

This fixes #153 by fixing only the Hypothesis strategy for DecodedURL. It doesn't stop encoded_urls from finding EncodedURL values which cannot be decoded by DecodedURL. It only catches these values in the decoded_urls strategy.

This might be the wrong change to make since it really only hides the fact that not all EncodedURL values can be decoded with DecodedURL. It seems like fixing the actual decoding in DecodedURL would be better, but I'm not sure how to do that.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hypothesis: builtins.UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

1 participant


Back | FazBrowse Home | New Git URL