projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8f909fcdba29e2c5be5e132884eb892f14403fae
[oota-llvm.git]
/
lib
/
Fuzzer
/
test
/
dfsan
/
DFSanMemcmpTest.cpp
1
// Simple test for a fuzzer. The fuzzer must find a particular string.
2
#include <cstring>
3
#include <cstdint>
4
5
extern "C" void LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
6
if (Size >= 10 && memcmp(Data, "0123456789", 10) == 0)
7
__builtin_trap();
8
}