Skip to content
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

fix(base64): validate base64 strings #2779

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

JordonPhillips
Copy link
Member

Issue

n/a

Description

This updates the node and browser base64 parsers to validate the input string before parsing.

Node previously would just ignore invalid characters and treat padding as optional. The browser implementation required padding, but had a bug where invalid characters were treated as 0.

Testing

Additional unit tests were added.

Additional context

n/a


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This updates the node and browser base64 parsers to validate the
input string before parsing.
@JordonPhillips JordonPhillips merged commit 2b336a3 into aws:main Sep 14, 2021
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants