diff options
| author | 2017-01-14 19:55:43 +0000 | |
|---|---|---|
| committer | 2017-01-14 19:55:43 +0000 | |
| commit | bd3306aecb3a15e8967143b8cdbbccf2b1b19b74 (patch) | |
| tree | 309a8132b44564b9e634c0da6815187ce8eab27c /gnu/llvm/lib/Fuzzer/FuzzerMain.cpp | |
| parent | killp -a should not kill the window if only one pane. (diff) | |
| download | wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.tar.xz wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.zip | |
Import LLVM 3.9.1 including clang and lld.
Diffstat (limited to 'gnu/llvm/lib/Fuzzer/FuzzerMain.cpp')
| -rw-r--r-- | gnu/llvm/lib/Fuzzer/FuzzerMain.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/llvm/lib/Fuzzer/FuzzerMain.cpp b/gnu/llvm/lib/Fuzzer/FuzzerMain.cpp index c5af5b05909..55f1687b5f0 100644 --- a/gnu/llvm/lib/Fuzzer/FuzzerMain.cpp +++ b/gnu/llvm/lib/Fuzzer/FuzzerMain.cpp @@ -12,9 +12,11 @@ #include "FuzzerInterface.h" #include "FuzzerInternal.h" +extern "C" { // This function should be defined by the user. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); +int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); +} // extern "C" int main(int argc, char **argv) { - return fuzzer::FuzzerDriver(argc, argv, LLVMFuzzerTestOneInput); + return fuzzer::FuzzerDriver(&argc, &argv, LLVMFuzzerTestOneInput); } |
