Specifies a fuzzing engine that can be used to run C++ fuzz targets.
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| data | A dict mapping additional runtime dependencies needed by the fuzzing engine to environment variables that will be available inside the launcher, holding the runtime path to the dependency. | Dictionary: Label -> String | optional | {} |
| display_name | The name of the fuzzing engine, as it should be rendered in human-readable output. | String | required | |
| launcher | A shell script that knows how to launch the fuzzing executable based on configuration specified in the environment. | Label | required | |
| library | A cc_library target that implements the fuzzing engine entry point. | Label | required |
Macro for c++ fuzzing test
This macro provides below targets: : the executable file built by cc_test. _run: an executable to launch the fuzz test. _corpus: a target to generate a directory containing all corpus files if the argument corpus is passed. _corpus_zip: an target to generate a zip file containing corpus files if the argument corpus is passed.
PARAMETERS
| Name | Description | Default Value |
|---|---|---|
| name | A unique name for this target. Required. | none |
| corpus | A list containing corpus files. | None |
| dicts | A list containing dictionaries. | None |
| binary_kwargs | Keyword arguments directly forwarded to the fuzz test binary rule. | none |