projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[libFuzzer] actually make the dictionaries work (+docs)
[oota-llvm.git]
/
lib
/
Fuzzer
/
FuzzerLoop.cpp
diff --git
a/lib/Fuzzer/FuzzerLoop.cpp
b/lib/Fuzzer/FuzzerLoop.cpp
index dd81616b4558e9d8065ecfe68c8a6ac8225fd52a..e65bd331430989c3092dce4d470d30d9e880fef5 100644
(file)
--- a/
lib/Fuzzer/FuzzerLoop.cpp
+++ b/
lib/Fuzzer/FuzzerLoop.cpp
@@
-328,6
+328,9
@@
void Fuzzer::MutateAndTestOne(Unit *U) {
}
void Fuzzer::Loop(size_t NumIterations) {
+ for (auto &U: Options.Dictionary)
+ USF.GetMD().AddWordToDictionary(U.data(), U.size());
+
for (size_t i = 1; i <= NumIterations; i++) {
for (size_t J1 = 0; J1 < Corpus.size(); J1++) {
SyncCorpus();