diff options
author | vanhauser-thc <vh@thc.org> | 2023-01-27 14:32:18 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-01-27 14:32:18 +0100 |
commit | 47f35d29ac53ed1cdb87f65591b62947a7965060 (patch) | |
tree | ac1d5a021683e143874f85c37247856f7c75d3f6 | |
parent | 4a54555a1a73dd6be4f494ef67155ed41a81f0f4 (diff) | |
download | afl++-47f35d29ac53ed1cdb87f65591b62947a7965060.tar.gz |
fix
-rw-r--r-- | custom_mutators/autotokens/autotokens.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/custom_mutators/autotokens/autotokens.cpp b/custom_mutators/autotokens/autotokens.cpp index f9b5bd2e..4a2cc08f 100644 --- a/custom_mutators/autotokens/autotokens.cpp +++ b/custom_mutators/autotokens/autotokens.cpp @@ -61,8 +61,10 @@ static unordered_map<u32, string> id_to_token; static string whitespace = AUTOTOKENS_WHITESPACE; static string output; static regex *regex_comment_custom; -static regex regex_comment_star("/\\*([:print:]|\n)*?\\*/", - regex::multiline | regex::optimize); +// multiline requires g++-11 libs :( +static regex regex_comment_star( + "/\\*([:print:]|\n)*?\\*/", + regex_constants::optimize /* | regex_constants::multiline */); static regex regex_word("[A-Za-z0-9_$.-]+", regex::optimize); static regex regex_whitespace(R"([ \t]+)", regex::optimize); static vector<u32> *s; // the structure of the currently selected input @@ -548,7 +550,7 @@ extern "C" unsigned char afl_custom_queue_get(void *data, if (fread((void *)input.data(), 1, len, fp) != len) { s = NULL; - DEBUGF(stderr, "Too short read %s\n", len, filename); + DEBUGF(stderr, "Too short read %s\n", filename); return 0; } |