about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/afl-cc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c
index ed6390ce..e7f08aac 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -737,6 +737,14 @@ static void edit_params(u32 argc, char **argv, char **envp) {
 
     }
 
+    if ((compiler_mode == GCC || compiler_mode == GCC_PLUGIN) &&
+        !strncmp(cur, "-stdlib=", 8)) {
+
+      if (!be_quiet) { WARNF("Found '%s' - stripping!", cur); }
+      continue;
+
+    }
+
     if ((!strncmp(cur, "-fsanitize=fuzzer-", strlen("-fsanitize=fuzzer-")) ||
          !strncmp(cur, "-fsanitize-coverage", strlen("-fsanitize-coverage"))) &&
         (strncmp(cur, "sanitize-coverage-allow",