go/src/reflect
Paschalis Tsilias d7cc2f1d7c reflect: panic if ArrayOf is called with negative length
Since we cannot change the signature of reflect.ArrayOf to return an
error, we panic instead of producing a wrong result.

Fixes #43603

Change-Id: I23915df8d190f35af4d00ab86768868cd621e839
Reviewed-on: https://go-review.googlesource.com/c/go/+/284136
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Go Bot <gobot@golang.org>
2021-03-15 23:49:28 +00:00
..
abi.go reflect: include the alignment of zero-sized types in stack offsets 2021-03-05 15:34:32 +00:00
all_test.go reflect: panic if ArrayOf is called with negative length 2021-03-15 23:49:28 +00:00
asm_386.s
asm_amd64.s reflect,runtime: use internal ABI for selected ASM routines, attempt 2 2020-10-30 17:41:35 +00:00
asm_arm.s
asm_arm64.s
asm_mips64x.s
asm_mipsx.s
asm_ppc64x.s
asm_riscv64.s
asm_s390x.s
asm_wasm.s
deepequal.go cmd/compile, runtime: store pointers to go:notinheap types indirectly 2020-10-27 21:29:13 +00:00
example_test.go
export_test.go [dev.regabi] reflect: support for register ABI on amd64 for reflect.(Value).Call 2021-02-16 15:51:50 +00:00
makefunc.go [dev.regabi] reflect: support for register ABI on amd64 for reflect.(Value).Call 2021-02-16 15:51:50 +00:00
set_test.go
swapper.go
tostring_test.go
type.go reflect: panic if ArrayOf is called with negative length 2021-03-15 23:49:28 +00:00
value.go [dev.regabi] reflect: support for register ABI on amd64 for reflect.(Value).Call 2021-02-16 15:51:50 +00:00
visiblefields.go reflect: add VisibleFields function 2021-03-05 23:47:39 +00:00
visiblefields_test.go reflect: add VisibleFields function 2021-03-05 23:47:39 +00:00