Page MenuHomePhabricator

[compiler-rt][fuzzer] Make fuzzer interface header public
Needs ReviewPublic

Authored by tomilov on Dec 4 2020, 1:10 PM.



Make FuzzerInterface.h publicly available to ease writing custom structure-aware fuzzers.

Diff Detail

Event Timeline

tomilov created this revision.Dec 4 2020, 1:10 PM
tomilov requested review of this revision.Dec 4 2020, 1:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2020, 1:10 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Currently it is just a copy of compiler-rt/lib/fuzzer/FuzzerInterface.h with s/dllexport/dllimport, because I want to start a discussion. Really it would be convenient to be able just to include such interface header.

kcc added a comment.Dec 4 2020, 1:30 PM

This header is intentionally private, so that the fuzz targets remain engine-neutral.

When function LLVMFuzzerTestOneInput is defined, one immediately get dependence on libFuzzer because of LLVM prefix, isn't it?