Sign in
go
/
go
/
061181621641856a90bf555e702a70cac59cb584
/
.
/
src
/
cmd
/
cgo
/
internal
/
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() {}