Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for asan (0.14 sec)

  1. src/internal/asan/asan.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build asan
    
    package asan
    
    import (
    	"unsafe"
    )
    
    const Enabled = true
    
    //go:linkname Read runtime.asanread
    func Read(addr unsafe.Pointer, len uintptr)
    
    //go:linkname Write runtime.asanwrite
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 399 bytes
    - Viewed (0)
  2. src/runtime/asan/asan.go

    // https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/asan_init_version.h
    // This structure describes an instrumented global variable.
    //
    // TODO: If a later version of the ASan library changes __asan_global or __asan_global_source_location
    // structure, we need to make the same changes.
    struct _asan_global {
    	uintptr_t beg;
    	uintptr_t size;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 00:22:11 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. src/runtime/asan.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build asan
    
    package runtime
    
    import (
    	"unsafe"
    )
    
    // Public address sanitizer API.
    func ASanRead(addr unsafe.Pointer, len int) {
    	sp := getcallersp()
    	pc := getcallerpc()
    	doasanread(addr, uintptr(len), sp, pc)
    }
    
    func ASanWrite(addr unsafe.Pointer, len int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 20:39:58 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. src/runtime/asan0.go

    // license that can be found in the LICENSE file.
    
    //go:build !asan
    
    // Dummy ASan support API, used when not built with -asan.
    
    package runtime
    
    import (
    	"unsafe"
    )
    
    const asanenabled = false
    
    // Because asanenabled is false, none of these functions should be called.
    
    func asanread(addr unsafe.Pointer, sz uintptr)            { throw("asan") }
    func asanwrite(addr unsafe.Pointer, sz uintptr)           { throw("asan") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 760 bytes
    - Viewed (0)
  5. src/internal/asan/doc.go

    // license that can be found in the LICENSE file.
    
    // Package asan contains helper functions for manually instrumenting
    // code for the address sanitizer.
    // The runtime package intentionally exports these functions only in the
    // asan build; this package exports them unconditionally but without the
    // "asan" build tag they are no-ops.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 20:39:58 UTC 2024
    - 460 bytes
    - Viewed (0)
  6. src/internal/asan/noasan.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !asan
    
    package asan
    
    import (
    	"unsafe"
    )
    
    const Enabled = false
    
    func Read(addr unsafe.Pointer, len uintptr) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 333 bytes
    - Viewed (0)
  7. src/runtime/asan_amd64.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build asan
    
    #include "go_asm.h"
    #include "go_tls.h"
    #include "funcdata.h"
    #include "textflag.h"
    
    // This is like race_amd64.s, but for the asan calls.
    // See race_amd64.s for detailed comments.
    
    #ifdef GOOS_windows
    #define RARG0 CX
    #define RARG1 DX
    #define RARG2 R8
    #define RARG3 R9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 02:20:04 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    		c = tconv(c, types.NewPtr(defStringstruct))
    		c = ir.NewSelectorExpr(base.Pos, ir.ODOT, c, lname("data"))
    		setField("moduleName", c, i)
    		// Assign asanL[i].filename, asanL[i].line, asanL[i].column
    		// and assign globals[i].location = uintptr(unsafe.Pointer(&asanL[i]))
    		asanLi := ir.NewIndexExpr(base.Pos, asanlocation, ir.NewInt(base.Pos, int64(i)))
    		filename := ir.NewString(base.Pos, base.Ctxt.PosTable.Pos(n.Pos()).Filename()+"\000")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  9. src/runtime/asan_arm64.s

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build asan
    
    #include "go_asm.h"
    #include "textflag.h"
    
    #define RARG0 R0
    #define RARG1 R1
    #define RARG2 R2
    #define RARG3 R3
    #define FARG R4
    
    // Called from instrumented code.
    // func runtimeĀ·doasanread(addr unsafe.Pointer, sz, sp, pc uintptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 02:20:04 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. src/cmd/go/scriptconds_test.go

    		return script.OnceCondition(summary, func() (bool, error) { return f(), nil })
    	}
    
    	add("abscc", script.Condition("default $CC path is absolute and exists", defaultCCIsAbsolute))
    	add("asan", sysCondition("-asan", platform.ASanSupported, true))
    	add("buildmode", script.PrefixCondition("go supports -buildmode=<suffix>", hasBuildmode))
    	add("case-sensitive", script.OnceCondition("$WORK filesystem is case-sensitive", isCaseSensitive))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top