mirror of
https://github.com/golang/go
synced 2024-11-17 23:04:56 -07:00
c379c3d58d
When ASan is enabled, treat conversions to unsafe.Pointer as an escaping operation. In this way, all pointer operations on the stack objects will become operations on the escaped heap objects. As we've already supported ASan detection of error memory accesses to heap objects. With this trick, we can use -asan option to report errors on bad stack operations. Add test cases. Updates #44853. Change-Id: I6281e77f6ba581d7008d610f0b24316078b6e746 Reviewed-on: https://go-review.googlesource.com/c/go/+/393315 Trust: Fannie Zhang <Fannie.Zhang@arm.com> Run-TryBot: Fannie Zhang <Fannie.Zhang@arm.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Eric Fang <eric.fang@arm.com> |
||
---|---|---|
.. | ||
asan1_fail.go | ||
asan2_fail.go | ||
asan3_fail.go | ||
asan4_fail.go | ||
asan5_fail.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 |