]> Cypherpunks repositories - gostls13.git/commit
encoding/gob: more checks for corrupted data
authorRob Pike <r@golang.org>
Wed, 8 Apr 2015 20:17:57 +0000 (13:17 -0700)
committerRob Pike <r@golang.org>
Thu, 9 Apr 2015 17:02:19 +0000 (17:02 +0000)
commitd64617fc0a537d9783f03ef5c97eaee7d0e7de17
tree25e2da4d2aafa945a9670c47c4dd4068f100a896
parentee349b5d771b1c3e58f77b07e200a0a630667f22
encoding/gob: more checks for corrupted data

Also unify the tests where possible to make it easy to add more.

Fixes #10273.

Change-Id: Idfa4f4a5dcaa05974066bafe17bed6cdd2ebedb7
Reviewed-on: https://go-review.googlesource.com/8662
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/gob/decode.go
src/encoding/gob/encoder_test.go