diff options
author | Kostya Serebryany <kcc@google.com> | 2018-06-07 01:40:20 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2018-06-07 01:40:20 +0000 |
commit | 67af99235fa24c031a0efcd074b401c66b843f0c (patch) | |
tree | c347b77e257d8ed7dc1443060a61b74e1d93b786 /compiler-rt/lib/fuzzer/FuzzerDataFlowTrace.cpp | |
parent | 177b458c8a42e5edac291ab39e90012b3df63090 (diff) | |
download | bcm5719-llvm-67af99235fa24c031a0efcd074b401c66b843f0c.tar.gz bcm5719-llvm-67af99235fa24c031a0efcd074b401c66b843f0c.zip |
[libFuzzer] make the corpus elements aware of their data flow traces
llvm-svn: 334158
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerDataFlowTrace.cpp')
-rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerDataFlowTrace.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerDataFlowTrace.cpp b/compiler-rt/lib/fuzzer/FuzzerDataFlowTrace.cpp index 69efd6f38b5..114034c5b42 100644 --- a/compiler-rt/lib/fuzzer/FuzzerDataFlowTrace.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerDataFlowTrace.cpp @@ -73,6 +73,7 @@ void DataFlowTrace::Init(const std::string &DirPath, ParseError("the trace should contain only 0 or 1"); V[I] = Beg[I] == '1'; } + Traces[Name] = V; // Print just a few small traces. if (NumTracesWithFocusFunction <= 3 && Len <= 16) Printf("%s => |%s|\n", Name.c_str(), L.c_str() + SpacePos + 1); |