From 20bb5e71b25ba3f2debef4035dc8b5def7d1763c Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Fri, 2 Oct 2015 23:34:06 +0000 Subject: [libFuzzer] make LLVMFuzzerTestOneInput (the fuzzer target function) return int instead of void. The actual return value is not *yet* used (and expected to be 0). This change is API breaking, so the fuzzers will need to be updated. llvm-svn: 249214 --- llvm/lib/Fuzzer/FuzzerMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Fuzzer/FuzzerMain.cpp') diff --git a/llvm/lib/Fuzzer/FuzzerMain.cpp b/llvm/lib/Fuzzer/FuzzerMain.cpp index c4dffb4..c5af5b05 100644 --- a/llvm/lib/Fuzzer/FuzzerMain.cpp +++ b/llvm/lib/Fuzzer/FuzzerMain.cpp @@ -13,7 +13,7 @@ #include "FuzzerInternal.h" // This function should be defined by the user. -extern "C" void LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); int main(int argc, char **argv) { return fuzzer::FuzzerDriver(argc, argv, LLVMFuzzerTestOneInput); -- cgit v1.1