fuzz

package
v0.0.0-...-0da46e6 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

Fuzzing

Fuzzing support using go-fuzz.

Basic operation:

$ cd ~
$ go get -u github.com/dvyukov/go-fuzz/go-fuzz
$ go get -u github.com/dvyukov/go-fuzz/go-fuzz-build
$ cd -
$ cd internal/fuzz/{fuzzer}
# See:
# - https://github.com/dvyukov/go-fuzz/issues/294
# - https://github.com/open-policy-agent/opa/pull/3243
# Not sure why but homedir also complains during typechecking.
$ go-fuzz-build -preserve github.com/OneOfOne/xxhash,k8s.io/client-go/util/homedir
$ go-fuzz

OSS-Fuzz

Fuzzers are automatically run by OSS-Fuzz.

The OSS-Fuzz configuration currently builds the fuzzers under internal/fuzz. Only add fuzzers (not support packages) in this directory.

Fuzzing results are available at the OSS-Fuzz console, under config-validator.

Documentation

Overview

Package fuzz implements go-fuzz fuzzing functions for the validator.go file. See https://github.com/dvyukov/go-fuzz

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fuzz

func Fuzz(data []byte) (score int)

Fuzz fuzzes reviewing assets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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