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/tests | |
| 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/tests')
| -rw-r--r-- | compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp b/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp index 0b8673876a9..1b3a0934a68 100644 --- a/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp +++ b/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp @@ -582,12 +582,13 @@ TEST(FuzzerUtil, Base64) { } TEST(Corpus, Distribution) { + DataFlowTrace DFT; Random Rand(0); std::unique_ptr<InputCorpus> C(new InputCorpus("")); size_t N = 10; size_t TriesPerUnit = 1<<16; for (size_t i = 0; i < N; i++) - C->AddToCorpus(Unit{ static_cast<uint8_t>(i) }, 1, false, false, {}); + C->AddToCorpus(Unit{ static_cast<uint8_t>(i) }, 1, false, false, {}, DFT); Vector<size_t> Hist(N); for (size_t i = 0; i < N * TriesPerUnit; i++) { |

