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/*/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*
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// +build !gofuzz
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// +build !gofuzz
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user