FuzzerMerge.cpp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. //===- FuzzerMerge.cpp - merging corpora ----------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. // Merging corpora.
  9. //===----------------------------------------------------------------------===//
  10. #include "FuzzerCommand.h"
  11. #include "FuzzerMerge.h"
  12. #include "FuzzerIO.h"
  13. #include "FuzzerInternal.h"
  14. #include "FuzzerTracePC.h"
  15. #include "FuzzerUtil.h"
  16. #include <fstream>
  17. #include <iterator>
  18. #include <set>
  19. #include <sstream>
  20. #include <unordered_set>
  21. namespace fuzzer {
  22. bool Merger::Parse(const std::string &Str, bool ParseCoverage) {
  23. std::istringstream SS(Str);
  24. return Parse(SS, ParseCoverage);
  25. }
  26. void Merger::ParseOrExit(std::istream &IS, bool ParseCoverage) {
  27. if (!Parse(IS, ParseCoverage)) {
  28. Printf("MERGE: failed to parse the control file (unexpected error)\n");
  29. exit(1);
  30. }
  31. }
  32. // The control file example:
  33. //
  34. // 3 # The number of inputs
  35. // 1 # The number of inputs in the first corpus, <= the previous number
  36. // file0
  37. // file1
  38. // file2 # One file name per line.
  39. // STARTED 0 123 # FileID, file size
  40. // FT 0 1 4 6 8 # FileID COV1 COV2 ...
  41. // COV 0 7 8 9 # FileID COV1 COV1
  42. // STARTED 1 456 # If FT is missing, the input crashed while processing.
  43. // STARTED 2 567
  44. // FT 2 8 9
  45. // COV 2 11 12
  46. bool Merger::Parse(std::istream &IS, bool ParseCoverage) {
  47. LastFailure.clear();
  48. std::string Line;
  49. // Parse NumFiles.
  50. if (!std::getline(IS, Line, '\n')) return false;
  51. std::istringstream L1(Line);
  52. size_t NumFiles = 0;
  53. L1 >> NumFiles;
  54. if (NumFiles == 0 || NumFiles > 10000000) return false;
  55. // Parse NumFilesInFirstCorpus.
  56. if (!std::getline(IS, Line, '\n')) return false;
  57. std::istringstream L2(Line);
  58. NumFilesInFirstCorpus = NumFiles + 1;
  59. L2 >> NumFilesInFirstCorpus;
  60. if (NumFilesInFirstCorpus > NumFiles) return false;
  61. // Parse file names.
  62. Files.resize(NumFiles);
  63. for (size_t i = 0; i < NumFiles; i++)
  64. if (!std::getline(IS, Files[i].Name, '\n'))
  65. return false;
  66. // Parse STARTED, FT, and COV lines.
  67. size_t ExpectedStartMarker = 0;
  68. const size_t kInvalidStartMarker = -1;
  69. size_t LastSeenStartMarker = kInvalidStartMarker;
  70. std::vector<uint32_t> TmpFeatures;
  71. std::set<uint32_t> PCs;
  72. while (std::getline(IS, Line, '\n')) {
  73. std::istringstream ISS1(Line);
  74. std::string Marker;
  75. uint32_t N;
  76. if (!(ISS1 >> Marker) || !(ISS1 >> N))
  77. return false;
  78. if (Marker == "STARTED") {
  79. // STARTED FILE_ID FILE_SIZE
  80. if (ExpectedStartMarker != N)
  81. return false;
  82. ISS1 >> Files[ExpectedStartMarker].Size;
  83. LastSeenStartMarker = ExpectedStartMarker;
  84. assert(ExpectedStartMarker < Files.size());
  85. ExpectedStartMarker++;
  86. } else if (Marker == "FT") {
  87. // FT FILE_ID COV1 COV2 COV3 ...
  88. size_t CurrentFileIdx = N;
  89. if (CurrentFileIdx != LastSeenStartMarker)
  90. return false;
  91. LastSeenStartMarker = kInvalidStartMarker;
  92. if (ParseCoverage) {
  93. TmpFeatures.clear(); // use a vector from outer scope to avoid resizes.
  94. while (ISS1 >> N)
  95. TmpFeatures.push_back(N);
  96. std::sort(TmpFeatures.begin(), TmpFeatures.end());
  97. Files[CurrentFileIdx].Features = TmpFeatures;
  98. }
  99. } else if (Marker == "COV") {
  100. size_t CurrentFileIdx = N;
  101. if (ParseCoverage)
  102. while (ISS1 >> N)
  103. if (PCs.insert(N).second)
  104. Files[CurrentFileIdx].Cov.push_back(N);
  105. } else {
  106. return false;
  107. }
  108. }
  109. if (LastSeenStartMarker != kInvalidStartMarker)
  110. LastFailure = Files[LastSeenStartMarker].Name;
  111. FirstNotProcessedFile = ExpectedStartMarker;
  112. return true;
  113. }
  114. size_t Merger::ApproximateMemoryConsumption() const {
  115. size_t Res = 0;
  116. for (const auto &F: Files)
  117. Res += sizeof(F) + F.Features.size() * sizeof(F.Features[0]);
  118. return Res;
  119. }
  120. // Decides which files need to be merged (add those to NewFiles).
  121. // Returns the number of new features added.
  122. size_t Merger::Merge(const std::set<uint32_t> &InitialFeatures,
  123. std::set<uint32_t> *NewFeatures,
  124. const std::set<uint32_t> &InitialCov,
  125. std::set<uint32_t> *NewCov,
  126. std::vector<std::string> *NewFiles) {
  127. NewFiles->clear();
  128. NewFeatures->clear();
  129. NewCov->clear();
  130. assert(NumFilesInFirstCorpus <= Files.size());
  131. std::set<uint32_t> AllFeatures = InitialFeatures;
  132. // What features are in the initial corpus?
  133. for (size_t i = 0; i < NumFilesInFirstCorpus; i++) {
  134. auto &Cur = Files[i].Features;
  135. AllFeatures.insert(Cur.begin(), Cur.end());
  136. }
  137. // Remove all features that we already know from all other inputs.
  138. for (size_t i = NumFilesInFirstCorpus; i < Files.size(); i++) {
  139. auto &Cur = Files[i].Features;
  140. std::vector<uint32_t> Tmp;
  141. std::set_difference(Cur.begin(), Cur.end(), AllFeatures.begin(),
  142. AllFeatures.end(), std::inserter(Tmp, Tmp.begin()));
  143. Cur.swap(Tmp);
  144. }
  145. // Sort. Give preference to
  146. // * smaller files
  147. // * files with more features.
  148. std::sort(Files.begin() + NumFilesInFirstCorpus, Files.end(),
  149. [&](const MergeFileInfo &a, const MergeFileInfo &b) -> bool {
  150. if (a.Size != b.Size)
  151. return a.Size < b.Size;
  152. return a.Features.size() > b.Features.size();
  153. });
  154. // One greedy pass: add the file's features to AllFeatures.
  155. // If new features were added, add this file to NewFiles.
  156. for (size_t i = NumFilesInFirstCorpus; i < Files.size(); i++) {
  157. auto &Cur = Files[i].Features;
  158. // Printf("%s -> sz %zd ft %zd\n", Files[i].Name.c_str(),
  159. // Files[i].Size, Cur.size());
  160. bool FoundNewFeatures = false;
  161. for (auto Fe: Cur) {
  162. if (AllFeatures.insert(Fe).second) {
  163. FoundNewFeatures = true;
  164. NewFeatures->insert(Fe);
  165. }
  166. }
  167. if (FoundNewFeatures)
  168. NewFiles->push_back(Files[i].Name);
  169. for (auto Cov : Files[i].Cov)
  170. if (InitialCov.find(Cov) == InitialCov.end())
  171. NewCov->insert(Cov);
  172. }
  173. return NewFeatures->size();
  174. }
  175. std::set<uint32_t> Merger::AllFeatures() const {
  176. std::set<uint32_t> S;
  177. for (auto &File : Files)
  178. S.insert(File.Features.begin(), File.Features.end());
  179. return S;
  180. }
  181. // Inner process. May crash if the target crashes.
  182. void Fuzzer::CrashResistantMergeInternalStep(const std::string &CFPath,
  183. bool IsSetCoverMerge) {
  184. Printf("MERGE-INNER: using the control file '%s'\n", CFPath.c_str());
  185. Merger M;
  186. std::ifstream IF(CFPath);
  187. M.ParseOrExit(IF, false);
  188. IF.close();
  189. if (!M.LastFailure.empty())
  190. Printf("MERGE-INNER: '%s' caused a failure at the previous merge step\n",
  191. M.LastFailure.c_str());
  192. Printf("MERGE-INNER: %zd total files;"
  193. " %zd processed earlier; will process %zd files now\n",
  194. M.Files.size(), M.FirstNotProcessedFile,
  195. M.Files.size() - M.FirstNotProcessedFile);
  196. std::ofstream OF(CFPath, std::ofstream::out | std::ofstream::app);
  197. std::set<size_t> AllFeatures;
  198. auto PrintStatsWrapper = [this, &AllFeatures](const char* Where) {
  199. this->PrintStats(Where, "\n", 0, AllFeatures.size());
  200. };
  201. std::set<const TracePC::PCTableEntry *> AllPCs;
  202. for (size_t i = M.FirstNotProcessedFile; i < M.Files.size(); i++) {
  203. Fuzzer::MaybeExitGracefully();
  204. auto U = FileToVector(M.Files[i].Name);
  205. if (U.size() > MaxInputLen) {
  206. U.resize(MaxInputLen);
  207. U.shrink_to_fit();
  208. }
  209. // Write the pre-run marker.
  210. OF << "STARTED " << i << " " << U.size() << "\n";
  211. OF.flush(); // Flush is important since Command::Execute may crash.
  212. // Run.
  213. TPC.ResetMaps();
  214. ExecuteCallback(U.data(), U.size());
  215. // Collect coverage. We are iterating over the files in this order:
  216. // * First, files in the initial corpus ordered by size, smallest first.
  217. // * Then, all other files, smallest first.
  218. std::set<size_t> Features;
  219. if (IsSetCoverMerge)
  220. TPC.CollectFeatures([&](size_t Feature) { Features.insert(Feature); });
  221. else
  222. TPC.CollectFeatures([&](size_t Feature) {
  223. if (AllFeatures.insert(Feature).second)
  224. Features.insert(Feature);
  225. });
  226. TPC.UpdateObservedPCs();
  227. // Show stats.
  228. if (!(TotalNumberOfRuns & (TotalNumberOfRuns - 1)))
  229. PrintStatsWrapper("pulse ");
  230. if (TotalNumberOfRuns == M.NumFilesInFirstCorpus)
  231. PrintStatsWrapper("LOADED");
  232. // Write the post-run marker and the coverage.
  233. OF << "FT " << i;
  234. for (size_t F : Features)
  235. OF << " " << F;
  236. OF << "\n";
  237. OF << "COV " << i;
  238. TPC.ForEachObservedPC([&](const TracePC::PCTableEntry *TE) {
  239. if (AllPCs.insert(TE).second)
  240. OF << " " << TPC.PCTableEntryIdx(TE);
  241. });
  242. OF << "\n";
  243. OF.flush();
  244. }
  245. PrintStatsWrapper("DONE ");
  246. }
  247. // Merges all corpora into the first corpus. A file is added into
  248. // the first corpus only if it adds new features. Unlike `Merger::Merge`,
  249. // this implementation calculates an approximation of the minimum set
  250. // of corpora files, that cover all known features (set cover problem).
  251. // Generally, this means that files with more features are preferred for
  252. // merge into the first corpus. When two files have the same number of
  253. // features, the smaller one is preferred.
  254. size_t Merger::SetCoverMerge(const std::set<uint32_t> &InitialFeatures,
  255. std::set<uint32_t> *NewFeatures,
  256. const std::set<uint32_t> &InitialCov,
  257. std::set<uint32_t> *NewCov,
  258. std::vector<std::string> *NewFiles) {
  259. assert(NumFilesInFirstCorpus <= Files.size());
  260. NewFiles->clear();
  261. NewFeatures->clear();
  262. NewCov->clear();
  263. std::set<uint32_t> AllFeatures;
  264. // 1 << 21 - 1 is the maximum feature index.
  265. // See 'kFeatureSetSize' in 'FuzzerCorpus.h'.
  266. const uint32_t kFeatureSetSize = 1 << 21;
  267. std::vector<bool> Covered(kFeatureSetSize, false);
  268. size_t NumCovered = 0;
  269. std::set<uint32_t> ExistingFeatures = InitialFeatures;
  270. for (size_t i = 0; i < NumFilesInFirstCorpus; ++i)
  271. ExistingFeatures.insert(Files[i].Features.begin(), Files[i].Features.end());
  272. // Mark the existing features as covered.
  273. for (const auto &F : ExistingFeatures) {
  274. if (!Covered[F % kFeatureSetSize]) {
  275. ++NumCovered;
  276. Covered[F % kFeatureSetSize] = true;
  277. }
  278. // Calculate an underestimation of the set of covered features
  279. // since the `Covered` bitvector is smaller than the feature range.
  280. AllFeatures.insert(F % kFeatureSetSize);
  281. }
  282. std::set<size_t> RemainingFiles;
  283. for (size_t i = NumFilesInFirstCorpus; i < Files.size(); ++i) {
  284. // Construct an incremental sequence which represent the
  285. // indices to all files (excluding those in the initial corpus).
  286. // RemainingFiles = range(NumFilesInFirstCorpus..Files.size()).
  287. RemainingFiles.insert(i);
  288. // Insert this file's unique features to all features.
  289. for (const auto &F : Files[i].Features)
  290. AllFeatures.insert(F % kFeatureSetSize);
  291. }
  292. // Integrate files into Covered until set is complete.
  293. while (NumCovered != AllFeatures.size()) {
  294. // Index to file with largest number of unique features.
  295. size_t MaxFeaturesIndex = NumFilesInFirstCorpus;
  296. // Indices to remove from RemainingFiles.
  297. std::set<size_t> RemoveIndices;
  298. // Running max unique feature count.
  299. // Updated upon finding a file with more features.
  300. size_t MaxNumFeatures = 0;
  301. // Iterate over all files not yet integrated into Covered,
  302. // to find the file which has the largest number of
  303. // features that are not already in Covered.
  304. for (const auto &i : RemainingFiles) {
  305. const auto &File = Files[i];
  306. size_t CurrentUnique = 0;
  307. // Count number of features in this file
  308. // which are not yet in Covered.
  309. for (const auto &F : File.Features)
  310. if (!Covered[F % kFeatureSetSize])
  311. ++CurrentUnique;
  312. if (CurrentUnique == 0) {
  313. // All features in this file are already in Covered: skip next time.
  314. RemoveIndices.insert(i);
  315. } else if (CurrentUnique > MaxNumFeatures ||
  316. (CurrentUnique == MaxNumFeatures &&
  317. File.Size < Files[MaxFeaturesIndex].Size)) {
  318. // Update the max features file based on unique features
  319. // Break ties by selecting smaller files.
  320. MaxNumFeatures = CurrentUnique;
  321. MaxFeaturesIndex = i;
  322. }
  323. }
  324. // Must be a valid index/
  325. assert(MaxFeaturesIndex < Files.size());
  326. // Remove any feature-less files found.
  327. for (const auto &i : RemoveIndices)
  328. RemainingFiles.erase(i);
  329. if (MaxNumFeatures == 0) {
  330. // Did not find a file that adds unique features.
  331. // This means that we should have no remaining files.
  332. assert(RemainingFiles.size() == 0);
  333. assert(NumCovered == AllFeatures.size());
  334. break;
  335. }
  336. // MaxFeaturesIndex must be an element of Remaining.
  337. assert(RemainingFiles.find(MaxFeaturesIndex) != RemainingFiles.end());
  338. // Remove the file with the most features from Remaining.
  339. RemainingFiles.erase(MaxFeaturesIndex);
  340. const auto &MaxFeatureFile = Files[MaxFeaturesIndex];
  341. // Add the features of the max feature file to Covered.
  342. for (const auto &F : MaxFeatureFile.Features) {
  343. if (!Covered[F % kFeatureSetSize]) {
  344. ++NumCovered;
  345. Covered[F % kFeatureSetSize] = true;
  346. NewFeatures->insert(F);
  347. }
  348. }
  349. // Add the index to this file to the result.
  350. NewFiles->push_back(MaxFeatureFile.Name);
  351. // Update NewCov with the additional coverage
  352. // that MaxFeatureFile provides.
  353. for (const auto &C : MaxFeatureFile.Cov)
  354. if (InitialCov.find(C) == InitialCov.end())
  355. NewCov->insert(C);
  356. }
  357. return NewFeatures->size();
  358. }
  359. static size_t
  360. WriteNewControlFile(const std::string &CFPath,
  361. const std::vector<SizedFile> &OldCorpus,
  362. const std::vector<SizedFile> &NewCorpus,
  363. const std::vector<MergeFileInfo> &KnownFiles) {
  364. std::unordered_set<std::string> FilesToSkip;
  365. for (auto &SF: KnownFiles)
  366. FilesToSkip.insert(SF.Name);
  367. std::vector<std::string> FilesToUse;
  368. auto MaybeUseFile = [=, &FilesToUse](std::string Name) {
  369. if (FilesToSkip.find(Name) == FilesToSkip.end())
  370. FilesToUse.push_back(Name);
  371. };
  372. for (auto &SF: OldCorpus)
  373. MaybeUseFile(SF.File);
  374. auto FilesToUseFromOldCorpus = FilesToUse.size();
  375. for (auto &SF: NewCorpus)
  376. MaybeUseFile(SF.File);
  377. RemoveFile(CFPath);
  378. std::ofstream ControlFile(CFPath);
  379. ControlFile << FilesToUse.size() << "\n";
  380. ControlFile << FilesToUseFromOldCorpus << "\n";
  381. for (auto &FN: FilesToUse)
  382. ControlFile << FN << "\n";
  383. if (!ControlFile) {
  384. Printf("MERGE-OUTER: failed to write to the control file: %s\n",
  385. CFPath.c_str());
  386. exit(1);
  387. }
  388. return FilesToUse.size();
  389. }
  390. // Outer process. Does not call the target code and thus should not fail.
  391. void CrashResistantMerge(const std::vector<std::string> &Args,
  392. const std::vector<SizedFile> &OldCorpus,
  393. const std::vector<SizedFile> &NewCorpus,
  394. std::vector<std::string> *NewFiles,
  395. const std::set<uint32_t> &InitialFeatures,
  396. std::set<uint32_t> *NewFeatures,
  397. const std::set<uint32_t> &InitialCov,
  398. std::set<uint32_t> *NewCov, const std::string &CFPath,
  399. bool V, /*Verbose*/
  400. bool IsSetCoverMerge) {
  401. if (NewCorpus.empty() && OldCorpus.empty()) return; // Nothing to merge.
  402. size_t NumAttempts = 0;
  403. std::vector<MergeFileInfo> KnownFiles;
  404. if (FileSize(CFPath)) {
  405. VPrintf(V, "MERGE-OUTER: non-empty control file provided: '%s'\n",
  406. CFPath.c_str());
  407. Merger M;
  408. std::ifstream IF(CFPath);
  409. if (M.Parse(IF, /*ParseCoverage=*/true)) {
  410. VPrintf(V, "MERGE-OUTER: control file ok, %zd files total,"
  411. " first not processed file %zd\n",
  412. M.Files.size(), M.FirstNotProcessedFile);
  413. if (!M.LastFailure.empty())
  414. VPrintf(V, "MERGE-OUTER: '%s' will be skipped as unlucky "
  415. "(merge has stumbled on it the last time)\n",
  416. M.LastFailure.c_str());
  417. if (M.FirstNotProcessedFile >= M.Files.size()) {
  418. // Merge has already been completed with the given merge control file.
  419. if (M.Files.size() == OldCorpus.size() + NewCorpus.size()) {
  420. VPrintf(
  421. V,
  422. "MERGE-OUTER: nothing to do, merge has been completed before\n");
  423. exit(0);
  424. }
  425. // Number of input files likely changed, start merge from scratch, but
  426. // reuse coverage information from the given merge control file.
  427. VPrintf(
  428. V,
  429. "MERGE-OUTER: starting merge from scratch, but reusing coverage "
  430. "information from the given control file\n");
  431. KnownFiles = M.Files;
  432. } else {
  433. // There is a merge in progress, continue.
  434. NumAttempts = M.Files.size() - M.FirstNotProcessedFile;
  435. }
  436. } else {
  437. VPrintf(V, "MERGE-OUTER: bad control file, will overwrite it\n");
  438. }
  439. }
  440. if (!NumAttempts) {
  441. // The supplied control file is empty or bad, create a fresh one.
  442. VPrintf(V, "MERGE-OUTER: "
  443. "%zd files, %zd in the initial corpus, %zd processed earlier\n",
  444. OldCorpus.size() + NewCorpus.size(), OldCorpus.size(),
  445. KnownFiles.size());
  446. NumAttempts = WriteNewControlFile(CFPath, OldCorpus, NewCorpus, KnownFiles);
  447. }
  448. // Execute the inner process until it passes.
  449. // Every inner process should execute at least one input.
  450. Command BaseCmd(Args);
  451. BaseCmd.removeFlag("merge");
  452. BaseCmd.removeFlag("set_cover_merge");
  453. BaseCmd.removeFlag("fork");
  454. BaseCmd.removeFlag("collect_data_flow");
  455. for (size_t Attempt = 1; Attempt <= NumAttempts; Attempt++) {
  456. Fuzzer::MaybeExitGracefully();
  457. VPrintf(V, "MERGE-OUTER: attempt %zd\n", Attempt);
  458. Command Cmd(BaseCmd);
  459. Cmd.addFlag("merge_control_file", CFPath);
  460. // If we are going to use the set cover implementation for
  461. // minimization add the merge_inner=2 internal flag.
  462. Cmd.addFlag("merge_inner", IsSetCoverMerge ? "2" : "1");
  463. if (!V) {
  464. Cmd.setOutputFile(getDevNull());
  465. Cmd.combineOutAndErr();
  466. }
  467. auto ExitCode = ExecuteCommand(Cmd);
  468. if (!ExitCode) {
  469. VPrintf(V, "MERGE-OUTER: successful in %zd attempt(s)\n", Attempt);
  470. break;
  471. }
  472. }
  473. // Read the control file and do the merge.
  474. Merger M;
  475. std::ifstream IF(CFPath);
  476. IF.seekg(0, IF.end);
  477. VPrintf(V, "MERGE-OUTER: the control file has %zd bytes\n",
  478. (size_t)IF.tellg());
  479. IF.seekg(0, IF.beg);
  480. M.ParseOrExit(IF, true);
  481. IF.close();
  482. VPrintf(V,
  483. "MERGE-OUTER: consumed %zdMb (%zdMb rss) to parse the control file\n",
  484. M.ApproximateMemoryConsumption() >> 20, GetPeakRSSMb());
  485. M.Files.insert(M.Files.end(), KnownFiles.begin(), KnownFiles.end());
  486. if (IsSetCoverMerge)
  487. M.SetCoverMerge(InitialFeatures, NewFeatures, InitialCov, NewCov, NewFiles);
  488. else
  489. M.Merge(InitialFeatures, NewFeatures, InitialCov, NewCov, NewFiles);
  490. VPrintf(V, "MERGE-OUTER: %zd new files with %zd new features added; "
  491. "%zd new coverage edges\n",
  492. NewFiles->size(), NewFeatures->size(), NewCov->size());
  493. }
  494. } // namespace fuzzer