mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
This patch updates all build tag constraints to add the new format, alongside the old one, to maintain backwards compatibility. This was done by using `go fmt`. See https://go.dev/doc/go1.17#gofmt and https://golang.org/design/draft-gobuild for more details.
24 lines
384 B
Go
24 lines
384 B
Go
// Fuzz testing for package aliases.
|
|
|
|
//go:build gofuzz
|
|
// +build gofuzz
|
|
|
|
package aliases
|
|
|
|
import "bytes"
|
|
|
|
func Fuzz(data []byte) int {
|
|
interesting := 0
|
|
aliases, _ := parseReader("domain", bytes.NewReader(data))
|
|
|
|
// Mark cases with actual aliases as more interesting.
|
|
for _, rcpts := range aliases {
|
|
if len(rcpts) > 0 {
|
|
interesting = 1
|
|
break
|
|
}
|
|
}
|
|
|
|
return interesting
|
|
}
|