You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
192 B
Go
19 lines
192 B
Go
2 years ago
|
//go:build gofuzz
|
||
|
// +build gofuzz
|
||
|
|
||
|
package ini
|
||
|
|
||
|
import (
|
||
|
"bytes"
|
||
|
)
|
||
|
|
||
|
func Fuzz(data []byte) int {
|
||
|
b := bytes.NewReader(data)
|
||
|
|
||
|
if _, err := Parse(b); err != nil {
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
return 1
|
||
|
}
|