diff options
author | vanhauser-thc <vh@thc.org> | 2023-04-04 19:44:12 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-04-04 19:44:12 +0200 |
commit | 3ab18d286142e2e19e37850c051e0b07b9d7b296 (patch) | |
tree | 0d717ef99fab4e30bb31e7a1af0623f929037509 /src/afl-fuzz-one.c | |
parent | 2bff92c603463410fa0f97e7c4db7eb14c45e5ed (diff) | |
download | afl++-3ab18d286142e2e19e37850c051e0b07b9d7b296.tar.gz |
mode switch
Diffstat (limited to 'src/afl-fuzz-one.c')
-rw-r--r-- | src/afl-fuzz-one.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c index 226fb40e..e6b58713 100644 --- a/src/afl-fuzz-one.c +++ b/src/afl-fuzz-one.c @@ -2078,9 +2078,9 @@ havoc_stage: u32 *mutation_array; u32 stack_max; - if (afl->queue_cur->is_ascii) { // is text? + if (unlikely(afl->text_input || afl->queue_cur->is_ascii)) { // is text? - if (1) { // is exploration? + if (likely(afl->fuzz_mode == 0)) { // is exploration? mutation_array = (unsigned int *)&mutation_strategy_exploration_text; @@ -2092,7 +2092,7 @@ havoc_stage: } else { // is binary! - if (1) { // is exploration? + if (likely(afl->fuzz_mode == 0)) { // is exploration? mutation_array = (unsigned int *)&mutation_strategy_exploration_binary; |