remove the gofuzz build flag

This commit is contained in:
Marten Seemann 2020-08-06 12:52:21 +07:00
parent e848fc4f6a
commit ec0949c18e
5 changed files with 5 additions and 10 deletions

1
.gitignore vendored
View file

@ -11,6 +11,7 @@ fuzzing/*/crashers
fuzzing/*/sonarprofile fuzzing/*/sonarprofile
fuzzing/*/suppressions fuzzing/*/suppressions
fuzzing/*/corpus/ fuzzing/*/corpus/
fuzzing/*-fuzz.zip
!fuzzing/frames/single-frame* !fuzzing/frames/single-frame*
!fuzzing/frames/multiple-frame* !fuzzing/frames/multiple-frame*
!fuzzing/header/header* !fuzzing/header/header*

View file

@ -1,5 +1,3 @@
// +build !gofuzz
package main package main
import ( import (

View file

@ -1,5 +1,3 @@
// +build gofuzz
package frames package frames
import ( import (
@ -10,9 +8,10 @@ import (
"github.com/lucas-clemente/quic-go/internal/wire" "github.com/lucas-clemente/quic-go/internal/wire"
) )
const version = protocol.VersionTLS //go:generate go run ./cmd/corpus.go
func Fuzz(data []byte) int { func Fuzz(data []byte) int {
const version = protocol.VersionTLS
if len(data) < 1 { if len(data) < 1 {
return 0 return 0
} }

View file

@ -1,5 +1,3 @@
// +build !gofuzz
package main package main
import ( import (

View file

@ -1,5 +1,3 @@
// +build gofuzz
package header package header
import ( import (
@ -12,6 +10,7 @@ import (
const version = protocol.VersionTLS const version = protocol.VersionTLS
//go:generate go run ./cmd/corpus.go
func Fuzz(data []byte) int { func Fuzz(data []byte) int {
if len(data) < 1 { if len(data) < 1 {
return 0 return 0