fuzzer

package
v0.0.0-...-ec53fa7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: LGPL-2.1 Imports: 20 Imported by: 0

Documentation

Overview

Package fuzzer is the entry point for go-fuzz.

Index

Constants

This section is empty.

Variables

View Source
var (
	EnvKey = "FUZZYDIR"
)

Functions

func CreateNewCorpusElement

func CreateNewCorpusElement() ([]byte, error)

CreateNewCorpusElement creates a new corpus element.

func Fuzz

func Fuzz(data []byte) int

Fuzz is the entry point for go-fuzz

func SampleLengthCorpus

func SampleLengthCorpus(N int) []int

SampleLengthCorpus creates N valid inputs and samples their length. It returns the unsorted array of lengths

func SetFuzzyVMDir

func SetFuzzyVMDir()

SetFuzzyVMDir sets the output directory for FuzzyVM If the environment variable FUZZYDIR is set, the output directory will be set to that, otherwise it will be set to a temp dir (for unit tests)

Types

This section is empty.

Jump to

Keyboard shortcuts

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