This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Fallback to default Mutate when MutateWithMask fails.
ClosedPublic

Authored by Dor1s on Apr 11 2019, 8:21 AM.

Details

Summary

In case the current corpus input doesn't have bytes going into the
focus function, MutateWithMask is useless and may fail gently, allowing the
default mutation routine happen, rather than crashing on an assertion.

For more context and the initial fix suggestion, see:
https://github.com/google/oss-fuzz/issues/1632#issuecomment-481862879

Diff Detail

Event Timeline

Dor1s created this revision.Apr 11 2019, 8:21 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 11 2019, 8:21 AM
Herald added subscribers: Restricted Project, delcypher. · View Herald Transcript
kcc accepted this revision.Apr 11 2019, 9:14 AM
This revision is now accepted and ready to land.Apr 11 2019, 9:14 AM
This revision was automatically updated to reflect the committed changes.