1
0
mirror of https://github.com/golang/go synced 2024-11-24 07:50:13 -07:00
go/misc/cgo/errors
Ian Lance Taylor 27b68474ca cmd/cgo: run cgo pointer checks for pointer to union
If a C union type (or a C++ class type) can contain a pointer field,
then run the cgo checks on pointers to that type. This will test the
pointer as though it were an unsafe.Pointer, and will crash if it points
to Go memory that contains a pointer.

Fixes #15942.

Change-Id: Ic2d07ed9648d4b27078ae7683e26196bcbc59fc9
Reviewed-on: https://go-review.googlesource.com/33237
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-11-15 17:10:52 +00:00
..
err1.go
err2.go
err3.go
issue7757.go
issue8442.go
issue11097a.go
issue11097b.go
issue13129.go
issue13423.go
issue13635.go
issue13830.go
issue14669.go
issue16116.go
issue16591.go cmd/cgo: always use a function literal for pointer checking 2016-10-19 21:20:50 +00:00
malloc.go misc/cgo/errors: fix malloc test for dragonfly 2016-10-25 20:11:50 +00:00
ptr.go cmd/cgo: run cgo pointer checks for pointer to union 2016-11-15 17:10:52 +00:00
test.bash misc/cgo/errors: fix malloc test for dragonfly 2016-10-25 20:11:50 +00:00