]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: add asan tests in misc/cgo/testsanitizers package
authorfanzha02 <fannie.zhang@arm.com>
Tue, 5 Jan 2021 09:52:43 +0000 (17:52 +0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 2 Nov 2021 06:21:44 +0000 (06:21 +0000)
commit3ee426aefa519b0b2f814a834f5026481c187946
treeba1380171fd7aba414d632cd2af725736e05705b
parentc1ea3395a6fdb2b66e6f445358ca40b78882adce
cmd/dist: add asan tests in misc/cgo/testsanitizers package

Add asan tests to check the use of Go with -asan option.

Currenly, the address sanitizer in Go only checks for error
memory access to heap objects.

TODO: Enable check for error memory access to global objects.

Updates #44853.

Change-Id: I83579f229f117b5684a369fc8f365f4dea140648
Reviewed-on: https://go-review.googlesource.com/c/go/+/298615
Trust: fannie zhang <Fannie.Zhang@arm.com>
Run-TryBot: fannie zhang <Fannie.Zhang@arm.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testsanitizers/asan_test.go [new file with mode: 0644]
misc/cgo/testsanitizers/cc_test.go
misc/cgo/testsanitizers/testdata/asan1_fail.go [new file with mode: 0644]
misc/cgo/testsanitizers/testdata/asan2_fail.go [new file with mode: 0644]
misc/cgo/testsanitizers/testdata/asan3_fail.go [new file with mode: 0644]
misc/cgo/testsanitizers/testdata/asan4_fail.go [new file with mode: 0644]
misc/cgo/testsanitizers/testdata/asan_useAfterReturn.go [new file with mode: 0644]
src/cmd/internal/sys/supported.go