encoding/base64: imprecise error for the base64-decoding input with an invalid length #38045
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run the following test case:
What did you expect to see?
An error message says that the length of the input data is not a multiple of 4 bytes.
What did you see instead?
Error message:
illegal base64 data at input byte 0
f
is a valid base64-encode byte. The failure of the decoding is due to the fact that the length of the input data is not a multiple of 4 bytes.The text was updated successfully, but these errors were encountered: