]> Cypherpunks repositories - gostls13.git/commit
gob: reduce the maximum message size
authorRob Pike <r@golang.org>
Sun, 22 Jan 2012 20:01:12 +0000 (12:01 -0800)
committerRob Pike <r@golang.org>
Sun, 22 Jan 2012 20:01:12 +0000 (12:01 -0800)
commit6e1c0df1048de9c95e757a35dd924917ea2bc481
tree6de7661d80cab499c5538cb85627a2c16ce675ee
parent387e7c274249a307f62ed94c8dfdabfe42e3b01c
gob: reduce the maximum message size
It was 2^31, but that could cause overflow and trouble.
Reduce it to 2^30 and add a TODO.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5562049
src/pkg/encoding/gob/decoder.go
src/pkg/encoding/gob/gobencdec_test.go