Time to start fuzzing

This commit is contained in:
Frank Denis 2021-06-11 22:13:58 +02:00
parent 1b03ac817e
commit ccddb18424
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
// +build gofuzzbeta
package main
import (
"encoding/hex"
"testing"
)
func FuzzParseODoHTargetConfigs(f *testing.F) {
configs_hex := "0020000100010020aacc53b3df0c6eb2d7d5ce4ddf399593376c9903ba6a52a52c3a2340f97bb764"
configs, _ := hex.DecodeString(configs_hex)
f.Add(configs)
f.Fuzz(func(t *testing.T, configs []byte) {
if _, err := parseODoHTargetConfigs(configs); err != nil {
t.Skip()
}
})
}