To fuzz Go code, use the
setup steps to install all the needed dependencies. Then, specify the package and method to fuzz in the
This is an example of the configuration of a target written in Go, with a fuzz method named
FuzzMe in package
# ---- base, global setup, and global environment omittedlanguage: goversion: "1.11"# checkout specifies where in the Gopath to place your code# this repository will be placed in the directory:# ~/go/src/github.com/x/ycheckout: github.com/x/targets:- name: my-targetsetup:- dep ensure # make sure all dependencies are installedcorpus: ./my_target/corpusharness:# the name of your methodfunction: FuzzMe# build tags are optionalbuild_tags: tag1 tag2 tag3# package specifies the package to import the# desired function frompackage: github.com/x/y/z/a/b/c
You're ready to go! Push your project to Fuzzbuzz and it will detect your targets automatically.