github.com/moontrade/wavm-go@v0.3.2-0.20220316110326-d229dd66ad65/unsafecgo/cgo/stub_libfuzzer.go (about)

     1  //go:build libfuzzer && (amd64 || arm64)
     2  // +build libfuzzer
     3  // +build amd64 arm64
     4  
     5  package cgo
     6  
     7  import _ "unsafe"
     8  
     9  // Call C function fn without going all the way through cgo.
    10  // Example: Call((*byte)(C.my_c_func), 0, 0)
    11  // 			void my_c_func(size_t arg0, size_t arg1) {
    12  //			}
    13  //go:noescape
    14  //go:nosplit
    15  //go:linkname CallLibFuzzer runtime.libfuzzerCall
    16  func CallLibFuzzer(fn *byte, arg0, arg1 uintptr)