Sign in
go
/
go
/
cf5dbd44591ca885fe8deb14c1500447c915e6b8
/
.
/
misc
/
cgo
/
testsanitizers
/
testdata
/
libfuzzer2.go
blob: c7a43259768574af6d00368632777d82703de13d [
file
] [
log
] [
blame
]
package main
import "C"
import "unsafe"
//export FuzzMe
func FuzzMe(p unsafe.Pointer, sz C.int) {
b := C.GoBytes(p, sz)
b = b[3:]
if len(b) >= 4 && b[0] == 'f' && b[1] == 'u' && b[2] == 'z' && b[3] == 'z' {
panic("found it")
}
}
func main() {}