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

gopherbot opened this issue Apr 1, 2012 · 3 comments


Copy link

by bigjake2s:

What steps will reproduce the problem?

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)?

Which operating system are you using?

Which version are you using?  (run 'go version')

Please provide any additional information below.
Copy link

rsc commented Apr 2, 2012

Comment 1:

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

Status changed to Accepted.

Copy link

Comment 3 by mchaten:

Copy link

rsc commented May 3, 2012

Comment 4:

This issue was closed by revision 3fab2a9.

Status changed to Fixed.

rsc pushed 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

@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.
None yet

No branches or pull requests

2 participants