Skip to content

🐛 Fix recursion in count_padding - #432

Merged
Thalhammer merged 2 commits into
masterfrom
thalhammer/fix-count_padding
Oct 6, 2026
Merged

Thalhammer merged 2 commits into
masterfrom
thalhammer/fix-count_padding

Conversation

@Thalhammer

Copy link
Copy Markdown
Owner

This changes count_padding to no longer work recursive.
It also changes behaviour to not allow non-uniform padding.
I.e. the padding symbol should stay the same for the entire encoded string.
The previous implementation allowed any padding symbol as long as its part of the accepted set, however this is not following the base64 spec.
Now the padding symbols are required to be identical.

@Thalhammer
Thalhammer merged commit 1e9b135 into master Oct 6, 2026
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants