diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-03-08 12:38:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-08 12:38:01 +0100 |
commit | 891f6985ed39dba44dc0cf2c56d22882d97024b0 (patch) | |
tree | fc5eec5cd8b1fcd7d0071c7660342b2494e1d497 /src/afl-fuzz-one.c | |
parent | 98ffef26dcc59c48e1afa00ddb8c39206602ccfe (diff) | |
parent | e7bc3e09a3913e5c06d4150e8c8a44a70774937c (diff) | |
download | afl++-891f6985ed39dba44dc0cf2c56d22882d97024b0.tar.gz |
Merge pull request #238 from h1994st/master
Two new hooks for the custom mutator
Diffstat (limited to 'src/afl-fuzz-one.c')
-rw-r--r-- | src/afl-fuzz-one.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c index f12f4a67..1817bd03 100644 --- a/src/afl-fuzz-one.c +++ b/src/afl-fuzz-one.c @@ -355,6 +355,15 @@ u8 fuzz_one_original(char** argv) { #else + if (mutator && mutator->afl_custom_queue_get) { + + /* The custom mutator will decide to skip this test case or not. */ + + if (!mutator->afl_custom_queue_get(queue_cur->fname)) + return 1; + + } + if (pending_favored) { /* If we have any favored, non-fuzzed new arrivals in the queue, |