runner

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DeprecatedSanitizerErrorExitCode = 1

Exit code used by fuzzers which we didn't configure to return SanitizerErrorExitCode instead TODO(adrian): Use SanitizerErrorExitCode in all runners

View Source
const LibFuzzerErrorExitCode = 77

Exit code used by libFuzzer when libFuzzer itself reports a bug. See

https://github.com/llvm/llvm-project/blob/75e33f71c2dae584b13a7d1186ae0a038ba98838/compiler-rt/lib/fuzzer/FuzzerOptions.h#L26

This is configurable via the `-error_exitcode` libFuzzer flag, see

https://llvm.org/docs/LibFuzzer.html

This is also used by jazzer to indicate that an issue was found.

View Source
const LibFuzzerOOMExitCode = 71

Exit code used by libFuzzer on OOM errors. See

https://github.com/llvm/llvm-project/blob/75e33f71c2dae584b13a7d1186ae0a038ba98838/compiler-rt/lib/fuzzer/FuzzerOptions.h#L24

This is (currently) not configurable via any libFuzzer flag.

View Source
const LibFuzzerTimeoutExitCode = 70

Exit code used by libFuzzer on timeout errors. See

https://github.com/llvm/llvm-project/blob/75e33f71c2dae584b13a7d1186ae0a038ba98838/compiler-rt/lib/fuzzer/FuzzerOptions.h#L23

This is configurable via the `-timeout_exitcode` libFuzzer flag, see

https://llvm.org/docs/LibFuzzer.html
View Source
const SanitizerErrorExitCode = 78

Exit code when a sanitizer reports a bug

Variables

This section is empty.

Functions

func AddEnvFlags

func AddEnvFlags(env []string, envVars []string) ([]string, error)

func FuzzerEnvironment

func FuzzerEnvironment() ([]string, error)

func SetASANOptions

func SetASANOptions(env []string, defaults map[string]string, overrides map[string]string) ([]string, error)

func SetCommonASANOptions

func SetCommonASANOptions(env []string) ([]string, error)

func SetCommonUBSANOptions

func SetCommonUBSANOptions(env []string) ([]string, error)

func SetLDLibraryPath

func SetLDLibraryPath(env []string, libraryDirs []string) ([]string, error)

func SetSanitizerOptions

func SetSanitizerOptions(existingOptionsStr string, defaults map[string]string, overrides map[string]string) string

Types

type Sender

type Sender interface {
	Send(report *report.Report) error
}

Sender is an interface to something that can send.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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