| 60 | static bool init = false; |
| 61 | |
| 62 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) |
| 63 | { |
| 64 | if (!init) |
| 65 | { |
| 66 | init = true; |
| 67 | FuzzInit(); |
| 68 | } |
| 69 | |
| 70 | trimwhitespace(Data, Size); |
| 71 | if (Size == 0) |
| 72 | return 0; |
| 73 | |
| 74 | gApp->PrepareCompiler(); |
| 75 | |
| 76 | bool ready = gApp->QueueFile((char*)Data, Size); |
| 77 | |
| 78 | //if (ready) |
| 79 | // ready = gApp->QueuePath("./corlib/src"); |
| 80 | |
| 81 | //if (ready) |
| 82 | // gApp->Compile(); |
| 83 | |
| 84 | gApp->ReleaseCompiler(); |
| 85 | |
| 86 | return 0; |
| 87 | } |
nothing calls this directly
no test coverage detected