1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <stdint.h> 4 crashme(const uint8_t * Data,size_t Size)5void __attribute__((noinline)) crashme(const uint8_t *Data, size_t Size) { 6 7 if (Size < 5) return; 8 9 if (Data[0] == 'F') 10 if (Data[1] == 'A') 11 if (Data[2] == '$') 12 if (Data[3] == '$') 13 if (Data[4] == '$') abort(); 14 15 } 16 LLVMFuzzerTestOneInput(const uint8_t * Data,size_t Size)17int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { 18 19 if (Size) crashme(Data, Size); 20 21 return 0; 22 23 } 24 25