aboutsummaryrefslogtreecommitdiff
path: root/third_party/libFuzzer-quote-command-args.patch
blob: d103e74acb12ec99cd3e67d610528594c24f408d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git compiler-rt/lib/fuzzer/FuzzerCommand.h compiler-rt/lib/fuzzer/FuzzerCommand.h
index 87308864af53..145063d000fb 100644
--- compiler-rt/lib/fuzzer/FuzzerCommand.h
+++ compiler-rt/lib/fuzzer/FuzzerCommand.h
@@ -140,7 +140,7 @@ public:
   std::string toString() const {
     std::stringstream SS;
     for (auto arg : getArguments())
-      SS << arg << " ";
+      SS << "\"" << arg << "\" ";
     if (hasOutputFile())
       SS << ">" << getOutputFile() << " ";
     if (isOutAndErrCombined())