hanchenye-llvm-project/llvm/lib/Fuzzer/test
Ivan Krasin a610cb5ba0 [libFuzzer]Add a test for defeating a hash sum.
Summary:
Add a test for a data followed by 4-byte hash value.
I use a slightly modified Jenkins hash function,
as described in https://en.wikipedia.org/wiki/Jenkins_hash_function

The modification is to ensure that hash(zeros) != 0.

Reviewers: kcc

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D12648

llvm-svn: 247076
2015-09-08 21:22:52 +00:00
..
dfsan [lib/Fuzzer] build tests that work well with dfsan also w/o dfsan 2015-05-08 21:45:19 +00:00
unit [fuzzer] Add a gtest-style test 2015-01-30 23:26:57 +00:00
CMakeLists.txt [libFuzzer]Add a test for defeating a hash sum. 2015-09-08 21:22:52 +00:00
CounterTest.cpp [lib/Fuzzer] rename TestOneInput to LLVMFuzzerTestOneInput to make it more unique 2015-05-06 22:19:00 +00:00
CxxTokensTest.cpp [lib/Fuzzer] add dfsan_weak_hook_memcmp, enable the test that uses it, simplify the test runner 2015-05-07 00:11:33 +00:00
FourIndependentBranchesTest.cpp [lib/Fuzzer] rename TestOneInput to LLVMFuzzerTestOneInput to make it more unique 2015-05-06 22:19:00 +00:00
FullCoverageSetTest.cpp [lib/Fuzzer] rename TestOneInput to LLVMFuzzerTestOneInput to make it more unique 2015-05-06 22:19:00 +00:00
FuzzerUnittest.cpp [libFuzzer] add one more mutator: Mutate_ChangeASCIIInteger 2015-09-08 17:19:31 +00:00
InfiniteTest.cpp [lib/Fuzzer] change the meaning of -timeout flag: now timeout is applied to every unit of work separately 2015-05-19 22:12:57 +00:00
MemcmpTest.cpp [libFuzzer] implement strncmp hook for data-flow-guided fuzzing (w/ and w/o dfsan), add a test 2015-07-30 02:33:45 +00:00
NullDerefTest.cpp [lib/Fuzzer] rename TestOneInput to LLVMFuzzerTestOneInput to make it more unique 2015-05-06 22:19:00 +00:00
SimpleCmpTest.cpp [Fuzzer] Clearly separate regular and DFSan tests. NFC. 2015-07-21 22:51:49 +00:00
SimpleDictionaryTest.cpp [libFuzzer] actually make the dictionaries work (+docs) 2015-09-04 00:12:11 +00:00
SimpleHashTest.cpp [libFuzzer]Add a test for defeating a hash sum. 2015-09-08 21:22:52 +00:00
SimpleTest.cpp [lib/Fuzzer] add dfsan_weak_hook_memcmp, enable the test that uses it, simplify the test runner 2015-05-07 00:11:33 +00:00
StrcmpTest.cpp [libFuzzer] add a missing test file 2015-08-05 21:32:13 +00:00
StrncmpTest.cpp [libFuzzer] fix the strncmp interceptor -- it should respect short strings. 2015-07-30 21:22:22 +00:00
SwitchTest.cpp [libFuzzer] make sure that 2-byte arguments of switch() are handled properly 2015-07-31 20:58:55 +00:00
TimeoutTest.cpp [lib/Fuzzer] rename TestOneInput to LLVMFuzzerTestOneInput to make it more unique 2015-05-06 22:19:00 +00:00
UserSuppliedFuzzerTest.cpp [libFuzzer] move the mutators to public interface so that custom mutators may reuse these functions directly 2015-08-06 19:19:55 +00:00
dict1.txt [libFuzzer] actually make the dictionaries work (+docs) 2015-09-04 00:12:11 +00:00
fuzzer-dfsan.test [libFuzzer] add two flags, -tbm_depth and -tbm_width to control how the trace-based-mutations are applied 2015-08-12 01:55:37 +00:00
fuzzer.test [libFuzzer]Add a test for defeating a hash sum. 2015-09-08 21:22:52 +00:00
lit.cfg [Fuzzer] Rely on $PATH expansion instead of hardcoding paths in tests. NFC. 2015-07-21 22:51:55 +00:00
lit.site.cfg.in [fuzzer] Add proper dependensices to the fuzzer tests 2015-02-03 21:57:32 +00:00