diff options
author | Kostya Serebryany <kcc@google.com> | 2016-01-14 02:36:44 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-01-14 02:36:44 +0000 |
commit | 4b35874b2a9e8efc8e3123726bc611030d382ecf (patch) | |
tree | 3c130f1077fc9aa46e9a59eb6a0c8846f4535303 /llvm/lib/Fuzzer/test/MemcmpTest.cpp | |
parent | dfc77357a0eb17412e284b4d0bad37bbf2c39c2e (diff) | |
download | llvm-4b35874b2a9e8efc8e3123726bc611030d382ecf.zip llvm-4b35874b2a9e8efc8e3123726bc611030d382ecf.tar.gz llvm-4b35874b2a9e8efc8e3123726bc611030d382ecf.tar.bz2 |
[libFuzzer] suggest a dictionary to the user of some of the trace-based dictionary entries were successful
llvm-svn: 257736
Diffstat (limited to 'llvm/lib/Fuzzer/test/MemcmpTest.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/test/MemcmpTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/test/MemcmpTest.cpp b/llvm/lib/Fuzzer/test/MemcmpTest.cpp index c19c957..c72f2c2 100644 --- a/llvm/lib/Fuzzer/test/MemcmpTest.cpp +++ b/llvm/lib/Fuzzer/test/MemcmpTest.cpp @@ -9,7 +9,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (Size >= 8 && memcmp(Data, "01234567", 8) == 0) { if (Size >= 12 && memcmp(Data + 8, "ABCD", 4) == 0) { if (Size >= 14 && memcmp(Data + 12, "XY", 2) == 0) { - if (Size >= 16 && memcmp(Data + 14, "KLM", 3) == 0) { + if (Size >= 17 && memcmp(Data + 14, "KLM", 3) == 0) { if (Size >= 27 && memcmp(Data + 17, "ABCDE-GHIJ", 10) == 0){ fprintf(stderr, "BINGO %zd\n", Size); for (size_t i = 0; i < Size; i++) { |