2018-06-06 16:29:33 +00:00
|
|
|
// +build ignore
|
|
|
|
|
2018-06-06 14:42:39 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"git.thisco.de/vbatts/fuzz-walker/walker"
|
2018-06-06 16:29:33 +00:00
|
|
|
"git.thisco.de/vbatts/fuzz-walker/walker/walkers/writeBytesFuzz"
|
2018-06-06 14:42:39 +00:00
|
|
|
)
|
|
|
|
|
2018-06-06 15:21:08 +00:00
|
|
|
// NewFuzzer creates the fuzzer for this plugin
|
2018-06-06 14:42:39 +00:00
|
|
|
func NewFuzzer() (walker.Fuzzer, error) {
|
|
|
|
return &myFuzzer{}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type myFuzzer struct{}
|
|
|
|
|
|
|
|
func (mf myFuzzer) Name() string {
|
2018-06-06 16:29:33 +00:00
|
|
|
return writeBytesFuzz.Name
|
2018-06-06 14:42:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (mf myFuzzer) Func(path string, info os.FileInfo, timeout time.Duration) error {
|
2018-06-06 16:29:33 +00:00
|
|
|
return writeBytesFuzz.Func(path, info)
|
2018-06-06 14:42:39 +00:00
|
|
|
}
|