aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-06-12 09:13:24 +0200
committervanhauser-thc <vh@thc.org>2023-06-12 09:13:24 +0200
commited97dbacef98c379d7028514a43c799c86050584 (patch)
treec7fcdc37ffcfb8a286b140ba6d2671c7b7e0840e /src
parent25eba95bbaf58539c65088fc8bc143ed30ad82b9 (diff)
downloadafl++-ed97dbacef98c379d7028514a43c799c86050584.tar.gz
enable text mode
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-one.c33
1 files changed, 13 insertions, 20 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c
index 816384fd..4efc661e 100644
--- a/src/afl-fuzz-one.c
+++ b/src/afl-fuzz-one.c
@@ -2101,40 +2101,33 @@ havoc_stage:
*/
- /*
- if (unlikely(afl->text_input || afl->queue_cur->is_ascii)) { // is text?
-
- if (likely(afl->fuzz_mode == 0)) { // is exploration?
+ rand_max = MUT_STRATEGY_ARRAY_SIZE;
- mutation_array = (unsigned int *)&mutation_strategy_exploration_text;
+ if (unlikely(afl->text_input /*|| afl->queue_cur->is_ascii*/)) { // is text?
- } else { // is exploitation!
+ if (likely(afl->fuzz_mode == 0)) { // is exploration?
- mutation_array = (unsigned int *)&mutation_strategy_exploitation_text;
+ mutation_array = (unsigned int *)&mutation_strategy_exploration_text;
- }
+ } else { // is exploitation!
- } else { // is binary!
+ mutation_array = (unsigned int *)&mutation_strategy_exploitation_text;
- */
-
- rand_max = MUT_STRATEGY_ARRAY_SIZE;
-
- if (likely(afl->fuzz_mode == 0)) { // is exploration?
+ }
- mutation_array = (unsigned int *)&mutation_strategy_exploration_binary;
+ } else { // is binary!
- } else { // is exploitation!
+ if (likely(afl->fuzz_mode == 0)) { // is exploration?
- mutation_array = (unsigned int *)&mutation_strategy_exploitation_binary;
+ mutation_array = (unsigned int *)&mutation_strategy_exploration_binary;
- }
+ } else { // is exploitation!
- /*
+ mutation_array = (unsigned int *)&mutation_strategy_exploitation_binary;
}
- */
+ }
/*
if (temp_len < 64) {