fuzzreader

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

README

reader fuzzing

Fuzzing is a technique for sending arbitrary input into functions to see what happens. Typically this is done to weed out crashes/panics from software, or to detect bugs. In some cases all possible inputs are ran into the program (i.e. if a function accepts 16-bit integers it's trivial to try them all).

In this directory we are fuzzing reader.go from the root level -- In specific the Reader.Read() method.

Running

If you need to setup go-fuzz, run make install.

Otherwise, run make and watch the output. Fix any crashes that happen, thanks!

See the go-fuzz project for more docs: https://github.com/dvyukov/go-fuzz

Corpus

Right now our corpus exists mostly of test files. As a machine runs go-fuzz files are written to the corpus/ directory.

To load all test files we read run: ln -s ../../../test/ach-*-read/*.ach . from the corpus/ directory.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fuzz

func Fuzz(data []byte) int

Return codes (from go-fuzz docs)

The function must return 1 if the fuzzer should increase priority of the given input during subsequent fuzzing (for example, the input is lexically correct and was parsed successfully); -1 if the input must not be added to corpus even if gives new coverage; and 0 otherwise; other values are reserved for future use.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL