aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/export_linux_test.go
diff options
context:
space:
mode:
authorfanzha02 <fannie.zhang@arm.com>2021-01-05 17:52:43 +0800
committerIan Lance Taylor <iant@golang.org>2021-11-02 05:35:11 +0000
commit6f327f7b889b81549d551ce6963067267578bd70 (patch)
tree8a54f62ac50b787f86ad24892e32e854fd57f171 /src/runtime/export_linux_test.go
parent6f1e9a9c21aec8531db40dbf61ad10fe77d7bee5 (diff)
downloadgo-6f327f7b889b81549d551ce6963067267578bd70.tar.xz
runtime, syscall: add calls to asan functions
Add explicit address sanitizer instrumentation to the runtime and syscall packages. The compiler does not instrument the runtime package. It does instrument the syscall package, but we need to add a couple of cases that it can't see. Refer to the implementation of the asan malloc runtime library, this patch also allocates extra memory as the redzone, around the returned memory region, and marks the redzone as unaddressable to detect the overflows or underflows. Updates #44853. Change-Id: I2753d1cc1296935a66bf521e31ce91e35fcdf798 Reviewed-on: https://go-review.googlesource.com/c/go/+/298614 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: fannie zhang <Fannie.Zhang@arm.com>
Diffstat (limited to 'src/runtime/export_linux_test.go')
0 files changed, 0 insertions, 0 deletions