diff options
author | realmadsci <71108352+realmadsci@users.noreply.github.com> | 2021-03-15 14:18:41 -0400 |
---|---|---|
committer | realmadsci <71108352+realmadsci@users.noreply.github.com> | 2021-03-15 12:25:01 -0700 |
commit | 1ab125de63627855752d28abf847b3cc0bdf8582 (patch) | |
tree | a229fbd2b71eea07e69166e5e491e2e24e292d7b | |
parent | 01ad0f3c6a45e28eb99e7076f97af2e2a9516c45 (diff) | |
download | afl++-1ab125de63627855752d28abf847b3cc0bdf8582.tar.gz |
afl-cmin: Allow @@ to be part of an arg
The previous implementation of "@@ handling" in afl-cmin differed greatly from how it was handled in afl-fuzz and how the documentation presented it. It used to require that the @@ be its own argument separated by whitespace and could not be used in situations like "--file=@@". This change standardizes it to just look for @@ to be *in* an argument in the same manner that afl-cmin.bash does, so that it will have the expected and documented behavior.
-rwxr-xr-x | afl-cmin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/afl-cmin b/afl-cmin index 778d7487..a1fc6f21 100755 --- a/afl-cmin +++ b/afl-cmin @@ -243,7 +243,7 @@ BEGIN { if (!stdin_file) { found_atat = 0 for (prog_args_ind in prog_args) { - if ("@@" == prog_args[prog_args_ind]) { + if (match(prog_args[prog_args_ind], "@@") != 0) { found_atat = 1 break } |