This commit is contained in:
vanhauser-thc
2023-01-18 14:21:44 +01:00
parent 70f4b456fa
commit 0db662db7b

View File

@ -851,43 +851,47 @@ extern "C" my_mutator_t *afl_custom_init(afl_state *afl, unsigned int seed) {
// set common whitespace tokens // set common whitespace tokens
// we deliberately do not put uncommon ones here to these will count as // we deliberately do not put uncommon ones here to these will count as
// identifier tokens. // identifier tokens.
token_to_id[" "] = current_id; if (!alternative_tokenize) {
id_to_token[current_id] = " ";
++current_id; token_to_id[" "] = current_id;
token_to_id["\t"] = current_id; id_to_token[current_id] = " ";
id_to_token[current_id] = "\t"; ++current_id;
++current_id; token_to_id["\t"] = current_id;
token_to_id["\n"] = current_id; id_to_token[current_id] = "\t";
id_to_token[current_id] = "\n"; ++current_id;
++current_id; token_to_id["\n"] = current_id;
token_to_id["\r\n"] = current_id; id_to_token[current_id] = "\n";
id_to_token[current_id] = "\r\n"; ++current_id;
++current_id; token_to_id["\r\n"] = current_id;
token_to_id[" \n"] = current_id; id_to_token[current_id] = "\r\n";
id_to_token[current_id] = " \n"; ++current_id;
++current_id; token_to_id[" \n"] = current_id;
token_to_id[" "] = current_id; id_to_token[current_id] = " \n";
id_to_token[current_id] = " "; ++current_id;
++current_id; token_to_id[" "] = current_id;
token_to_id["\t\t"] = current_id; id_to_token[current_id] = " ";
id_to_token[current_id] = "\t\t"; ++current_id;
++current_id; token_to_id["\t\t"] = current_id;
token_to_id["\n\n"] = current_id; id_to_token[current_id] = "\t\t";
id_to_token[current_id] = "\n\n"; ++current_id;
++current_id; token_to_id["\n\n"] = current_id;
token_to_id["\r\n\r\n"] = current_id; id_to_token[current_id] = "\n\n";
id_to_token[current_id] = "\r\n\r\n"; ++current_id;
++current_id; token_to_id["\r\n\r\n"] = current_id;
token_to_id[" "] = current_id; id_to_token[current_id] = "\r\n\r\n";
id_to_token[current_id] = " "; ++current_id;
++current_id; token_to_id[" "] = current_id;
token_to_id["\t\t\t\t"] = current_id; id_to_token[current_id] = " ";
id_to_token[current_id] = "\t\t\t\t"; ++current_id;
++current_id; token_to_id["\t\t\t\t"] = current_id;
token_to_id["\n\n\n\n"] = current_id; id_to_token[current_id] = "\t\t\t\t";
id_to_token[current_id] = "\n\n\n\n"; ++current_id;
++current_id; token_to_id["\n\n\n\n"] = current_id;
whitespace_ids = current_id; id_to_token[current_id] = "\n\n\n\n";
++current_id;
whitespace_ids = current_id;
}
return data; return data;