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

Function add_coverage

fans/fuzzer-engine/fuzzer-coverage/src/coverage.cpp:29–38  ·  view source on GitHub ↗

add a new coverage map to the map of explored coverage maps

Source from the content-addressed store, hash-verified

27
28// add a new coverage map to the map of explored coverage maps
29void add_coverage(std::string sha1, const char* hashes_path){
30 FUZZER_LOGI("adding cov map hash: %s", sha1.c_str());
31 seen_maps.insert(sha1);
32 std::ofstream file(hashes_path, std::ios::app);
33 if(!file){
34 return;
35 }
36 file << sha1 << '\n';
37 file.close();
38}
39
40// check if the coverage map has been previously seen or not
41int new_coverage(unsigned char* coverage_map, int coverage_map_size, const char* hashes_path){

Callers 1

new_coverageFunction · 0.70

Calls 3

insertMethod · 0.80
c_strMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected