From 57db3e7f4f814c7b32a0aff7367057ffb0d12ebd Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 13 Apr 2022 13:11:17 +0200 Subject: afl-cmin: quote program arguments Quote the program arguments in the system() function to allow them to contain spaces. --- afl-cmin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1