| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [libFuzzer]Add a test for defeating a hash sum. | Ivan Krasin | 2015-09-08 | 3 | -0/+40 |
| | | | | | | | | | | | | | | | | | | 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 | ||||
| * | [libFuzzer] add one more mutator: Mutate_ChangeASCIIInteger | Kostya Serebryany | 2015-09-08 | 1 | -0/+31 |
| | | | | | llvm-svn: 247027 | ||||
| * | [libFuzzer] actually make the dictionaries work (+docs) | Kostya Serebryany | 2015-09-04 | 5 | -10/+103 |
| | | | | | llvm-svn: 246825 | ||||
| * | [libFuzzer] refactor the mutation functions so that they are now methods of ↵ | Kostya Serebryany | 2015-09-03 | 1 | -19/+25 |
| | | | | | | | a class. NFC llvm-svn: 246808 | ||||
| * | [libFuzzer] adding a parser for AFL-style dictionaries + tests. | Kostya Serebryany | 2015-09-03 | 1 | -0/+48 |
| | | | | | llvm-svn: 246800 | ||||
| * | [libFuzzer] deprecate the -tokens flag. This was a bad idea because the ↵ | Kostya Serebryany | 2015-09-02 | 1 | -1/+1 |
| | | | | | | | corpus with this flag contains encrypted inputs, not the real inputs, which complicates interoperation with other fuzzers. Instead we'll need to implement AFL dictionary support llvm-svn: 246734 | ||||
| * | [libFuzzer] add two flags, -tbm_depth and -tbm_width to control how the ↵ | Kostya Serebryany | 2015-08-12 | 2 | -4/+4 |
| | | | | | | | trace-based-mutations are applied llvm-svn: 244712 | ||||
| * | [libFuzzer] move the mutators to public interface so that custom mutators ↵ | Kostya Serebryany | 2015-08-06 | 1 | -2/+2 |
| | | | | | | | may reuse these functions directly llvm-svn: 244250 | ||||
| * | [libFuzzer] add one more mutation strategy: byte shuffling | Kostya Serebryany | 2015-08-06 | 1 | -0/+23 |
| | | | | | llvm-svn: 244188 | ||||
| * | [libFuzzer] add a missing test file | Kostya Serebryany | 2015-08-05 | 1 | -0/+28 |
| | | | | | llvm-svn: 244151 | ||||
| * | [libFuzzer] use data-flow feedback from strcmp | Kostya Serebryany | 2015-08-05 | 3 | -0/+8 |
| | | | | | llvm-svn: 244084 | ||||
| * | [libFuzzer] more refactoring of the Mutator and adding tests to it | Kostya Serebryany | 2015-08-01 | 1 | -12/+98 |
| | | | | | llvm-svn: 243818 | ||||
| * | [libFuzzer] start refactoring the Mutator and adding tests to it | Kostya Serebryany | 2015-08-01 | 2 | -6/+44 |
| | | | | | llvm-svn: 243817 | ||||
| * | [libFuzzer] make sure that 2-byte arguments of switch() are handled properly | Kostya Serebryany | 2015-07-31 | 2 | -3/+22 |
| | | | | | llvm-svn: 243781 | ||||
| * | [libFuzzer] support switch interception in dfsan mode | Kostya Serebryany | 2015-07-31 | 3 | -2/+7 |
| | | | | | llvm-svn: 243760 | ||||
| * | [libFuzzer] trace switch statements and apply mutations based on the ↵ | Kostya Serebryany | 2015-07-31 | 3 | -0/+39 |
| | | | | | | | expected case values llvm-svn: 243726 | ||||
| * | [libFuzzer] fix the strncmp interceptor -- it should respect short strings. | Kostya Serebryany | 2015-07-30 | 2 | -1/+5 |
| | | | | | llvm-svn: 243691 | ||||
| * | [libFuzzer] implement strncmp hook for data-flow-guided fuzzing (w/ and w/o ↵ | Kostya Serebryany | 2015-07-30 | 5 | -2/+31 |
| | | | | | | | dfsan), add a test llvm-svn: 243611 | ||||
| * | [libFuzzer] implement memcmp hook for data-flow-guided fuzzing (w/o dfsan), ↵ | Kostya Serebryany | 2015-07-30 | 4 | -3/+12 |
| | | | | | | | extend the memcmp fuzzer test llvm-svn: 243603 | ||||
| * | [libFuzzer] ensure that the dfsan tracing hooks actually run (using ↵ | Kostya Serebryany | 2015-07-28 | 1 | -0/+3 |
| | | | | | | | -verbosity=3 in tests) llvm-svn: 243365 | ||||
| * | [libFuzzer] allow users to supply their own implementation of rand | Kostya Serebryany | 2015-07-24 | 2 | -2/+6 |
| | | | | | llvm-svn: 243078 | ||||
| * | [libFuzzer] dump long running units to disk | Kostya Serebryany | 2015-07-23 | 1 | -3/+3 |
| | | | | | llvm-svn: 243031 | ||||
| * | [Fuzzer] Rely on $PATH expansion instead of hardcoding paths in tests. NFC. | Alexey Samsonov | 2015-07-21 | 3 | -14/+15 |
| | | | | | llvm-svn: 242851 | ||||
| * | [Fuzzer] Clearly separate regular and DFSan tests. NFC. | Alexey Samsonov | 2015-07-21 | 5 | -7/+10 |
| | | | | | llvm-svn: 242850 | ||||
| * | [lib/Fuzzer] remove -use_coverage_pairs=1, an experimental feature that is ↵ | Kostya Serebryany | 2015-05-22 | 1 | -1/+1 |
| | | | | | | | unlikely to ever scale llvm-svn: 238063 | ||||
| * | [lib/Fuzzer] extend the fuzzer interface to allow user-supplied mutators | Kostya Serebryany | 2015-05-22 | 4 | -2/+69 |
| | | | | | llvm-svn: 238059 | ||||
| * | [lib/Fuzzer] change the meaning of -timeout flag: now timeout is applied to ↵ | Kostya Serebryany | 2015-05-19 | 2 | -1/+5 |
| | | | | | | | every unit of work separately llvm-svn: 237735 | ||||
| * | [lib/Fuzzer] Add SHA1 implementation from public domain. | Kostya Serebryany | 2015-05-14 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: This adds a SHA1 implementation taken from public domain code. The change is trivial, but as it involves third-party code I'd like a second pair of eyes before commit. LibFuzzer can not use SHA1 from openssl because openssl may not be available and because we may be fuzzing openssl itself. Using sha1sum via a pipe is too slow. Test Plan: n/a Reviewers: chandlerc Reviewed By: chandlerc Subscribers: majnemer, llvm-commits Differential Revision: http://reviews.llvm.org/D9733 llvm-svn: 237400 | ||||
| * | [lib/Fuzzer] remove the -dfsan=1 flag, just use -use_traces=1 (w/ or w/o dfsan) | Kostya Serebryany | 2015-05-12 | 1 | -2/+2 |
| | | | | | llvm-svn: 237083 | ||||
| * | [lib/Fuzzer] add a trace-based mutatation logic. Same idea as with ↵ | Kostya Serebryany | 2015-05-11 | 1 | -0/+1 |
| | | | | | | | DFSan-based mutator, but instead of relying on taint tracking, try to find the data directly in the input. More (logic and comments) to go. llvm-svn: 237043 | ||||
| * | [lib/Fuzzer] build tests that work well with dfsan also w/o dfsan | Kostya Serebryany | 2015-05-08 | 5 | -10/+12 |
| | | | | | llvm-svn: 236909 | ||||
| * | [lib/Fuzzer] use -fsanitize-coverage=trace-cmp when building LLVM with ↵ | Kostya Serebryany | 2015-05-08 | 1 | -1/+1 |
| | | | | | | | LLVM_USE_SANITIZE_COVERAGE; in lib/Fuzzer try to reload the corpus to pick up new units from other processes llvm-svn: 236906 | ||||
| * | Update CMake flags, LibFuzzer comments and docs for new -fsanitize-coverage= ↵ | Alexey Samsonov | 2015-05-07 | 1 | -1/+1 |
| | | | | | | | flags. llvm-svn: 236797 | ||||
| * | [lib/Fuzzer] change the way we use taint information for fuzzing. Now, we ↵ | Kostya Serebryany | 2015-05-07 | 1 | -2/+2 |
| | | | | | | | run a single unit and collect suggested mutations based on tracing+taint data, then apply the suggested mutations one by one. The previous scheme was slower and more complex. llvm-svn: 236772 | ||||
| * | [lib/Fuzzer] add dfsan_weak_hook_memcmp, enable the test that uses it, ↵ | Kostya Serebryany | 2015-05-07 | 5 | -17/+20 |
| | | | | | | | simplify the test runner llvm-svn: 236683 | ||||
| * | [lib/Fuzzer] remove dfsan_fuzzer_abi.list -- its contents are now moved to ↵ | Kostya Serebryany | 2015-05-06 | 1 | -4/+1 |
| | | | | | | | dfsan proper llvm-svn: 236659 | ||||
| * | [lib/Fuzzer] add a fuzzer test for memcmp (does not work yet) | Kostya Serebryany | 2015-05-06 | 2 | -0/+9 |
| | | | | | llvm-svn: 236656 | ||||
| * | [lib/Fuzzer] rename TestOneInput to LLVMFuzzerTestOneInput to make it more ↵ | Kostya Serebryany | 2015-05-06 | 10 | -12/+12 |
| | | | | | | | unique llvm-svn: 236652 | ||||
| * | [fuzzer] Add support for token-based fuzzing (e.g. for C++). Allow string ↵ | Kostya Serebryany | 2015-03-31 | 3 | -0/+28 |
| | | | | | | | flags. llvm-svn: 233745 | ||||
| * | DFSan-based fuzzer (proof of concept). | Kostya Serebryany | 2015-03-30 | 4 | -2/+62 |
| | | | | | | | | | | | | | | | | | | | Summary: This adds a simple DFSan-based (i.e. taint-guided) fuzzer mutator, see the comments for details. Test Plan: a test added Reviewers: samsonov, pcc Reviewed By: samsonov, pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8669 llvm-svn: 233613 | ||||
| * | [sanitizer/coverage] Add AFL-style coverage counters (search heuristic for ↵ | Kostya Serebryany | 2015-03-03 | 3 | -0/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | fuzzing). Introduce -mllvm -sanitizer-coverage-8bit-counters=1 which adds imprecise thread-unfriendly 8-bit coverage counters. The run-time library maps these 8-bit counters to 8-bit bitsets in the same way AFL (http://lcamtuf.coredump.cx/afl/technical_details.txt) does: counter values are divided into 8 ranges and based on the counter value one of the bits in the bitset is set. The AFL ranges are used here: 1, 2, 3, 4-7, 8-15, 16-31, 32-127, 128+. These counters provide a search heuristic for single-threaded coverage-guided fuzzers, we do not expect them to be useful for other purposes. Depending on the value of -fsanitize-coverage=[123] flag, these counters will be added to the function entry blocks (=1), every basic block (=2), or every edge (=3). Use these counters as an optional search heuristic in the Fuzzer library. Add a test where this heuristic is critical. llvm-svn: 231166 | ||||
| * | [fuzzer] one more experimental search mode: -use_coverage_pairs=1 | Kostya Serebryany | 2015-02-20 | 3 | -1/+23 |
| | | | | | llvm-svn: 229957 | ||||
| * | [fuzzer] Add proper dependensices to the fuzzer tests | Kostya Serebryany | 2015-02-03 | 3 | -1/+10 |
| | | | | | | | | | | | | | | | | | | | Summary: Make sure that FileCheck is built when running check-fuzzer Test Plan: run on bot: lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer Reviewers: samsonov Reviewed By: samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7387 llvm-svn: 228045 | ||||
| * | [fuzzer] Add a gtest-style test | Kostya Serebryany | 2015-01-30 | 5 | -21/+96 |
| | | | | | | | | | | | | | | | | | Summary: Add one gtest-style test. Test Plan: run on bot Reviewers: samsonov Reviewed By: samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7287 llvm-svn: 227639 | ||||
| * | [fuzzer] add -use_full_coverage_set=1 which solves FullCoverageSetTest. This ↵ | Kostya Serebryany | 2015-01-29 | 3 | -2/+11 |
| | | | | | | | does not scale very well yet, but might be a good start. llvm-svn: 227507 | ||||
| * | [fuzzer] fix warning in a test | Kostya Serebryany | 2015-01-29 | 1 | -2/+0 |
| | | | | | llvm-svn: 227478 | ||||
| * | [fuzzer] minor cleanup based on reviews: remove redundant includes, fix a ↵ | Kostya Serebryany | 2015-01-29 | 2 | -2/+2 |
| | | | | | | | copy-pasto in tests llvm-svn: 227468 | ||||
| * | Reverting r227452, which adds back the fuzzer library. Now excluding the ↵ | Aaron Ballman | 2015-01-29 | 10 | -0/+178 |
| | | | | | | | fuzzer library based on LLVM_USE_SANITIZE_COVERAGE being set or unset. llvm-svn: 227464 | ||||
| * | Temporarily reverting the fuzzer library as it causes too many build issues ↵ | Aaron Ballman | 2015-01-29 | 10 | -178/+0 |
| | | | | | | | for MSVC users. This reverts: 227445, 227395, 227389, 227357, 227254, 227252 llvm-svn: 227452 | ||||
| * | Adding missing #includes to try to get this to compile on Windows with ↵ | Aaron Ballman | 2015-01-29 | 5 | -0/+5 |
| | | | | | | | Visual Studio. llvm-svn: 227445 | ||||

