fuzz-walker/walker/walkers/writeBytesFuzz/plugin.go
Vincent Batts 66e91e3ddf
default to compile in, but also allow plugins
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-06-06 12:29:33 -04:00

26 lines
504 B
Go

// +build ignore
package main
import (
"os"
"time"
"git.thisco.de/vbatts/fuzz-walker/walker"
"git.thisco.de/vbatts/fuzz-walker/walker/walkers/writeBytesFuzz"
)
// NewFuzzer creates the fuzzer for this plugin
func NewFuzzer() (walker.Fuzzer, error) {
return &myFuzzer{}, nil
}
type myFuzzer struct{}
func (mf myFuzzer) Name() string {
return writeBytesFuzz.Name
}
func (mf myFuzzer) Func(path string, info os.FileInfo, timeout time.Duration) error {
return writeBytesFuzz.Func(path, info)
}