##// END OF EJS Templates
fuzz: always define LLVMFuzzerInitialize() even if we don't need it...
Augie Fackler -
r44261:51a99e09 default
parent child Browse files
Show More
@@ -14,6 +14,11
14 14 extern "C" {
15 15 #include "bdiff.h"
16 16
17 extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
18 {
19 return 0;
20 }
21
17 22 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
18 23 {
19 24 FuzzedDataProvider provider(Data, Size);
@@ -14,6 +14,11
14 14
15 15 #include "fuzzutil.h"
16 16
17 extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
18 {
19 return 0;
20 }
21
17 22 // To avoid having too many OOMs from the fuzzer infrastructure, we'll
18 23 // skip patch application if the resulting fulltext would be bigger
19 24 // than 10MiB.
@@ -14,6 +14,11
14 14
15 15 extern "C" {
16 16
17 int LLVMFuzzerInitialize(int *argc, char ***argv)
18 {
19 return 0;
20 }
21
17 22 int hunk_consumer(long a1, long a2, long b1, long b2, void *priv)
18 23 {
19 24 // TODO: probably also test returning -1 from this when things break?
General Comments 0
You need to be logged in to leave comments. Login now