forked from quic-go/quic-go
remove the gofuzz build flag
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,6 +11,7 @@ fuzzing/*/crashers
|
||||
fuzzing/*/sonarprofile
|
||||
fuzzing/*/suppressions
|
||||
fuzzing/*/corpus/
|
||||
fuzzing/*-fuzz.zip
|
||||
!fuzzing/frames/single-frame*
|
||||
!fuzzing/frames/multiple-frame*
|
||||
!fuzzing/header/header*
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// +build !gofuzz
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -1,5 +1,3 @@
|
||||
// +build gofuzz
|
||||
|
||||
package frames
|
||||
|
||||
import (
|
||||
@@ -10,9 +8,10 @@ import (
|
||||
"github.com/lucas-clemente/quic-go/internal/wire"
|
||||
)
|
||||
|
||||
//go:generate go run ./cmd/corpus.go
|
||||
func Fuzz(data []byte) int {
|
||||
const version = protocol.VersionTLS
|
||||
|
||||
func Fuzz(data []byte) int {
|
||||
if len(data) < 1 {
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// +build !gofuzz
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -1,5 +1,3 @@
|
||||
// +build gofuzz
|
||||
|
||||
package header
|
||||
|
||||
import (
|
||||
@@ -12,6 +10,7 @@ import (
|
||||
|
||||
const version = protocol.VersionTLS
|
||||
|
||||
//go:generate go run ./cmd/corpus.go
|
||||
func Fuzz(data []byte) int {
|
||||
if len(data) < 1 {
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user