This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Use ChooseUnitIdxToMutate to pick item for crossover.
ClosedPublic

Authored by vitalybuka on Mar 7 2017, 1:10 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

vitalybuka created this revision.Mar 7 2017, 1:10 AM
kcc removed a reviewer: kcc.Mar 7 2017, 12:24 PM
kcc edited edge metadata.

don't forget to CC llvm-commits

lib/Fuzzer/FuzzerMutate.h
91 ↗(On Diff #90813)

No.
Instead, please make ChooseUnitIdxToMutate const.

kcc accepted this revision.Mar 7 2017, 12:37 PM

LGTM
Ah, I see.
piecewise_constant_distribution::operator() is not const.

This revision is now accepted and ready to land.Mar 7 2017, 12:37 PM
vitalybuka added inline comments.Mar 7 2017, 12:37 PM
lib/Fuzzer/FuzzerMutate.h
91 ↗(On Diff #90813)

ChooseUnitIdxToMutate needs mutable CorpusDistribution

This revision was automatically updated to reflect the committed changes.