Skip to content

Reject invalid Base64 padding - #1523

Open
astunm wants to merge 1 commit into
jbeder:masterfrom
astunm:fix/base64-padding
Open

astunm wants to merge 1 commit into
jbeder:masterfrom
astunm:fix/base64-padding

Conversation

@astunm

@astunm astunm commented Nov 11, 2026

Copy link
Copy Markdown

Reject Base64 padding in the first two quartet positions and data after padding. These malformed inputs previously decoded into bytes instead of returning the existing invalid-input result.

Tests: all five new cases fail before the fix; all 1069 GoogleTests and three CTest checks pass afterward. The repository whitespace checker reports no violations on the staged LF text blobs.

This branch has not been deployed

No deployments
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.

1 participant