Skip to content

Commit

Permalink
[libFuzzer] Expose fuzzer::FuzzerDriver()
Browse files Browse the repository at this point in the history
Summary:
Allows other-language libFuzzer derivatives to invoke the driver.

Patch By: Ian Eldred Pudney <ipudney@google.com>

Reviewers: morehouse, kcc

Reviewed By: morehouse

Subscribers: #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D84425
  • Loading branch information
hctim committed Jul 23, 2020
1 parent 3b10e42 commit 22a376e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler-rt/lib/fuzzer/FuzzerDefs.h
Expand Up @@ -20,6 +20,7 @@
#include <string>
#include <vector>

#include "FuzzerPlatform.h"

namespace fuzzer {

Expand Down Expand Up @@ -62,7 +63,8 @@ typedef Vector<uint8_t> Unit;
typedef Vector<Unit> UnitVector;
typedef int (*UserCallback)(const uint8_t *Data, size_t Size);

int FuzzerDriver(int *argc, char ***argv, UserCallback Callback);
ATTRIBUTE_INTERFACE int FuzzerDriver(int *argc, char ***argv,
UserCallback Callback);

uint8_t *ExtraCountersBegin();
uint8_t *ExtraCountersEnd();
Expand Down

0 comments on commit 22a376e

Please sign in to comment.