diff options
author | van Hauser <vh@thc.org> | 2022-10-07 15:40:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 15:40:04 +0200 |
commit | 2107ece114e66952f16d2dbc888d46a1061e6faf (patch) | |
tree | 7e01902d97cc9dec5ad70c70c0a3722ae5c2df23 /src/afl-fuzz.c | |
parent | 5e04c9693b19038871f3aa93544cac187785bc1a (diff) | |
download | afl++-2107ece114e66952f16d2dbc888d46a1061e6faf.tar.gz |
auto shmem fuzzing (#1541)
* auto shmem fuzzing * print warning when forcing shmem fuzzing * typos * Shmem always * typo fix * fixes Co-authored-by: Dominik Maier <dmnk@google.com>
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 294c42f6..84ae54ff 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -2132,6 +2132,20 @@ int main(int argc, char **argv_orig, char **envp) { } + if (afl->fsrv.out_file && afl->fsrv.use_shmem_fuzz) { + + afl->fsrv.out_file = NULL; + afl->fsrv.use_stdin = 0; + if (!afl->unicorn_mode && !afl->fsrv.use_stdin) { + + WARNF( + "You specified -f or @@ on the command line but the target harness " + "specified fuzz cases via shmem, switching to shmem!"); + + } + + } + deunicode_extras(afl); dedup_extras(afl); if (afl->extras_cnt) { OKF("Loaded a total of %u extras.", afl->extras_cnt); } |