mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-20 23:46:23 +01:00
19 lines
192 B
Go
19 lines
192 B
Go
|
//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
|
||
|
}
|