go/src/cmd/compile/internal
Robert Findley 0981724eae go/types: check for non-negative index in tparamIndex
There are code paths (particularly error formatting or tracing) that
call tparamIndex before the type parameter is bound. We cannot rely on
the index being non-negative.

Change-Id: Ibad91c691b4f319b0c7b465a750b679a8a7af6a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/364715
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
2021-11-17 18:14:41 +00:00
..
abi cmd/compile: use canonical stringslice/ representations in abiutils 2021-11-11 11:47:33 +00:00
amd64 cmd/compile: use MOVBE instruction for GOAMD64>=v3 2021-10-19 16:18:56 +00:00
arm cmd/compile: check out-of-range shifts on ARM and ARM64 2021-09-22 18:32:21 +00:00
arm64 cmd/compile: intrinsify publicationBarrier 2021-10-04 22:00:19 +00:00
base cmd/{asm,compile,internal/obj}: add "maymorestack" support 2021-11-05 00:52:06 +00:00
bitvec cmd/compile, runtime: track argument stack slot liveness 2021-10-27 20:27:02 +00:00
deadcode
devirtualize
dwarfgen cmd/compile: include register-resident output params in DWARF-gen 2021-11-11 11:47:18 +00:00
escape cmd/compile: explain special treatment when rewrite slice literal args 2021-11-02 16:19:52 +00:00
gc cmd/compile: make -memprofilerate work 2021-10-30 18:30:34 +00:00
importer go/types, types2: improve error messages referencing any 2021-11-16 15:59:43 +00:00
inline cmd/compile: gracefully fallback when inline bodies are missing 2021-11-05 07:00:05 +00:00
ir cmd/compile: fix TypeDefn to deal with node with no Ntype set 2021-11-04 20:24:01 +00:00
liveness cmd/compile, runtime: track argument stack slot liveness 2021-10-27 20:27:02 +00:00
logopt
mips
mips64
noder go/types, types2: improve error messages referencing any 2021-11-16 15:59:43 +00:00
objw
pkginit
ppc64 cmd/compile: add prefetch intrinsic support on PPC64 2021-10-05 21:25:51 +00:00
reflectdata cmd/compile: emit definition of 'any' only if generic enabled 2021-11-17 04:55:12 +00:00
riscv64
s390x
ssa cmd/compile, runtime: mark R1 as clobbered for write barrier call 2021-11-15 15:42:24 +00:00
ssagen cmd/compile: include register-resident output params in DWARF-gen 2021-11-11 11:47:18 +00:00
staticdata cmd/compile: update comments with ABI aliases/wrappers 2021-09-22 19:37:42 +00:00
staticinit
syntax cmd/compile/internal/syntax: better error message when type parameters are not permitted 2021-11-04 00:29:42 +00:00
test cmd/compile/internal/typecheck: record whether an interface is implicit 2021-10-25 17:18:40 +00:00
typebits
typecheck cmd/compile: don't do Resolve on OKEY identifiers during import 2021-11-10 21:53:03 +00:00
types cmd/compile: ensure we replace package placeholder in type names 2021-11-14 17:38:42 +00:00
types2 go/types: check for non-negative index in tparamIndex 2021-11-17 18:14:41 +00:00
walk cmd/compile,cmd/link: introduce generic interface call relocations 2021-10-25 20:39:17 +00:00
wasm
x86