1 // This file is distributed under the University of Illinois Open Source
2 // License. See LICENSE.TXT for details.
4 // Simple test for a fuzzer: find interesting value of array index.
11 static volatile int Sink;
12 const int kArraySize = 1234567;
13 int array[kArraySize];
15 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
16 if (Size < 8) return 0;
19 Sink = array[a % (kArraySize + 1)];