about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--custom_mutators/autotokens/autotokens.cpp8
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;
 
     }