]> Cypherpunks repositories - gostls13.git/commit
plugin: properly handle recursively defined types
authorTodd Neal <todd@tneal.org>
Tue, 11 Apr 2017 02:33:27 +0000 (21:33 -0500)
committerTodd Neal <todd@tneal.org>
Wed, 12 Apr 2017 12:46:07 +0000 (12:46 +0000)
commite49627d355820684527ea7e50522087e1234fa16
treee9f4411b0a954473d00c3fee487c49a60a9de856
parent758d078fd5ab423d00f5a46028139c1d13983120
plugin: properly handle recursively defined types

Prevent a crash if the same type in two plugins had a recursive
definition, either by referring to a pointer to itself or a map existing
with the type as a value type (which creates a recursive definition
through the overflow bucket type).

Fixes #19258

Change-Id: Iac1cbda4c5b6e8edd5e6859a4d5da3bad539a9c6
Reviewed-on: https://go-review.googlesource.com/40292
Run-TryBot: Todd Neal <todd@tneal.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
misc/cgo/testplugin/unnamed1.go
misc/cgo/testplugin/unnamed2.go
src/runtime/type.go