]> Cypherpunks repositories - gostls13.git/commit
encoding/gob: support large slices in slice decode helpers
authorIan Lance Taylor <iant@golang.org>
Tue, 18 Oct 2022 20:29:10 +0000 (13:29 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 20 Oct 2022 23:11:47 +0000 (23:11 +0000)
commit4c61e079c087052355c137ab8fcd9abf8728e50a
tree5eedc184afaf0cda7c82894405366de4b8a40718
parent4725c71b735143a138b24f2b0e055c717d8d69ca
encoding/gob: support large slices in slice decode helpers

The slice decode helpers weren't aware of partially allocated slices.

Also add large slice support for []byte.

Change-Id: I5044587e917508887c7721f8059d364189831693
Reviewed-on: https://go-review.googlesource.com/c/go/+/443777
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/encoding/gob/codec_test.go
src/encoding/gob/dec_helpers.go
src/encoding/gob/decode.go