Title: `binascii.a2b_base64` ignores padding inside a string · Issue #94703 · python/cpython · GitHub
Open Graph Title: `binascii.a2b_base64` ignores padding inside a string · Issue #94703 · python/cpython
X Title: `binascii.a2b_base64` ignores padding inside a string · Issue #94703 · python/cpython
Description: Bug report The following code should raise binascii.Error but does not: import binascii binascii.a2b_base64(b'=aa==') It appears (from looking at the source code) that this is also the case in 3.11, even in strict mode. Your environment ...
Open Graph Description: Bug report The following code should raise binascii.Error but does not: import binascii binascii.a2b_base64(b'=aa==') It appears (from looking at the source code) that this is also the case in 3.11...
X Description: Bug report The following code should raise binascii.Error but does not: import binascii binascii.a2b_base64(b'=aa==') It appears (from looking at the source code) that this is also the case...
Opengraph URL: https://github.com/python/cpython/issues/94703
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`binascii.a2b_base64` ignores padding inside a string","articleBody":"\u003c!--\r\n If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not\r\n the right place to seek help. Consider the following options instead:\r\n\r\n - reading the Python tutorial: https://docs.python.org/3/tutorial/\r\n - posting in the \"Users\" category on discuss.python.org: https://discuss.python.org/c/users/7\r\n - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list\r\n - searching our issue tracker (https://github.com/python/cpython/issues) to see if\r\n your problem has already been reported\r\n--\u003e\r\n\r\n**Bug report**\r\n\r\nThe following code should raise `binascii.Error` but does not:\r\n\r\n```python\r\nimport binascii\r\nbinascii.a2b_base64(b'=aa==')\r\n```\r\n\r\nIt appears (from looking at the source code) that this is also the case in 3.11, even in strict mode.\r\n\r\n**Your environment**\r\n\r\n\u003c!-- Include as many relevant details as possible about the environment you experienced the bug in --\u003e\r\n\r\n- CPython versions tested on: 3.10\r\n- Operating system and architecture: Fedora 36, Linux 5.15.52, x86_64","author":{"url":"https://github.com/DemiMarie","@type":"Person","name":"DemiMarie"},"datePublished":"2022-07-09T03:57:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/94703/cpython/issues/94703"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f49339ce-3064-e4b3-efad-930698c4e980 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D32C:14A6FD:BC926:FBB98:6969C752 |
| html-safe-nonce | 78a34d08040668ce08a6659f492f16399aae0b9ac3988d64880b617d74619d43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzJDOjE0QTZGRDpCQzkyNjpGQkI5ODo2OTY5Qzc1MiIsInZpc2l0b3JfaWQiOiIyODg4NDU0MTI2Mzg4NzU4MzU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3418de028ea4ab10a23d7f3bbfde5805714d34d1a0d67b96247adcdc19eeaba6 |
| hovercard-subject-tag | issue:1299563668 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/94703/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0320008cf39af6c1dd4472c37cbcdb25db4e77673ddf2acdb83fab82ed3b7982/python/cpython/issues/94703 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0320008cf39af6c1dd4472c37cbcdb25db4e77673ddf2acdb83fab82ed3b7982/python/cpython/issues/94703 |
| og:image:alt | Bug report The following code should raise binascii.Error but does not: import binascii binascii.a2b_base64(b'=aa==') It appears (from looking at the source code) that this is also the case in 3.11... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DemiMarie |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width