mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
fuzzer-setup: Allow customization without recompiling
This change allows to invoke a reproducer with different script options and extra scripts to ease debugging and investigation. For example, enabling the DPD debug stream and adding misc/dump-events can be done as follows after this change: ZEEK_DEBUG_LOG_STDERR=1 ../../build/src/fuzzers/zeek-pop3-fuzzer <test-case> -- -B dpd misc/dump-events
This commit is contained in:
parent
631b30f5bb
commit
9530f73ec4
2 changed files with 38 additions and 8 deletions
|
@ -15,10 +15,11 @@ int main(int argc, char** argv)
|
|||
{
|
||||
using namespace std::chrono;
|
||||
auto agg_start = high_resolution_clock::now();
|
||||
auto num_inputs = argc - 1;
|
||||
printf("Standalone fuzzer processing %d inputs\n", num_inputs);
|
||||
|
||||
LLVMFuzzerInitialize(&argc, &argv);
|
||||
|
||||
auto num_inputs = argc - 1;
|
||||
printf("Standalone fuzzer processing %d inputs\n", num_inputs);
|
||||
auto fuzz_start = high_resolution_clock::now();
|
||||
|
||||
for ( auto i = 0; i < num_inputs; ++i )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue