summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-11-09 21:30:33 +0000
committerKostya Serebryany <kcc@google.com>2017-11-09 21:30:33 +0000
commit60f3e3f7561a46a7fb5460d8658edd37aa2655c8 (patch)
tree9c48b0d3778a339c9c82277ee74d85cbe9f2881d /lib
parent9b44ad8cb235a91768b744f5e1d426e1aca98ae9 (diff)
[libFuzzer] make sure to flush IO when done merging one file
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@317835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/fuzzer/FuzzerMerge.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fuzzer/FuzzerMerge.cpp b/lib/fuzzer/FuzzerMerge.cpp
index 59e34cfa0..9b21a0917 100644
--- a/lib/fuzzer/FuzzerMerge.cpp
+++ b/lib/fuzzer/FuzzerMerge.cpp
@@ -254,6 +254,7 @@ void Fuzzer::CrashResistantMergeInternalStep(const std::string &CFPath) {
for (size_t F : UniqFeatures)
OF << " " << std::hex << F;
OF << "\n";
+ OF.flush();
}
}