]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/dist: add asan tests for global objects in testsanitizers package
authorfanzha02 <fannie.zhang@arm.com>
Tue, 11 May 2021 03:44:24 +0000 (11:44 +0800)
committerFannie Zhang <Fannie.Zhang@arm.com>
Thu, 5 May 2022 04:05:43 +0000 (04:05 +0000)
commitd544591d72ade40d34d7a8ee70e7239ae63b4116
treee98bdd38c349e0dacd9426386bc653e1b6efc93f
parent0bd7408f901f33c6f0a5a542f8de6bf17c901e79
cmd/dist: add asan tests for global objects in testsanitizers package

Add tests to test that -asan in Go can detect the error memory access
to the global objects.

Updates #44853.

Change-Id: I612a048460b497d18389160b66e6f818342d3941
Reviewed-on: https://go-review.googlesource.com/c/go/+/321716
Run-TryBot: Fannie Zhang <Fannie.Zhang@arm.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
misc/cgo/testsanitizers/asan_test.go
misc/cgo/testsanitizers/testdata/asan_global1_fail.go [new file with mode: 0644]
misc/cgo/testsanitizers/testdata/asan_global2_fail.go [new file with mode: 0644]
misc/cgo/testsanitizers/testdata/asan_global3_fail.go [new file with mode: 0644]
misc/cgo/testsanitizers/testdata/asan_global4_fail.go [new file with mode: 0644]
misc/cgo/testsanitizers/testdata/asan_global5.go [new file with mode: 0644]