fuzzing

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fuzz

func Fuzz(data []byte) int

In this fuzzer we split the input into 3 chunks: 1: the first byte - Is converted to an int, and

that int determines the number of command-line
calls the fuzzer will make.

2: The next n bytes where n is equal to the int from

the first byte. These n bytes are converted to
a corresponding command and represent which
commands will be called.

3: The rest of the data array should have a length

that is divisible by the number of calls.
This part is split up into equally large chunks,
and each chunk is used as parameters for the
corresponding command.

func IsDivisibleBy

func IsDivisibleBy(n int, divisibleby int) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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