This is an archive of the discontinued LLVM Phabricator instance.

Add ExternalFunctions to fuzzer::TestEnvironment.
AbandonedPublic

Authored by aarongreen on Jan 12 2021, 9:36 AM.

Details

Summary

For tests that need to use fuzzer::EF, this change moves the unique_ptr holding the ExternalFunctions to the global test environment. This simplifies writing individual tests and mitigates one source of errors during test tear-down and repetition, e.g when using --gtest_repeat=<n>.

This is change 8 of (at least) 18 for cross-process fuzzing support.

Diff Detail

Event Timeline

aarongreen requested review of this revision.Jan 12 2021, 9:36 AM
aarongreen created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2021, 9:36 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
aarongreen updated this revision to Diff 321774.Feb 5 2021, 8:41 AM
This revision is now accepted and ready to land.Feb 8 2021, 12:03 PM
charco accepted this revision.Mar 11 2021, 3:04 PM
aarongreen abandoned this revision.Sep 1 2021, 9:01 AM

Multiprocess fuzzing will not be supported by the libFuzzer maintainers. Fuchsia has implemented a new approach with their Component Fuzzing Framework (RFC-117).