1
0
mirror of https://github.com/golang/go synced 2024-11-23 08:40:08 -07:00
go/misc/cgo/errors
Ian Lance Taylor 9dcc58c3d1 cmd/cgo, runtime: add checks for passing pointers from Go to C
This implements part of the proposal in issue 12416 by adding dynamic
checks for passing pointers from Go to C.  This code is intended to be
on at all times.  It does not try to catch every case.  It does not
implement checks on calling Go functions from C.

The new cgo checks may be disabled using GODEBUG=cgocheck=0.

Update #12416.

Change-Id: I48de130e7e2e83fb99a1e176b2c856be38a4d3c8
Reviewed-on: https://go-review.googlesource.com/16003
Reviewed-by: Russ Cox <rsc@golang.org>
2015-11-10 22:22:10 +00:00
..
err1.go cmd/cgo: fix line number in an error message 2013-10-18 16:52:44 -04:00
err2.go cmd/cgo: fix line number in an error message 2013-10-18 16:52:44 -04:00
err3.go cmd/cgo: enforce typing of 0-sized types 2014-03-27 20:23:16 +00:00
issue7757.go cmd/cgo: make C function pointers non-assignable 2014-08-12 12:55:12 -07:00
issue8442.go cmd/cgo: check for compiler errors in the C preamble 2014-08-14 09:21:58 -07:00
issue11097a.go cmd/cgo: fix panic on references to non-existing C types 2015-10-05 22:37:07 +00:00
issue11097b.go cmd/cgo: fix panic on references to non-existing C types 2015-10-05 22:37:07 +00:00
ptr.go cmd/cgo, runtime: add checks for passing pointers from Go to C 2015-11-10 22:22:10 +00:00
test.bash cmd/cgo, runtime: add checks for passing pointers from Go to C 2015-11-10 22:22:10 +00:00