diff options
Diffstat (limited to 'llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp b/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp index d0954296362..1957c1f90fc 100644 --- a/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp +++ b/llvm/lib/Fuzzer/test/ShrinkControlFlowTest.cpp @@ -10,6 +10,10 @@ static volatile int Sink; +void Foo() { + Sink++; +} + extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { int8_t Ids[256]; memset(Ids, -1, sizeof(Ids)); @@ -20,8 +24,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { int U = Ids[(unsigned char)'U']; int Z = Ids[(unsigned char)'Z']; if (F >= 0 && U > F && Z > U) { - Sink++; - //fprintf(stderr, "IDS: %d %d %d\n", F, U, Z); + Foo(); } return 0; } |