mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-18 04:38:08 +00:00
afl-cc -v without errors
This commit is contained in:
@ -57,6 +57,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
|
|||||||
- added AFL_USE_TSAN thread sanitizer support
|
- added AFL_USE_TSAN thread sanitizer support
|
||||||
- llvm and LTO mode modified to work with new llvm 14-dev (again. again.)
|
- llvm and LTO mode modified to work with new llvm 14-dev (again. again.)
|
||||||
- fix for AFL_REAL_LD
|
- fix for AFL_REAL_LD
|
||||||
|
- make -v without options work
|
||||||
- added the very good grammar mutator "GramaTron" to the
|
- added the very good grammar mutator "GramaTron" to the
|
||||||
custom_mutators
|
custom_mutators
|
||||||
- added optimin, a faster and better corpus minimizer by
|
- added optimin, a faster and better corpus minimizer by
|
||||||
|
@ -695,7 +695,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
|
|||||||
|
|
||||||
/* Detect stray -v calls from ./configure scripts. */
|
/* Detect stray -v calls from ./configure scripts. */
|
||||||
|
|
||||||
u8 skip_next = 0;
|
u8 skip_next = 0, non_dash = 0;
|
||||||
while (--argc) {
|
while (--argc) {
|
||||||
|
|
||||||
u8 *cur = *(++argv);
|
u8 *cur = *(++argv);
|
||||||
@ -707,6 +707,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cur[0] != '-') { non_dash = 1; }
|
||||||
if (!strncmp(cur, "--afl", 5)) continue;
|
if (!strncmp(cur, "--afl", 5)) continue;
|
||||||
if (lto_mode && !strncmp(cur, "-fuse-ld=", 9)) continue;
|
if (lto_mode && !strncmp(cur, "-fuse-ld=", 9)) continue;
|
||||||
if (lto_mode && !strncmp(cur, "--ld-path=", 10)) continue;
|
if (lto_mode && !strncmp(cur, "--ld-path=", 10)) continue;
|
||||||
@ -1025,7 +1026,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preprocessor_only || have_c) {
|
if (preprocessor_only || have_c || !non_dash) {
|
||||||
|
|
||||||
/* In the preprocessor_only case (-E), we are not actually compiling at
|
/* In the preprocessor_only case (-E), we are not actually compiling at
|
||||||
all but requesting the compiler to output preprocessed sources only.
|
all but requesting the compiler to output preprocessed sources only.
|
||||||
|
Reference in New Issue
Block a user