Documentation ¶
Index ¶
- Constants
- func AddEnvFlags(env []string, envVars []string) ([]string, error)
- func FuzzerEnvironment() ([]string, error)
- func SetASANOptions(env []string, defaults map[string]string, overrides map[string]string) ([]string, error)
- func SetCommonASANOptions(env []string) ([]string, error)
- func SetCommonUBSANOptions(env []string, recover bool) ([]string, error)
- func SetLDLibraryPath(env []string, libraryDirs []string) ([]string, error)
- func SetSanitizerOptions(existingOptionsStr string, defaults map[string]string, ...) string
- type Sender
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 FuzzerEnvironment ¶
func SetASANOptions ¶
func SetCommonASANOptions ¶
func SetCommonUBSANOptions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.