mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
[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
This commit is contained in:
parent
a51685f651
commit
c8f69d069e
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user