diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2015-07-21 22:51:49 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2015-07-21 22:51:49 +0000 |
| commit | dc324e16444f42c3d2e1967ea5cfa6f081a9714c (patch) | |
| tree | a6dd6f75c6de80574e4cce7c1fcfdfc5fb375c57 /llvm/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp | |
| parent | bcad06640b8263f42d1a9d52f8bf12d66850f9e8 (diff) | |
| download | bcm5719-llvm-dc324e16444f42c3d2e1967ea5cfa6f081a9714c.tar.gz bcm5719-llvm-dc324e16444f42c3d2e1967ea5cfa6f081a9714c.zip | |
[Fuzzer] Clearly separate regular and DFSan tests. NFC.
llvm-svn: 242850
Diffstat (limited to 'llvm/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp')
| -rw-r--r-- | llvm/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/llvm/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp b/llvm/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp deleted file mode 100644 index ee378146dae..00000000000 --- a/llvm/lib/Fuzzer/test/DFSanSimpleCmpTest.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// Simple test for a fuzzer. The fuzzer must find several narrow ranges. -#include <cstdint> -#include <cstdlib> -#include <cstring> -#include <cstdio> - -extern "C" void LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { - if (Size < 14) return; - uint64_t x = 0; - int64_t y = 0; - int z = 0; - unsigned short a = 0; - memcpy(&x, Data, 8); - memcpy(&y, Data + Size - 8, 8); - memcpy(&z, Data + Size / 2, sizeof(z)); - memcpy(&a, Data + Size / 2 + 4, sizeof(a)); - - if (x > 1234567890 && - x < 1234567895 && - y >= 987654321 && - y <= 987654325 && - z < -10000 && - z >= -10005 && - z != -10003 && - a == 4242) { - fprintf(stderr, "BINGO; Found the target: size %zd (%zd, %zd, %d, %d), exiting.\n", - Size, x, y, z, a); - exit(1); - } -} |

