4 // Fuzzing driver for https://github.com/dvyukov/go-fuzz.
5 // go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
6 // $GOPATH/bin/go-fuzz-build
9 // Related link: https://blog.cloudflare.com/dns-parser-meet-go-fuzzer/
13 func Fuzz(data
[]byte) int {
14 msg
, err
:= MessageFromWireFormat(data
)
18 _
, err
= msg
.WireFormat()
22 return 1 // prioritize this input