Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for doasanwrite (0.21 sec)

  1. src/runtime/asan.go

    	pc := getcallerpc()
    	doasanread(addr, sz, sp, pc)
    }
    
    //go:linkname asanwrite
    //go:nosplit
    func asanwrite(addr unsafe.Pointer, sz uintptr) {
    	sp := getcallersp()
    	pc := getcallerpc()
    	doasanwrite(addr, sz, sp, pc)
    }
    
    //go:noescape
    func doasanread(addr unsafe.Pointer, sz, sp, pc uintptr)
    
    //go:noescape
    func doasanwrite(addr unsafe.Pointer, sz, sp, pc uintptr)
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 20:39:58 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testsanitizers/testdata/asan5_fail.go

    func main() {
    	p := new([1024 * 1000]int)
    	p[0] = 10
    	r := bar(&p[1024*1000-1])
    	fmt.Printf("r value is %d", r)
    }
    
    func bar(a *int) int {
    	p := unsafe.Add(unsafe.Pointer(a), 2*unsafe.Sizeof(int(1)))
    	runtime.ASanWrite(p, 8) // BOOM
    	*((*int)(p)) = 10
    	return *((*int)(p))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 328 bytes
    - Viewed (0)
  3. src/internal/asan/asan.go

    //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)
  4. src/runtime/asan0.go

    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") }
    func asanunpoison(addr unsafe.Pointer, sz uintptr)        { throw("asan") }
    func asanpoison(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/cmd/compile/internal/ir/symtab.go

    var Syms symsStruct
    
    type symsStruct struct {
    	AssertE2I         *obj.LSym
    	AssertE2I2        *obj.LSym
    	AssertI2I         *obj.LSym
    	AssertI2I2        *obj.LSym
    	Asanread          *obj.LSym
    	Asanwrite         *obj.LSym
    	CgoCheckMemmove   *obj.LSym
    	CgoCheckPtrWrite  *obj.LSym
    	CheckPtrAlignment *obj.LSym
    	Deferproc         *obj.LSym
    	Deferprocat       *obj.LSym
    	DeferprocStack    *obj.LSym
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:26 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. src/runtime/cgo_sigaction.go

    	// Mark the input as having been written before the call
    	// and the output as read after.
    	if msanenabled && new != nil {
    		msanwrite(unsafe.Pointer(new), unsafe.Sizeof(*new))
    	}
    	if asanenabled && new != nil {
    		asanwrite(unsafe.Pointer(new), unsafe.Sizeof(*new))
    	}
    	if _cgo_sigaction == nil || inForkedChild {
    		sysSigaction(sig, new, old)
    	} else {
    		// We need to call _cgo_sigaction, which means we need a big enough stack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  7. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.racewrite", 1},
    	{"runtime.racereadrange", 1},
    	{"runtime.racewriterange", 1},
    	{"runtime.msanread", 1},
    	{"runtime.msanwrite", 1},
    	{"runtime.msanmove", 1},
    	{"runtime.asanread", 1},
    	{"runtime.asanwrite", 1},
    	{"runtime.checkptrAlignment", 1},
    	{"runtime.checkptrArithmetic", 1},
    	{"runtime.libfuzzerTraceCmp1", 1},
    	{"runtime.libfuzzerTraceCmp2", 1},
    	{"runtime.libfuzzerTraceCmp4", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. src/runtime/select.go

    		} else if cas.elem != nil {
    			msanwrite(cas.elem, c.elemtype.Size_)
    		}
    	}
    	if asanenabled {
    		if casi < nsends {
    			asanread(cas.elem, c.elemtype.Size_)
    		} else if cas.elem != nil {
    			asanwrite(cas.elem, c.elemtype.Size_)
    		}
    	}
    
    	selunlock(scases, lockorder)
    	goto retc
    
    bufrecv:
    	// can receive from buffer
    	if raceenabled {
    		if cas.elem != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. src/runtime/mbarrier.go

    		raceReadObjectPC(typ, src, getcallerpc(), abi.FuncPCABIInternal(reflect_typedmemmove))
    	}
    	if msanenabled {
    		msanwrite(dst, typ.Size_)
    		msanread(src, typ.Size_)
    	}
    	if asanenabled {
    		asanwrite(dst, typ.Size_)
    		asanread(src, typ.Size_)
    	}
    	typedmemmove(typ, dst, src)
    }
    
    //go:linkname reflectlite_typedmemmove internal/reflectlite.typedmemmove
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    // memory sanitizer
    func msanread(addr, size uintptr)
    func msanwrite(addr, size uintptr)
    func msanmove(dst, src, size uintptr)
    
    // address sanitizer
    func asanread(addr, size uintptr)
    func asanwrite(addr, size uintptr)
    
    func checkptrAlignment(unsafe.Pointer, *byte, uintptr)
    func checkptrArithmetic(unsafe.Pointer, []unsafe.Pointer)
    
    func libfuzzerTraceCmp1(uint8, uint8, uint)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top