]> Cypherpunks repositories - gostls13.git/commit
encoding/json: properly handle extra objects with fixed size arrays
authorRick Arnold <rickarnoldjr@gmail.com>
Wed, 13 Mar 2013 18:53:03 +0000 (14:53 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 13 Mar 2013 18:53:03 +0000 (14:53 -0400)
commitcb8aebf19d7291ec0acc7fcfc7d9fd0010f66cdc
tree093736634a41ed76d983455c187b3ffc1596fba2
parent06cbe78bd77789afb46b597466bcecf73c25d6d2
encoding/json: properly handle extra objects with fixed size arrays

If a fixed size array is passed in as the decode target and the JSON
to decode has extra array elements that are objects, then previously
the decoder would return a "data changing underfoot" error.

Fixes #3717.

R=golang-dev, adg, rsc
CC=golang-dev
https://golang.org/cl/7490046
src/pkg/encoding/json/decode.go
src/pkg/encoding/json/decode_test.go