From 141b2ee9f409237c2220cf3417a073127765b599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 26 Sep 2019 13:37:13 +0200 Subject: [PATCH] [build] Fuzzer launcher: fix the master/slave option for afl-fuzz --- build/scenario/afl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/scenario/afl.py b/build/scenario/afl.py index d78ce3c0e..04c7a2a2e 100644 --- a/build/scenario/afl.py +++ b/build/scenario/afl.py @@ -4,7 +4,8 @@ import subprocess NUMBER_OF_FUZZERS=8 def afl_command(name): - return ["afl-fuzz", "-t", "10000", "-i", "scenari", "-o", "afl_out", "-M", "epsilon-fuzz-" + name, "./epsilon.bin"] + master_option = "-M" if name.startswith("master") else "-S" + return ["afl-fuzz", "-t", "10000", "-i", "scenari", "-o", "afl_out", master_option, "epsilon-fuzz-" + name, "./epsilon.bin"] def run_afl(commands, name): # Launch the fuzzer