MCPcopy Create free account
hub / github.com/HexHive/NASS / ReadCoverage

Method ReadCoverage

fuzz/libfuzzer/FuzzerDataFlowTrace.cpp:106–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void DataFlowTrace::ReadCoverage(const std::string &DirPath) {
107 std::vector<SizedFile> Files;
108 GetSizedFilesFromDir(DirPath, &Files);
109 for (auto &SF : Files) {
110 auto Name = Basename(SF.File);
111 if (Name == kFunctionsTxt) continue;
112 if (!CorporaHashes.count(Name)) continue;
113 std::ifstream IF(SF.File);
114 Coverage.AppendCoverage(IF);
115 }
116}
117
118static void DFTStringAppendToVector(std::vector<uint8_t> *DFT,
119 const std::string &DFTString) {

Callers

nothing calls this directly

Calls 4

GetSizedFilesFromDirFunction · 0.85
AppendCoverageMethod · 0.80
BasenameFunction · 0.70
countMethod · 0.45

Tested by

no test coverage detected