diff options
author | Kostya Serebryany <kcc@google.com> | 2018-07-19 01:23:32 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2018-07-19 01:23:32 +0000 |
commit | b245ab336ef0cef374b36d0fa4be432b3e6afcd2 (patch) | |
tree | c20a0ef23c15af14c1c7be55749b4ed7b4dba6b2 /lib/fuzzer/FuzzerDataFlowTrace.h | |
parent | 385df7539a532c43119655dec04b7ac50111b2cb (diff) |
[libFuzzer] first experimental attempt at DFT-based mutations (DFT=data-flow-trace)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@337434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerDataFlowTrace.h')
-rw-r--r-- | lib/fuzzer/FuzzerDataFlowTrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuzzer/FuzzerDataFlowTrace.h b/lib/fuzzer/FuzzerDataFlowTrace.h index 1511430c3..ad4faeab7 100644 --- a/lib/fuzzer/FuzzerDataFlowTrace.h +++ b/lib/fuzzer/FuzzerDataFlowTrace.h @@ -40,7 +40,7 @@ class DataFlowTrace { public: void Init(const std::string &DirPath, const std::string &FocusFunction); void Clear() { Traces.clear(); } - const Vector<bool> *Get(const std::string &InputSha1) const { + const Vector<uint8_t> *Get(const std::string &InputSha1) const { auto It = Traces.find(InputSha1); if (It != Traces.end()) return &It->second; @@ -49,7 +49,7 @@ class DataFlowTrace { private: // Input's sha1 => DFT for the FocusFunction. - std::unordered_map<std::string, Vector<bool> > Traces; + std::unordered_map<std::string, Vector<uint8_t> > Traces; }; } // namespace fuzzer |