[llvm] r227468 - [fuzzer] minor cleanup based on reviews: remove redundant includes, fix a copy-pasto in tests
Kostya Serebryany
kcc at google.com
Thu Jan 29 09:16:23 PST 2015
Author: kcc
Date: Thu Jan 29 11:16:23 2015
New Revision: 227468
URL: http://llvm.org/viewvc/llvm-project?rev=227468&view=rev
Log:
[fuzzer] minor cleanup based on reviews: remove redundant includes, fix a copy-pasto in tests
Modified:
llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
llvm/trunk/lib/Fuzzer/test/InfiniteTest.cpp
llvm/trunk/lib/Fuzzer/test/TimeoutTest.cpp
Modified: llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp?rev=227468&r1=227467&r2=227468&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp Thu Jan 29 11:16:23 2015
@@ -12,9 +12,7 @@
#include "FuzzerInternal.h"
#include <sanitizer/asan_interface.h>
#include <algorithm>
-#include <string>
#include <iostream>
-#include <stdlib.h>
// This function should be defined by the user.
extern "C" void TestOneInput(const uint8_t *Data, size_t Size);
Modified: llvm/trunk/lib/Fuzzer/test/InfiniteTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/InfiniteTest.cpp?rev=227468&r1=227467&r2=227468&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/InfiniteTest.cpp (original)
+++ llvm/trunk/lib/Fuzzer/test/InfiniteTest.cpp Thu Jan 29 11:16:23 2015
@@ -12,7 +12,7 @@ extern "C" void TestOneInput(const uint8
if (Size > 1 && Data[1] == 'i') {
Sink = 2;
if (Size > 2 && Data[2] == '!') {
- Size = 2;
+ Sink = 2;
}
}
}
Modified: llvm/trunk/lib/Fuzzer/test/TimeoutTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/TimeoutTest.cpp?rev=227468&r1=227467&r2=227468&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/TimeoutTest.cpp (original)
+++ llvm/trunk/lib/Fuzzer/test/TimeoutTest.cpp Thu Jan 29 11:16:23 2015
@@ -12,7 +12,7 @@ extern "C" void TestOneInput(const uint8
if (Size > 1 && Data[1] == 'i') {
Sink = 2;
if (Size > 2 && Data[2] == '!') {
- Size = 2;
+ Sink = 2;
while (Sink)
;
}
More information about the llvm-commits
mailing list