diff options
author | vanhauser-thc <vh@thc.org> | 2021-10-31 11:55:36 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-10-31 11:55:44 +0100 |
commit | c64735df9e87f2ee15ea32208be85e481c78814b (patch) | |
tree | 6370fba29e20b095b377ed1bc9af1109bd48d5a4 /src | |
parent | 36d8f979724de64ad986acd3b9fe8933e99950c4 (diff) | |
download | afl++-c64735df9e87f2ee15ea32208be85e481c78814b.tar.gz |
help gcc
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-cc.c | 8 |
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", |