George Karpenkov | 10ab2ac | 2017-08-21 23:25:50 +0000 | [diff] [blame] | 1 | // This file is distributed under the University of Illinois Open Source |
2 | // License. See LICENSE.TXT for details. | ||||
3 | |||||
4 | // Make sure LLVMFuzzerInitialize does not change argv[0]. | ||||
5 | #include <stddef.h> | ||||
6 | #include <stdint.h> | ||||
7 | |||||
8 | extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) { | ||||
9 | ***argv = 'X'; | ||||
10 | return 0; | ||||
11 | } | ||||
12 | |||||
13 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { | ||||
14 | return 0; | ||||
15 | } |