1
0
mirror of https://github.com/golang/go synced 2024-11-24 00:20:14 -07:00
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
cshared_test.go
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