1 // Simple test for a fuzzer.
2 // The fuzzer must find a string based on dictionary words:
11 static volatile int Zero = 0;
13 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
14 const char *Expected = "ElvisPresley";
15 if (Size < strlen(Expected)) return 0;
17 for (size_t i = 0; Expected[i]; i++)
18 if (Expected[i] + Zero == Data[i])
20 if (Match == strlen(Expected)) {
21 std::cout << "BINGO; Found the target, exiting\n";