[PATCH] D20741: [LibFuzzer] Reimplement how the optional user functions are called.

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 19:56:52 PDT 2016


kcc added inline comments.

================
Comment at: lib/Fuzzer/FuzzerExtFunctions.def:19
@@ +18,3 @@
+EXT_FUNC(LLVMFuzzerInitialize, int, (int *argc, char ***argv), false);
+EXT_FUNC(LLVMFuzzerCustomMutator, size_t, (uint8_t *Data, size_t Size, size_t MaxSize, unsigned int Seed), false);
+
----------------
80 chars per line

================
Comment at: lib/Fuzzer/FuzzerExtFunctions.h:23
@@ +22,3 @@
+  void Init();
+
+#define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN)                            \
----------------
delcypher wrote:
> @kcc This (not using `ExternalFunctions::ExternalFunctions`) is the only issue you raised that I haven't tackled. What would you like to do here?
Use a CTOR


http://reviews.llvm.org/D20741





More information about the llvm-commits mailing list