Skip to content

Commit fa4e396

Browse files
author
MarcoFalke
committed
fuzz: Generate with random libFuzzer settings
1 parent 9eeee7c commit fa4e396

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/fuzz/test_runner.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import configparser
1212
import logging
1313
import os
14+
import random
1415
import subprocess
1516
import sys
1617

@@ -264,9 +265,12 @@ def job(command, t, t_env):
264265
for target, t_env in targets:
265266
target_corpus_dir = corpus_dir / target
266267
os.makedirs(target_corpus_dir, exist_ok=True)
268+
use_value_profile = int(random.random() < .3)
267269
command = [
268270
os.path.join(build_dir, 'src', 'test', 'fuzz', 'fuzz'),
269-
"-runs=100000",
271+
"-max_total_time=6000",
272+
"-reload=0",
273+
f"-use_value_profile={use_value_profile}",
270274
target_corpus_dir,
271275
]
272276
futures.append(fuzz_pool.submit(job, command, target, t_env))

0 commit comments

Comments
 (0)