Show More
@@ -14,6 +14,11 b'' | |||||
14 | extern "C" { |
|
14 | extern "C" { | |
15 | #include "bdiff.h" |
|
15 | #include "bdiff.h" | |
16 |
|
16 | |||
|
17 | extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) | |||
|
18 | { | |||
|
19 | return 0; | |||
|
20 | } | |||
|
21 | ||||
17 | int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) |
|
22 | int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) | |
18 | { |
|
23 | { | |
19 | FuzzedDataProvider provider(Data, Size); |
|
24 | FuzzedDataProvider provider(Data, Size); |
@@ -14,6 +14,11 b'' | |||||
14 |
|
14 | |||
15 | #include "fuzzutil.h" |
|
15 | #include "fuzzutil.h" | |
16 |
|
16 | |||
|
17 | extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) | |||
|
18 | { | |||
|
19 | return 0; | |||
|
20 | } | |||
|
21 | ||||
17 | // To avoid having too many OOMs from the fuzzer infrastructure, we'll |
|
22 | // To avoid having too many OOMs from the fuzzer infrastructure, we'll | |
18 | // skip patch application if the resulting fulltext would be bigger |
|
23 | // skip patch application if the resulting fulltext would be bigger | |
19 | // than 10MiB. |
|
24 | // than 10MiB. |
@@ -14,6 +14,11 b'' | |||||
14 |
|
14 | |||
15 | extern "C" { |
|
15 | extern "C" { | |
16 |
|
16 | |||
|
17 | int LLVMFuzzerInitialize(int *argc, char ***argv) | |||
|
18 | { | |||
|
19 | return 0; | |||
|
20 | } | |||
|
21 | ||||
17 | int hunk_consumer(long a1, long a2, long b1, long b2, void *priv) |
|
22 | int hunk_consumer(long a1, long a2, long b1, long b2, void *priv) | |
18 | { |
|
23 | { | |
19 | // TODO: probably also test returning -1 from this when things break? |
|
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