-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-43086: Added handling for excess data in binascii.a2b_base64 #24402
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
52d83e9
Added handling for excess data in binascii.a2b_base64
idan22moral 557bce8
📜🤖 Added by blurb_it.
blurb-it[bot] 6ed5193
Added if-state guard
idan22moral 4ee90f5
Merge branch 'master' of https://github.com/idan22moral/cpython
idan22moral c7b723f
Implemented the strict mode logic
idan22moral 93f497a
Merge branch 'master' of https://github.com/python/cpython
idan22moral f6283d9
Trying to fix the "Check if generated files are up to date" failure
idan22moral cedbb85
Generated function signatures using clinic
idan22moral 69c96d5
Handle data in the middle of the padding in strict mode
idan22moral 3718ebd
Added a test for strict mode
idan22moral d0b60e2
Added a test for invalid data as the first character
idan22moral afb95db
Disallowed leading padding in strict mode
idan22moral 3c5758b
Added tests for padding-only input
idan22moral 5f8df5b
Added tests to validate the default behavior.
idan22moral 644dbaf
Described the changed of this pull request
idan22moral 464484c
Modified syntax of RST
idan22moral e1ccf8a
Updated the docs to explain the strict_mode parameter
idan22moral d6a5cbf
Moved declaration of state to the beginning to prevent multiple decla…
idan22moral 5abc68f
Merge branch 'main' into master
idan22moral 08aa26c
Corrected the RST syntax for argument in docs (italic)
idan22moral 2f1990e
Corrected the RST syntax for argument in news (italic)
idan22moral fa959bd
Removed whitespace that lead to build failure
idan22moral a60a8c6
use self.assertEqual instead of assert ==
gpshead 0307272
remove leadg `| ` characters in NEWS
gpshead d26e1eb
Simplify the error messages.
gpshead 652e7f4
update test for error message (Leading vs Malformed)
gpshead File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/Library/2021-01-31-18-24-54.bpo-43086.2_P-SH.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Added a new optional :code:`strict_mode` parameter to *binascii.a2b_base64*. | ||
When :code:`scrict_mode` is set to :code:`True`, the *a2b_base64* function will accept only valid base64 content. | ||
More details about what "valid base64 content" is, can be found in the function's documentation. |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.