forked from OSchip/llvm-project
[libFuzzer] simplify a test, hopefully to fix the bot
llvm-svn: 334156
This commit is contained in:
parent
7452f73c43
commit
7a88f19099
|
@ -5,7 +5,7 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <cstdio>
|
||||
|
||||
static volatile int Sink;
|
||||
static volatile int *Null = 0;
|
||||
|
@ -16,7 +16,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
|||
if (Size > 1 && Data[1] == 'i') {
|
||||
Sink = 2;
|
||||
if (Size > 2 && Data[2] == '!') {
|
||||
std::cout << "Found the target, dereferencing NULL\n";
|
||||
printf("Found the target, dereferencing NULL\n");
|
||||
*Null = 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue