You can change the behavior of cifuzz both via command-line flags
and via settings stored in the cifuzz.yaml
config file. Flags take
precedence over the respective config file setting.
build-system
build-command
seed-corpus-dirs
dict
engine-args
timeout
use-sandbox
print-json
no-notifications
server
project
style
The build system used to build this project. If not set, cifuzz tries to detect the build system automatically. Valid values: "bazel", "cmake", "maven", "gradle", "other".
build-system: cmake
If the build system type is "other", this command is used by
cifuzz run
to build the fuzz test.
build-command: "make all"
Directories containing sample inputs for the code under test. See https://llvm.org/docs/LibFuzzer.html#corpus.
seed-corpus-dirs:
- path/to/seed-corpus
A file containing input language keywords or other interesting byte sequences. See https://llvm.org/docs/LibFuzzer.html#dictionaries.
dict: path/to/dictionary.dct
Command-line arguments to pass to libFuzzer or Jazzer for running fuzz tests.
Engine-args are not supported for running cifuzz coverage
on JVM-projects
and are not supported for Node.js projects.
For possible libFuzzer options see https://llvm.org/docs/LibFuzzer.html#options.
For advanced configuration with Jazzer parameters see https://github.com/CodeIntelligenceTesting/jazzer/blob/main/docs/advanced.md.
Fuzzer customization for Node.js projects can be specified in .jazzerjsrc.json
in the root project directory. See https://github.com/CodeIntelligenceTesting/jazzer.js/blob/main/docs/jest-integration.md
for further information.
engine-args:
- -rss_limit_mb=4096
- -timeout=5s
engine-args:
- --instrumentation_includes=com.**
- --keep_going
Maximum time in seconds to run the fuzz tests. The default is to run indefinitely.
timeout: 300
By default, fuzz tests are executed in a sandbox to prevent accidental damage to the system. Set to false to run fuzz tests unsandboxed. Only supported on Linux.
use-sandbox: false
Set to true to print output of the cifuzz run
command as JSON.
print-json: true
Set to true to disable desktop notifications
no-notifications: true
Set URL of CI Sense
server: https://app.code-intelligence.com
Set the project name of CI Sense project
project: my-project-1a2b3c4d
Choose the style to run cifuzz in
pretty
: Colored output and icons (default)color
: Colored outputplain
: Pure text without any styles
style: plain