]> Cypherpunks repositories - gostls13.git/commit
encoding/gob: increase "tooBig" from 1GB to 8GB on 64-bit machines
authorRob Pike <r@golang.org>
Mon, 22 Oct 2018 03:17:06 +0000 (14:17 +1100)
committerRob Pike <r@golang.org>
Mon, 22 Oct 2018 05:45:18 +0000 (05:45 +0000)
commit3bf9b77c0c8f123728fcfc802599232e9bd95476
treef9025497f6b5b60c6d5df1bfcf1e3c63a1f152fc
parent7c2718b12a33180b3f6099e321c25af35c67f6fd
encoding/gob: increase "tooBig" from 1GB to 8GB on 64-bit machines

A little shift magic makes it easy to adjust the maximum buffer
size on machines with larger integers.

Fixes #27635

Change-Id: I1f26b07a363fbb9730df2377052475fa88bbb781
Reviewed-on: https://go-review.googlesource.com/c/143678
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/encoding/gob/decoder.go