1 // This file is distributed under the University of Illinois Open Source 2 // License. See LICENSE.TXT for details. 3 4 // When tracing data flow, explode the number of DFSan labels. 5 #include <cstddef> 6 #include <cstdint> 7 8 static volatile int sink; 9 10 __attribute__((noinline)) 11 void f(uint8_t a, uint8_t b, uint8_t c, uint8_t d) { 12 if (a == b + 1 && c == d + 2) 13 sink++; 14 } 15 16 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { 17 for (size_t a = 0; a < Size; a++) 18 for (size_t b = 0; b < Size; b++) 19 for (size_t c = 0; c < Size; c++) 20 for (size_t d = 0; d < Size; d++) 21 f(Data[a], Data[b], Data[c], Data[d]); 22 return 0; 23 } 24