The Wayback Machine - https://web.archive.org/web/20201027121700/https://github.com/posener/fuzzing
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

fuzzing

codecov GoDoc

Package fuzzing enables easy fuzzing with go-fuzz.

The Fuzz object provides functions for generating consistent Go primitive values from a given fuzzed bytes slice. The generated values are promised to be consistent from identical slices. They are also correlated to the given fuzzed slice to enable fuzzing exploration.

For an example on how to use this library with go-fuzz, see ./example_fuzz.go In order to test the example, run in the project directory:

$ go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
$ go-fuzz-build
$ go-fuzz -testoutput

Examples

f := New([]byte{1, 2, 3})
i := f.Int()
fmt.Println(i)

Output:

3851489450890114710

Readme created from Go doc with goreadme

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.