]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add -msan option
authorIan Lance Taylor <iant@golang.org>
Wed, 21 Oct 2015 19:33:56 +0000 (12:33 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 21 Oct 2015 20:30:23 +0000 (20:30 +0000)
commite7ee268292a814fed6ebe7c81c808581f80d3416
treeaf879c34849734d96debd5768ff16a258ad12f86
parentd96b4c494fcf915a49b004d59018c46deaa069bb
cmd/go: add -msan option

The -msan option compiles Go code to use the memory sanitizer.  This is
intended for use when linking with C/C++ code compiled with
-fsanitize=memory.  When memory blocks are passed back and forth between
C/C++ and Go, code in both languages will agree as to whether the memory
is correctly initialized or not, and will report errors for any use of
uninitialized memory.

Change-Id: I2dbdbd26951eacb7d84063cfc7297f88ffadd70c
Reviewed-on: https://go-review.googlesource.com/16169
Reviewed-by: David Crawshaw <crawshaw@golang.org>
misc/cgo/testsanitizers/msan.go
misc/cgo/testsanitizers/msan2.go [new file with mode: 0644]
misc/cgo/testsanitizers/msan_fail.go [new file with mode: 0644]
misc/cgo/testsanitizers/test.bash
src/cmd/go/alldocs.go
src/cmd/go/build.go
src/cmd/go/pkg.go
src/cmd/go/run.go
src/cmd/go/test.go