fuzz-walker/walker/walkers/ioctlFuzz/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
489 B
Go

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