Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 820 for msan (0.04 sec)

  1. src/internal/msan/msan.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 msan
    
    package msan
    
    import (
    	"unsafe"
    )
    
    const Enabled = true
    
    //go:linkname Read runtime.msanread
    func Read(addr unsafe.Pointer, sz uintptr)
    
    //go:linkname Write runtime.msanwrite
    func Write(addr unsafe.Pointer, sz uintptr)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 20:50:21 UTC 2024
    - 647 bytes
    - Viewed (0)
  2. src/runtime/msan/msan.go

    // Copyright 2015 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 msan && ((linux && (amd64 || arm64 || loong64)) || (freebsd && amd64))
    
    package msan
    
    /*
    #cgo CFLAGS: -fsanitize=memory
    #cgo LDFLAGS: -fsanitize=memory
    
    #include <stdint.h>
    #include <sanitizer/msan_interface.h>
    
    void __msan_read_go(void *addr, uintptr_t sz) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 729 bytes
    - Viewed (0)
  3. src/runtime/msan.go

    // Copyright 2015 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 msan
    
    package runtime
    
    import (
    	"unsafe"
    )
    
    // Public memory sanitizer API.
    
    func MSanRead(addr unsafe.Pointer, len int) {
    	msanread(addr, uintptr(len))
    }
    
    func MSanWrite(addr unsafe.Pointer, len int) {
    	msanwrite(addr, uintptr(len))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 20:50:21 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/testdata/msan.go

    Austin Clements <******@****.***> 1683216807 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 539 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/msan_test.go

    		wantErr     bool
    		experiments []string
    	}{
    		{src: "msan.go"},
    		{src: "msan2.go"},
    		{src: "msan2_cmsan.go"},
    		{src: "msan3.go"},
    		{src: "msan4.go"},
    		{src: "msan5.go"},
    		{src: "msan6.go"},
    		{src: "msan7.go"},
    		{src: "msan8.go"},
    		{src: "msan_fail.go", wantErr: true},
    		// This may not always fail specifically due to MSAN. It may sometimes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:30:58 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/install_msan_and_race_and_asan_require_cgo.txt

    [!GOOS:darwin] [race] ! stderr '-msan'
    
    [msan] ! go install -msan triv.go
    [msan] stderr '-msan requires cgo'
    [msan] ! stderr '-race'
    
    [asan] ! go install -asan triv.go
    [asan] stderr '(-asan: the version of $(go env CC) could not be parsed)|(-asan: C compiler is not gcc or clang)|(-asan is not supported with [A-Za-z]+ compiler (\d+)\.(\d+))|(-asan requires cgo)'
    [asan] ! stderr '-msan'
    
    -- triv.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 21:38:55 UTC 2022
    - 626 bytes
    - Viewed (0)
  7. src/runtime/msan0.go

    //go:build !msan
    
    // Dummy MSan support API, used when not built with -msan.
    
    package runtime
    
    import (
    	"unsafe"
    )
    
    const msanenabled = false
    
    // Because msanenabled is false, none of these functions should be called.
    
    func msanread(addr unsafe.Pointer, sz uintptr)     { throw("msan") }
    func msanwrite(addr unsafe.Pointer, sz uintptr)    { throw("msan") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 725 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testsanitizers/testdata/msan8.go

            arg->buf[0] = 0;
    }
    
    // msanGoWait will be called with all registers undefined as far as
    // msan is concerned. It just waits for a signal.
    // Because the registers are msan-undefined, the signal handler will
    // be invoked with all registers msan-undefined.
    __attribute__((noinline))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:30:58 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. src/internal/msan/doc.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package msan contains helper functions for manually instrumenting code
    // for the memory sanitizer.
    // This package exports the private msan routines in runtime unconditionally
    // but without the "msan" build tag they are no-ops.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 20:50:21 UTC 2024
    - 406 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testsanitizers/testdata/arena_fail.go

    	x := arena.New[[200]byte](a)
    	x[0] = 9
    	a.Free()
    	// Use after free.
    	//
    	// ASAN should detect this deterministically as Free
    	// should poison the arena memory.
    	//
    	// MSAN should detect that this access is to freed
    	// memory. This may crash with an "accessed freed arena
    	// memory" error before MSAN gets a chance, but if MSAN
    	// was not enabled there would be a chance that this
    	// could fail to crash on its own.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 700 bytes
    - Viewed (0)
Back to top