]> Cypherpunks.ru repositories - gostls13.git/blobdiff - misc/cgo/testsanitizers/testdata/libfuzzer2.go
misc/cgo: move easy tests to cmd/cgo/internal
[gostls13.git] / misc / cgo / testsanitizers / testdata / libfuzzer2.go
diff --git a/misc/cgo/testsanitizers/testdata/libfuzzer2.go b/misc/cgo/testsanitizers/testdata/libfuzzer2.go
deleted file mode 100644 (file)
index c7a4325..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-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() {}