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/json: Decode panics with blank string when using ,string modifier #3450

Closed
gopherbot opened this issue Apr 1, 2012 · 3 comments
Closed

Comments

@gopherbot
Copy link

@gopherbot gopherbot commented Apr 1, 2012

by bigjake2s:

What steps will reproduce the problem?

http://play.golang.org/p/2IimLnzU5Z

What is the expected output?
{1 0}

What do you see instead?
panic: runtime error: index out of range

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g; play.golang.org

Which operating system are you using?
linux; play.golang.org

Which version are you using?  (run 'go version')
weekly.2012-03-22; play.golang.org

Please provide any additional information below.
@rsc

This comment has been minimized.

Copy link
Contributor

@rsc rsc commented Apr 2, 2012

Comment 1:

Labels changed: added priority-soon, removed priority-triage.

Status changed to Accepted.

@gopherbot

This comment has been minimized.

Copy link
Author

@gopherbot gopherbot commented Apr 14, 2012

Comment 3 by mchaten:

http://golang.org/cl/6035050/
@rsc

This comment has been minimized.

Copy link
Contributor

@rsc rsc commented May 3, 2012

Comment 4:

This issue was closed by revision 3fab2a9.

Status changed to Fixed.

@gopherbot gopherbot added fixed labels May 3, 2012
rsc added a commit that referenced this issue May 11, 2015
…l the empty string into an integer

««« backport 7ee60b35f644
encoding/json: Fix panic when trying to unmarshal the empty string into an integer

Fixes #3450.

R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/6035050

»»»
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.