Comments
Patch
@@ -14,6 +14,11 @@
extern "C" {
+int LLVMFuzzerInitialize(int *argc, char ***argv)
+{
+ return 0;
+}
+
int hunk_consumer(long a1, long a2, long b1, long b2, void *priv)
{
// TODO: probably also test returning -1 from this when things break?
@@ -14,6 +14,11 @@
#include "fuzzutil.h"
+extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
+{
+ return 0;
+}
+
// To avoid having too many OOMs from the fuzzer infrastructure, we'll
// skip patch application if the resulting fulltext would be bigger
// than 10MiB.
@@ -14,6 +14,11 @@
extern "C" {
#include "bdiff.h"
+extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
+{
+ return 0;
+}
+
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
{
FuzzedDataProvider provider(Data, Size);