This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Update InputInfo.TimeOfUnit when replacing it in the corpus.
ClosedPublic

Authored by pzread on Oct 8 2021, 7:23 PM.

Details

Summary

Previously, when the fuzzing loop replaced an input in the corpus, it didn't update the execution time of the input. Therefore, some schedulers (e.g. Entropic) would adjust weights based on the incorrect execution time.

This patch updates the execution time of the input when replacing it.

Diff Detail

Event Timeline

pzread requested review of this revision.Oct 8 2021, 7:23 PM
pzread created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 8 2021, 7:23 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
pzread edited the summary of this revision. (Show Details)Oct 8 2021, 7:28 PM
pzread added reviewers: kcc, morehouse.
pzread edited the summary of this revision. (Show Details)Oct 8 2021, 7:36 PM
pzread updated this revision to Diff 378403.Oct 8 2021, 7:59 PM

Fix format.

morehouse accepted this revision.Oct 20 2021, 6:10 AM

Thanks for the fix!

This revision is now accepted and ready to land.Oct 20 2021, 6:10 AM