Skip to content

stevenjohnstone/go114-fuzz-build

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Intro

go114-fuzz-build is a mostly-drop-in replacement for go-fuzz-build's -libfuzzer build mode, but uses cmd/compile's native libfuzzer instrumentation (included experimentally since Go 1.14) instead of source-to-source transformation.

Example

  1. Install go114-fuzz-build:
$ go get -u github.com/mdempsky/go114-fuzz-build
  1. Build Kubernetes fuzz target with go114-fuzz-build and link against libFuzzer:
$ git clone --depth=1 git clone --depth 1 https://github.com/kubernetes/kubernetes.git
$ cd kubernetes
$ go114-fuzz-build -o yaml_FuzzSigYaml.a -func FuzzSigYaml ./test/fuzz/yaml
$ clang -o yaml_FuzzSigYaml yaml_FuzzSigYaml.a -fsanitize=fuzzer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%