forked from mirror/client_golang
commit
b09846cc89
12
text/fuzz.go
12
text/fuzz.go
|
@ -25,12 +25,12 @@ import "bytes"
|
|||
//
|
||||
// Further input samples should go in the folder fuzz/corpus.
|
||||
func Fuzz(in []byte) int {
|
||||
parser := Parser{}
|
||||
_, err := parser.TextToMetricFamilies(bytes.NewReader(in))
|
||||
parser := Parser{}
|
||||
_, err := parser.TextToMetricFamilies(bytes.NewReader(in))
|
||||
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
|
||||
return 1
|
||||
return 1
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue