1
0
mirror of https://github.com/golang/go synced 2024-11-27 02:51:24 -07:00
go/misc/cgo/testplugin
Todd Neal e49627d355 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>
2017-04-12 12:46:07 +00:00
..
altpath/src cmd/link, runtime, plugin: versioning 2016-11-15 16:14:27 +00:00
src runtime: for plugins, don't add duplicate itabs 2017-01-17 22:37:19 +00:00
test.bash runtime: for plugins, don't add duplicate itabs 2017-01-17 22:37:19 +00:00
unnamed1.go plugin: properly handle recursively defined types 2017-04-12 12:46:07 +00:00
unnamed2.go plugin: properly handle recursively defined types 2017-04-12 12:46:07 +00:00