This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Extend the fuzz target intarface to allow -1 return value.
ClosedPublic

Authored by kcc on Jun 28 2022, 11:43 AM.

Details

Summary

With this change, fuzz targets may choose to return -1
to indicate that the input should not be added to the corpus
regardless of the coverage it generated.

Diff Detail

Event Timeline

kcc created this revision.Jun 28 2022, 11:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2022, 11:43 AM
Herald added a subscriber: Enna1. · View Herald Transcript
kcc updated this revision to Diff 440711.Jun 28 2022, 11:50 AM

fix typo

kcc published this revision for review.Jun 28 2022, 11:52 AM
kcc added reviewers: vitalybuka, morehouse.
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 28 2022, 11:52 AM
Herald added subscribers: llvm-commits, Restricted Project. · View Herald Transcript
morehouse accepted this revision.Jun 29 2022, 8:19 AM
morehouse added inline comments.
compiler-rt/lib/fuzzer/FuzzerLoop.cpp
615

Since CBRes is used in the return, I think we can remove this void cast.

This revision is now accepted and ready to land.Jun 29 2022, 8:19 AM
kcc updated this revision to Diff 441094.Jun 29 2022, 11:12 AM

removed unneeded (void)CBRes;

kcc marked an inline comment as done.Jun 29 2022, 11:12 AM
This revision was landed with ongoing or failed builds.Jun 30 2022, 1:21 PM
This revision was automatically updated to reflect the committed changes.