Mercurial > hg > CbC > CbC_llvm
comparison compiler-rt/test/fuzzer/OutOfMemorySingleLargeMallocTest.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
comparison
equal
deleted
inserted
replaced
173:0572611fdcc8 | 207:2e18cbf3894f |
---|---|
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <cstdlib> | 9 #include <cstdlib> |
10 #include <cstring> | 10 #include <cstring> |
11 #include <iostream> | 11 #include <iostream> |
12 | 12 |
13 static volatile char *SinkPtr; | 13 static char *volatile SinkPtr; |
14 | 14 |
15 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { | 15 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { |
16 if (Size > 0 && Data[0] == 'H') { | 16 if (Size > 0 && Data[0] == 'H') { |
17 if (Size > 1 && Data[1] == 'i') { | 17 if (Size > 1 && Data[1] == 'i') { |
18 if (Size > 2 && Data[2] == '!') { | 18 if (Size > 2 && Data[2] == '!') { |