mirror of
https://github.com/golang/go
synced 2024-11-23 18:10:04 -07:00
9fe17a0340
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> |
||
---|---|---|
.. | ||
asan_linkerx | ||
arena_fail.go | ||
asan1_fail.go | ||
asan2_fail.go | ||
asan3_fail.go | ||
asan4_fail.go | ||
asan5_fail.go | ||
asan_global1_fail.go | ||
asan_global2_fail.go | ||
asan_global3_fail.go | ||
asan_global4_fail.go | ||
asan_global5.go | ||
asan_unsafe_fail1.go | ||
asan_unsafe_fail2.go | ||
asan_unsafe_fail3.go | ||
asan_useAfterReturn.go | ||
msan2_cmsan.go | ||
msan2.go | ||
msan3.go | ||
msan4.go | ||
msan5.go | ||
msan6.go | ||
msan7.go | ||
msan8.go | ||
msan_fail.go | ||
msan_shared.go | ||
msan.go | ||
tsan2.go | ||
tsan3.go | ||
tsan4.go | ||
tsan5.go | ||
tsan6.go | ||
tsan7.go | ||
tsan8.go | ||
tsan9.go | ||
tsan10.go | ||
tsan11.go | ||
tsan12.go | ||
tsan_shared.go | ||
tsan.go |