Skip to content

Conversation

SeanCurtis-TRI
Copy link

It already returns an empty string if it encounters an invalid character. However, if, instead, it has an incomplete set of characters (no-multiple of four), it currently returns a truncated result. Instead, it detects truncation and returns the empty string.

The only time DecodeBase64() returns a valid empty return value is if the input was likewise empty.

It already returns an empty string if it encounters an invalid character.
However, if, instead, it has an incomplete set of characters, it currently
returns a truncated result. Instead, it detects truncation and returns
the empty string.
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