Show More
@@ -17,8 +17,12 b'' | |||||
17 | // We deliberately keep this inteface simple and header-free. |
|
17 | // We deliberately keep this inteface simple and header-free. | |
18 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size); |
|
18 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size); | |
19 |
|
19 | |||
|
20 | extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv); | |||
|
21 | ||||
20 | int main(int argc, char **argv) |
|
22 | int main(int argc, char **argv) | |
21 | { |
|
23 | { | |
|
24 | LLVMFuzzerInitialize(&argc, &argv); | |||
|
25 | ||||
22 | for (int i = 1; i < argc; i++) { |
|
26 | for (int i = 1; i < argc; i++) { | |
23 | std::ifstream in(argv[i]); |
|
27 | std::ifstream in(argv[i]); | |
24 | in.seekg(0, in.end); |
|
28 | in.seekg(0, in.end); |
General Comments 0
You need to be logged in to leave comments.
Login now