forked from OSchip/llvm-project
[libFuzzer] do the merge faster and a bit less precise
llvm-svn: 269497
This commit is contained in:
parent
109ff37430
commit
a0788e7dd4
|
@ -549,9 +549,10 @@ UnitVector Fuzzer::FindExtraUnits(const UnitVector &Initial,
|
||||||
PrintStats(Stat);
|
PrintStats(Stat);
|
||||||
|
|
||||||
size_t NewSize = Corpus.size();
|
size_t NewSize = Corpus.size();
|
||||||
|
assert(NewSize <= OldSize);
|
||||||
Res.swap(Corpus);
|
Res.swap(Corpus);
|
||||||
|
|
||||||
if (NewSize == OldSize)
|
if (NewSize + 5 >= OldSize)
|
||||||
break;
|
break;
|
||||||
OldSize = NewSize;
|
OldSize = NewSize;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue