You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What does 'go version' print?
go version go1.2 linux/amd64
What steps reproduce the problem?
http://play.golang.org/p/pt499XKHGk
What happened? Got 'abc'
What should have happened instead? Want 'abcd' or an error.
Please provide any additional information below.
The following check in decode() assumes correctly padded input:
if in == '=' && j >= 2 && len(src) < 4 {
The text was updated successfully, but these errors were encountered:
Well, you're ignoring the return values. If you looked at the return value, you'd see
the CorruptInputError at position 8.
But it's true that we're losing one byte of decoded output in that case.
CL on its wayl.
by garrick@google.com:
The text was updated successfully, but these errors were encountered: