Source file src/syscall/asan.go
1 // Copyright 2021 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build asan 6 7 package syscall 8 9 import ( 10 "runtime" 11 "unsafe" 12 ) 13 14 const asanenabled = true 15 16 func asanRead(addr unsafe.Pointer, len int) { 17 runtime.ASanRead(addr, len) 18 } 19 20 func asanWrite(addr unsafe.Pointer, len int) { 21 runtime.ASanWrite(addr, len) 22 } 23