From c8f69d069eede251a0418fa2346ab84ac153dd68 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 29 Jan 2015 17:16:23 +0000 Subject: [PATCH] [fuzzer] minor cleanup based on reviews: remove redundant includes, fix a copy-pasto in tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227468 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Fuzzer/FuzzerLoop.cpp | 2 -- lib/Fuzzer/test/InfiniteTest.cpp | 2 +- lib/Fuzzer/test/TimeoutTest.cpp | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Fuzzer/FuzzerLoop.cpp b/lib/Fuzzer/FuzzerLoop.cpp index 1f2193a45b3..dcfc965f6bf 100644 --- a/lib/Fuzzer/FuzzerLoop.cpp +++ b/lib/Fuzzer/FuzzerLoop.cpp @@ -12,9 +12,7 @@ #include "FuzzerInternal.h" #include #include -#include #include -#include // This function should be defined by the user. extern "C" void TestOneInput(const uint8_t *Data, size_t Size); diff --git a/lib/Fuzzer/test/InfiniteTest.cpp b/lib/Fuzzer/test/InfiniteTest.cpp index ee1635d1996..dcb3030413b 100644 --- a/lib/Fuzzer/test/InfiniteTest.cpp +++ b/lib/Fuzzer/test/InfiniteTest.cpp @@ -12,7 +12,7 @@ extern "C" void TestOneInput(const uint8_t *Data, size_t Size) { if (Size > 1 && Data[1] == 'i') { Sink = 2; if (Size > 2 && Data[2] == '!') { - Size = 2; + Sink = 2; } } } diff --git a/lib/Fuzzer/test/TimeoutTest.cpp b/lib/Fuzzer/test/TimeoutTest.cpp index 266ead646a5..23683ce866c 100644 --- a/lib/Fuzzer/test/TimeoutTest.cpp +++ b/lib/Fuzzer/test/TimeoutTest.cpp @@ -12,7 +12,7 @@ extern "C" void TestOneInput(const uint8_t *Data, size_t Size) { if (Size > 1 && Data[1] == 'i') { Sink = 2; if (Size > 2 && Data[2] == '!') { - Size = 2; + Sink = 2; while (Sink) ; }