diff options
author | vanhauser-thc <vh@thc.org> | 2023-01-17 09:57:23 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-01-17 09:57:23 +0100 |
commit | efe57c936880608a2de452340d63f262470d9fcd (patch) | |
tree | b3a81fb26f7c8a4fdaa8854f1ad621d18699180f | |
parent | 33f41e3974348d3b0b71b3a30a6483bb0418068c (diff) | |
download | afl++-efe57c936880608a2de452340d63f262470d9fcd.tar.gz |
more whitespace
-rw-r--r-- | custom_mutators/autotokens/autotokens.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/custom_mutators/autotokens/autotokens.cpp b/custom_mutators/autotokens/autotokens.cpp index d6b269fd..5580512a 100644 --- a/custom_mutators/autotokens/autotokens.cpp +++ b/custom_mutators/autotokens/autotokens.cpp @@ -559,6 +559,8 @@ extern "C" my_mutator_t *afl_custom_init(afl_state *afl, unsigned int seed) { data->afl = afl_ptr = afl; // set common whitespace tokens + // we deliberately do not put uncommon ones here to these will count as + // identifier tokens. token_to_id[" "] = current_id; id_to_token[current_id] = " "; ++current_id; @@ -580,6 +582,21 @@ extern "C" my_mutator_t *afl_custom_init(afl_state *afl, unsigned int seed) { token_to_id["\t\t"] = current_id; id_to_token[current_id] = "\t\t"; ++current_id; + token_to_id["\n\n"] = current_id; + id_to_token[current_id] = "\n\n"; + ++current_id; + token_to_id["\r\n\r\n"] = current_id; + id_to_token[current_id] = "\r\n\r\n"; + ++current_id; + token_to_id[" "] = current_id; + id_to_token[current_id] = " "; + ++current_id; + token_to_id["\t\t\t\t"] = current_id; + id_to_token[current_id] = "\t\t\t\t"; + ++current_id; + token_to_id["\n\n\n\n"] = current_id; + id_to_token[current_id] = "\n\n\n\n"; + ++current_id; whitespace_ids = current_id; return data; |