1
0
mirror of https://github.com/golang/go synced 2024-11-23 18:10:04 -07:00
go/misc/cgo/testsanitizers/testdata
Cherry Mui 9fe17a0340 cmd/link: don't reset variable size when handling -X flag
The linker's -X flag allows setting/changing a string variable's
content at link time. Currently it resets its size then write a
new string header pointing to the new content. This mostly works.
But under ASAN build the string variable can have larger size
than the usual 2 words, due to the red zone. Resetting the size
can cause the variable to "overlap" (in ASAN's view) with other
variables. Don't reset the size.

Fixes #56175.

Change-Id: Ib364208201a7a2fd7f44f9b1797834198736a405
Reviewed-on: https://go-review.googlesource.com/c/go/+/442635
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
2022-10-13 18:47:30 +00:00
..
asan_linkerx cmd/link: don't reset variable size when handling -X flag 2022-10-13 18:47:30 +00:00
arena_fail.go misc/cgo/test: add asan and msan arena tests 2022-10-12 20:44:43 +00:00
asan1_fail.go runtime: fix the issue that the -asan option cannot print where the error occurred 2021-12-29 04:10:07 +00:00
asan2_fail.go runtime: fix the issue that the -asan option cannot print where the error occurred 2021-12-29 04:10:07 +00:00
asan3_fail.go cmd/dist: add asan tests in misc/cgo/testsanitizers package 2021-11-02 06:21:44 +00:00
asan4_fail.go cmd/dist: add asan tests in misc/cgo/testsanitizers package 2021-11-02 06:21:44 +00:00
asan5_fail.go src/runtime: mark asanread and asanwrite functions as NOSPLIT 2022-01-05 09:50:29 +00:00
asan_global1_fail.go cmd/dist: add asan tests for global objects in testsanitizers package 2022-05-05 04:05:43 +00:00
asan_global2_fail.go cmd/dist: add asan tests for global objects in testsanitizers package 2022-05-05 04:05:43 +00:00
asan_global3_fail.go cmd/dist: add asan tests for global objects in testsanitizers package 2022-05-05 04:05:43 +00:00
asan_global4_fail.go cmd/dist: add asan tests for global objects in testsanitizers package 2022-05-05 04:05:43 +00:00
asan_global5.go cmd/dist: add asan tests for global objects in testsanitizers package 2022-05-05 04:05:43 +00:00
asan_unsafe_fail1.go cmd/compile: set conversions to unsafe.Pointer as an escaping operation when -asan is enabled 2022-03-17 08:43:51 +00:00
asan_unsafe_fail2.go cmd/compile: set conversions to unsafe.Pointer as an escaping operation when -asan is enabled 2022-03-17 08:43:51 +00:00
asan_unsafe_fail3.go cmd/compile: set conversions to unsafe.Pointer as an escaping operation when -asan is enabled 2022-03-17 08:43:51 +00:00
asan_useAfterReturn.go cmd/dist: add asan tests in misc/cgo/testsanitizers package 2021-11-02 06:21:44 +00:00
msan2_cmsan.go
msan2.go
msan3.go
msan4.go
msan5.go
msan6.go
msan7.go
msan8.go runtime/cgo: when using msan explicitly unpoison cgoCallers 2021-08-09 14:48:39 +00:00
msan_fail.go
msan_shared.go
msan.go
tsan2.go
tsan3.go
tsan4.go
tsan5.go
tsan6.go
tsan7.go
tsan8.go
tsan9.go all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
tsan10.go
tsan11.go misc/cgo/testsanitizers: buffer the signal channel in TestTSAN/tsan11 2022-05-27 15:58:52 +00:00
tsan12.go misc/cgo/testsanitizers: use buffered channel in tsan12.go 2022-05-24 14:30:46 +00:00
tsan_shared.go
tsan.go