Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encoding/base64: Decode reports incorrect error index #19406

Closed
josselin-c opened this issue Mar 5, 2017 · 1 comment
Closed

encoding/base64: Decode reports incorrect error index #19406

josselin-c opened this issue Mar 5, 2017 · 1 comment

Comments

@josselin-c
Copy link
Contributor

What version of Go are you using (go version)?

1.8

What did you do?

Fuzzed the mainline implementation against a WIP.
Found some cases where the error reported by mainline has not the correct index: https://play.golang.org/p/koSIFlLi4W

What did you expect to see?

"illegal base64 data at input byte 1"
"illegal base64 data at input byte 1"

What did you see instead?

"illegal base64 data at input byte 3"
"illegal base64 data at input byte 2"

I'll send a CL

@gopherbot
Copy link

CL https://golang.org/cl/37837 mentions this issue.

@golang golang locked and limited conversation to collaborators Mar 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants