Environment Variables
Mode Selection
Section titled “Mode Selection”| Variable | Type | Description |
|---|---|---|
VITIATE_FUZZ | 1 | Enables fuzzing mode. Each fuzz() call becomes a supervisor and enters the mutation-driven fuzz loop. Also set internally by the npx vitiate CLI. |
VITIATE_OPTIMIZE | 1 | Enables corpus minimization mode. Replays all corpus entries, runs set cover, and deletes redundant cached entries. |
When neither is set, fuzz() runs in regression mode - replaying saved corpus entries as test cases.
Configuration
Section titled “Configuration”| Variable | Type | Description |
|---|---|---|
VITIATE_FUZZ_TIME | integer | Total fuzzing time in seconds. Overrides fuzzTimeMs from code and -max_total_time from CLI. |
VITIATE_FUZZ_EXECS | integer | Maximum fuzzing iterations. Overrides fuzzExecs from code and -runs from CLI. |
VITIATE_DEBUG | 1 | Enable debug output (logs mode, coverage map size, and internal state). |
VITIATE_MAX_CRASHES | integer | Maximum crashes to collect before stopping. Overrides maxCrashes from code. |
Internal
Section titled “Internal”These are set by Vitiate internally. Do not set them manually unless building a custom runner.
| Variable | Type | Description |
|---|---|---|
VITIATE_SUPERVISOR | 1 | Indicates the process is a supervised child worker. Set by the supervisor. |
VITIATE_SHMEM | string | Shared memory handle for coverage map. Set by the supervisor. |
Precedence
Section titled “Precedence”fuzz, regression, and optimize subcommands
Section titled “fuzz, regression, and optimize subcommands”Configuration is resolved in this order (highest priority first):
- CLI flags (
--fuzz-time,--fuzz-execs,--max-crashes) - Environment variables (
VITIATE_FUZZ_TIME,VITIATE_FUZZ_EXECS,VITIATE_MAX_CRASHES) - Per-test
FuzzOptionsin code - Plugin-level
fuzzdefaults - Built-in defaults
libfuzzer subcommand
Section titled “libfuzzer subcommand”For the libFuzzer-compatible CLI, environment variables take highest priority to match libFuzzer conventions:
- Environment variables (
VITIATE_FUZZ_TIME,VITIATE_FUZZ_EXECS) - CLI flags (
-max_total_time,-runs) - Per-test
FuzzOptionsin code - Plugin-level
fuzzdefaults - Built-in defaults