mirror of
https://github.com/golang/go
synced 2024-11-06 23:26:12 -07:00
5fd0ed7aaf
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. CustomizedGitHooks: yes Change-Id: I4e7fe46a3ce01f0d219e6a67dc50f4aff7d2ad87 Reviewed-on: https://go-review.googlesource.com/c/go/+/325629 Trust: Fannie Zhang <Fannie.Zhang@arm.com> Reviewed-by: Keith Randall <khr@golang.org> |
||
---|---|---|
.. | ||
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 |