1
0
mirror of https://github.com/golang/go synced 2024-11-15 00:30:31 -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 all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
err2.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
err3.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
issue7757.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
issue8442.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
issue11097a.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
issue11097b.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
issue13129.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
issue13423.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
issue13635.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
issue13830.go cmd/cgo: use function arg type for _cgoCheckPointerN function 2016-06-09 16:02:03 +00:00
issue14669.go cmd/cgo: remove -O options when generating compiler errors 2016-05-27 01:40:30 +00:00
issue16116.go cmd/cgo: error, not panic, if not enough arguments to function 2016-06-21 04:32:04 +00:00
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