]> Cypherpunks repositories - gostls13.git/commit
gob: make robust when decoding a struct with non-struct data.
authorRob Pike <r@golang.org>
Sun, 19 Sep 2010 21:37:06 +0000 (07:37 +1000)
committerRob Pike <r@golang.org>
Sun, 19 Sep 2010 21:37:06 +0000 (07:37 +1000)
commitc8b3d02939542acb355c66ed5dc69387db9ed3fc
treec997cb05c2f4f775f429ce01bcdd9e060ccb4db4
parent42a61b920ee242023d46818da2267e88d635a4c9
gob: make robust when decoding a struct with non-struct data.
The decoder was crashing when handling an rpc that expected
a struct but was delivered something else.  This diagnoses the
problem.  The other direction (expecting non-struct but getting
one) was already handled.

R=rsc
CC=golang-dev
https://golang.org/cl/2246041
src/pkg/gob/decode.go
src/pkg/gob/encoder_test.go
src/pkg/gob/type.go