cc_fuzzing_engine

Specifies a fuzzing engine that can be used to run C++ fuzz targets.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
dataA 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 -> Stringoptional{}
display_nameThe name of the fuzzing engine, as it should be rendered in human-readable output.Stringrequired
launcherA shell script that knows how to launch the fuzzing executable based on configuration specified in the environment.Labelrequired
libraryA cc_library target that implements the fuzzing engine entry point.Labelrequired

cc_fuzz_test

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

NameDescriptionDefault Value
nameA unique name for this target. Required.none
corpusA list containing corpus files.None
dictsA list containing dictionaries.None
binary_kwargsKeyword arguments directly forwarded to the fuzz test binary rule.none