]> Cypherpunks repositories - gostls13.git/commit
internal/asan: add new package
authorMauri de Souza Meneguzzo <mauri870@gmail.com>
Wed, 7 Feb 2024 22:51:00 +0000 (22:51 +0000)
committerCherry Mui <cherryyz@google.com>
Tue, 13 Feb 2024 20:39:58 +0000 (20:39 +0000)
commitdb99b9b17c124ccd18766999d3f1302e5e878f38
treeb8e4f2a1bd76b2c0e16a9f460d01937043d53db3
parent1b541502c2aaaf3be073e79a9ea211a147c2e006
internal/asan: add new package

The internal/asan package contains helper functions for manually
instrumenting code for the address sanitizer. It reexports the asan
routines in runtime unconditionally, making the functions a no-op if the
build flag "asan" is not present.

For #64611

Change-Id: Ie79e698aea7a6d969afd2a5f008c084c9545b1a5
GitHub-Last-Rev: e658670c146adb5a5496afe4a2425dd5291fd7ac
GitHub-Pull-Request: golang/go#64635
Reviewed-on: https://go-review.googlesource.com/c/go/+/548695
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/go/build/deps_test.go
src/internal/asan/asan.go [new file with mode: 0644]
src/internal/asan/doc.go [new file with mode: 0644]
src/internal/asan/noasan.go [new file with mode: 0644]
src/runtime/asan.go