diff options
author | van Hauser <vh@thc.org> | 2021-01-20 19:12:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 19:12:52 +0100 |
commit | 068bef5eab942df0a133c92522f2ab81b28ac636 (patch) | |
tree | 4689cb46e0d543af889609e260b1ff03455a2701 /custom_mutators/libfuzzer/FuzzerDataFlowTrace.cpp | |
parent | 271116f8705e08d1b4f924cda6c6cae1b0b5de2b (diff) | |
parent | b9e855b7b5ef3d7f367b32ee03459a9f5b21360f (diff) | |
download | afl++-068bef5eab942df0a133c92522f2ab81b28ac636.tar.gz |
Merge pull request #691 from AFLplusplus/dev
push to stable
Diffstat (limited to 'custom_mutators/libfuzzer/FuzzerDataFlowTrace.cpp')
-rw-r--r-- | custom_mutators/libfuzzer/FuzzerDataFlowTrace.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/custom_mutators/libfuzzer/FuzzerDataFlowTrace.cpp b/custom_mutators/libfuzzer/FuzzerDataFlowTrace.cpp index 797a52a7..489665f7 100644 --- a/custom_mutators/libfuzzer/FuzzerDataFlowTrace.cpp +++ b/custom_mutators/libfuzzer/FuzzerDataFlowTrace.cpp @@ -246,7 +246,7 @@ bool DataFlowTrace::Init(const std::string &DirPath, std::string *FocusFunction, } - if (!NumFunctions || FocusFuncIdx == SIZE_MAX || Files.size() <= 1) + if (FocusFuncIdx == SIZE_MAX || Files.size() <= 1) return false; // Read traces. @@ -259,8 +259,8 @@ bool DataFlowTrace::Init(const std::string &DirPath, std::string *FocusFunction, if (!CorporaHashes.count(Name)) continue; // not in the corpus. NumTraceFiles++; // Printf("=== %s\n", Name.c_str()); - std::ifstream IF(SF.File); - while (std::getline(IF, L, '\n')) { + std::ifstream IF2(SF.File); + while (std::getline(IF2, L, '\n')) { size_t FunctionNum = 0; std::string DFTString; @@ -314,8 +314,8 @@ int CollectDataFlow(const std::string &DFTBinary, const std::string &DirPath, // we then request tags in [0,Size/2) and [Size/2, Size), and so on. // Function number => DFT. auto OutPath = DirPlusFile(DirPath, Hash(FileToVector(F.File))); - std::unordered_map<size_t, Vector<uint8_t>> DFTMap; - std::unordered_set<std::string> Cov; +// std::unordered_map<size_t, Vector<uint8_t>> DFTMap; +// std::unordered_set<std::string> Cov; Command Cmd; Cmd.addArgument(DFTBinary); Cmd.addArgument(F.File); |