diff options
| author | Robert Findley <rfindley@google.com> | 2021-11-17 09:38:16 -0500 |
|---|---|---|
| committer | Robert Findley <rfindley@google.com> | 2021-11-17 18:14:41 +0000 |
| commit | 0981724eaeb9e3a4553473072c38cf11822bc7fd (patch) | |
| tree | 7a6370aecd593b704cf8d0afc83c66ddbba85191 /src/runtime/checkptr_test.go | |
| parent | 9bdbed1d963a840d8c23640bbd20bd4cb9776859 (diff) | |
| download | go-0981724eaeb9e3a4553473072c38cf11822bc7fd.tar.xz | |
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>
Diffstat (limited to 'src/runtime/checkptr_test.go')
0 files changed, 0 insertions, 0 deletions
