]> Cypherpunks repositories - gostls13.git/commit
fix bugs in gob.
authorRob Pike <r@golang.org>
Mon, 12 Oct 2009 00:37:22 +0000 (17:37 -0700)
committerRob Pike <r@golang.org>
Mon, 12 Oct 2009 00:37:22 +0000 (17:37 -0700)
commit330ab5fddbc11fc3dc14958309269e513666a4c9
treedc94d68df7ac8250b1af92afb8b1330771a78b89
parente98412290efb90b3f7aae2e5c63bd9bae5d0bbaf
fix bugs in gob.
1) didn't handle attempts to encode non-structs properly.
2) if there were multiple indirections involving allocation, didn't allocate the
intermediate cells.
tests added.

R=rsc
DELTA=82  (65 added, 5 deleted, 12 changed)
OCL=35582
CL=35582
src/pkg/gob/decode.go
src/pkg/gob/encoder.go
src/pkg/gob/encoder_test.go