1 // Simple test for a fuzzer. The fuzzer must find several narrow ranges.
7 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
8 if (Size < 14) return 0;
14 memcpy(&y, Data + Size - 8, 8);
15 memcpy(&z, Data + Size / 2, sizeof(z));
16 memcpy(&a, Data + Size / 2 + 4, sizeof(a));
26 fprintf(stderr, "BINGO; Found the target: size %zd (%zd, %zd, %d, %d), exiting.\n",