diff options
author | Miroslav Lichvar <mlichvar@redhat.com> | 2022-04-13 13:11:17 +0200 |
---|---|---|
committer | Miroslav Lichvar <mlichvar@redhat.com> | 2022-04-13 13:47:51 +0200 |
commit | 57db3e7f4f814c7b32a0aff7367057ffb0d12ebd (patch) | |
tree | 70c81a0d5ce18e681c48b27008f64e4d491b99ac | |
parent | ac80678592ea4a790ab2eedccfec4e3bc9f96447 (diff) | |
download | afl++-57db3e7f4f814c7b32a0aff7367057ffb0d12ebd.tar.gz |
afl-cmin: quote program arguments
Quote the program arguments in the system() function to allow them to contain spaces.
-rwxr-xr-x | afl-cmin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/afl-cmin b/afl-cmin index 879aead2..853c9398 100755 --- a/afl-cmin +++ b/afl-cmin @@ -217,7 +217,7 @@ BEGIN { for (; Optind < ARGC; Optind++) { prog_args[i++] = ARGV[Optind] if (i > 1) - prog_args_string = prog_args_string" "ARGV[Optind] + prog_args_string = prog_args_string" '"ARGV[Optind]"'" } # sanity checks |