go/src/math/big
Roland Shoemaker 703c8ab7e5 [release-branch.go1.17] math/big: check buffer lengths in GobDecode
In Float.GobDecode and Rat.GobDecode, check buffer sizes before
indexing slices.

Updates #53871
Fixes #54094

Change-Id: I1b652c32c2bc7a0e8aa7620f7be9b2740c568b0a
Reviewed-on: https://go-review.googlesource.com/c/go/+/417774
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tatiana Bradley <tatiana@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
(cherry picked from commit 055113ef36)
Reviewed-on: https://go-review.googlesource.com/c/go/+/419814
Reviewed-by: Julie Qiu <julieqiu@google.com>
2022-07-29 14:06:18 +00:00
..
accuracy_string.go
arith.go math/big: move division into natdiv.go 2021-05-26 13:25:43 +00:00
arith_386.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
arith_amd64.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
arith_amd64.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
arith_arm.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
arith_arm64.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
arith_decl.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
arith_decl_pure.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
arith_decl_s390x.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
arith_mips64x.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
arith_mipsx.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
arith_ppc64x.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
arith_riscv64.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
arith_s390x.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
arith_s390x_test.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
arith_test.go math/big: add shrVU and shlVU benchmarks 2021-03-07 23:02:35 +00:00
arith_wasm.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
bits_test.go
calibrate_test.go
decimal.go
decimal_test.go
doc.go
example_rat_test.go
example_test.go
float.go
float_test.go
floatconv.go
floatconv_test.go
floatexample_test.go
floatmarsh.go [release-branch.go1.17] math/big: check buffer lengths in GobDecode 2022-07-29 14:06:18 +00:00
floatmarsh_test.go [release-branch.go1.17] math/big: check buffer lengths in GobDecode 2022-07-29 14:06:18 +00:00
ftoa.go
gcd_test.go
hilbert_test.go
int.go math/big: fix typo of comment (`BytesScanner` to `ByteScanner`) 2021-06-29 16:57:13 +00:00
int_test.go
intconv.go
intconv_test.go
intmarsh.go
intmarsh_test.go
link_test.go math/big: don't require runtime.(*Frame).Next symbol present 2021-03-24 15:51:26 +00:00
nat.go math/big: move division into natdiv.go 2021-05-26 13:25:43 +00:00
nat_test.go math/big: add test for recursive division panic 2020-12-14 20:56:03 +00:00
natconv.go
natconv_test.go
natdiv.go math/big: comment division 2021-06-09 15:09:13 +00:00
prime.go
prime_test.go
rat.go
rat_test.go
ratconv.go [release-branch.go1.17] math/big: prevent overflow in (*Rat).SetString 2022-01-28 15:39:12 +00:00
ratconv_test.go [release-branch.go1.17] math/big: prevent overflow in (*Rat).SetString 2022-01-28 15:39:12 +00:00
ratmarsh.go [release-branch.go1.17] math/big: check buffer lengths in GobDecode 2022-07-29 14:06:18 +00:00
ratmarsh_test.go [release-branch.go1.17] math/big: check buffer lengths in GobDecode 2022-07-29 14:06:18 +00:00
roundingmode_string.go
sqrt.go
sqrt_test.go