go/misc/cgo/testsanitizers
Ian Lance Taylor e2f8766c30 cmd/cgo: mark C result as written for msan
Otherwise it is possible that msan will consider the C result to be
partially initialized, which may cause msan to think that the Go stack
is partially uninitialized. The compiler will never mark the stack as
initialized, so without this CL it is possible for stack addresses to
be passed to msanread, which will cause a false positive error from msan.

Fixes #26209

Change-Id: I43a502beefd626eb810ffd8753e269a55dff8248
Reviewed-on: https://go-review.googlesource.com/122196
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-05 05:15:15 +00:00
..
src cmd/cgo: mark C result as written for msan 2018-07-05 05:15:15 +00:00
cc_test.go all: use Fatalf instead of Fatal if format is given 2018-01-10 01:35:45 +00:00
cshared_test.go misc/cgo/testsanitizers: convert test.bash to Go 2017-08-17 15:05:08 +00:00
msan_test.go cmd/cgo: mark C result as written for msan 2018-07-05 05:15:15 +00:00
tsan_test.go cmd/dist: run msan test only in testsanitizer on arm64 2018-06-15 14:04:32 +00:00