1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

[fuzzer] minor cleanup based on reviews: remove redundant includes, fix a copy-pasto in tests

llvm-svn: 227468
This commit is contained in:
Kostya Serebryany 2015-01-29 17:16:23 +00:00
parent f609f98508
commit 51955d2781
3 changed files with 2 additions and 4 deletions

View File

@ -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);

View File

@ -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;
}
}
}

View File

@ -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)
;
}