Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Moving libFuzzer from LLVM to compiler-rt. | George Karpenkov | 2017-08-21 | 1 | -70/+0 |
| | | | | | | | | | This change only removes libFuzzer tests and CMake machinery, the source copy temporarily remains at the old location. Differential Revision: https://reviews.llvm.org/D36980 llvm-svn: 311405 | ||||
* | [libFuzzer] explicitly use -fsanitize-coverage=trace-pc-guard in ↵ | Kostya Serebryany | 2017-08-14 | 1 | -1/+1 |
| | | | | | | test/dump_coverage.test; mark print_coverage/dump_coverage as To-be-deprecated llvm-svn: 310877 | ||||
* | [libFuzzer] use the in-binary pc table (instead of PCs captured at run-time) ↵ | Kostya Serebryany | 2017-08-04 | 1 | -5/+0 |
| | | | | | | to implement -exit_on_src_pos llvm-svn: 310151 | ||||
* | [libFuzzer] remove the now redundant 'LLVMFuzzer-' prefix from libFuzzer tests | Kostya Serebryany | 2017-08-04 | 1 | -35/+35 |
| | | | | llvm-svn: 310110 | ||||
* | Port libFuzzer tests to LIT. Do not require two-stage build for check-fuzzer. | George Karpenkov | 2017-08-04 | 1 | -20/+35 |
| | | | | | | | | | | | | | | | | | | | | | This revision ports all libFuzzer tests apart from the unittest to LIT. The advantages of doing so include: - Tests being self-contained - Much easier debugging of a single test - No need for using a two-stage compilation The unit-test is still compiled using CMake, but it does not need a freshly built compiler. NOTE: The previous two-stage bot configuration will NOT work, as in the second stage build LLVM_USE_SANITIZER is set, which disables ASAN from being built. Thus bots will be reconfigured in the next few commits. Differential Revision: https://reviews.llvm.org/D36295 llvm-svn: 310075 | ||||
* | Generate error reports when a fuzz target exits. | Matt Morehouse | 2017-07-20 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | Summary: Implements https://github.com/google/sanitizers/issues/835. Flush stdout before exiting in test cases. Since the atexit hook is used for exit reports, pending prints to stdout can be lost if they aren't flushed before calling exit(). Expect tests to have non-zero exit code if exit() is called. Reviewers: vitalybuka, kcc Reviewed By: kcc Subscribers: eraman, llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D35602 llvm-svn: 308669 | ||||
* | [libFuzzer] Change Uninstrumented test name. | Marcos Pividori | 2017-02-08 | 1 | -1/+1 |
| | | | | | | | | | On Windows, executables with the word "uninst" included in their names are associated with administrator privileges. Differential Revision: https://reviews.llvm.org/D29549 llvm-svn: 294387 | ||||
* | [libFuzzer] Update fuzzer.test to properly set environment variables. | Marcos Pividori | 2017-02-08 | 1 | -1/+1 |
| | | | | | | | | Use env to set environment variables, so it works on Windows and Linux. Differential Revision: https://reviews.llvm.org/D29537 llvm-svn: 294385 | ||||
* | [libFuzzer] Update test to consider different exceptions. | Marcos Pividori | 2017-02-08 | 1 | -1/+1 |
| | | | | | | Differential Revision: https://reviews.llvm.org/D29531 llvm-svn: 294377 | ||||
* | [libFuzzer] use print+exit(1) instead of assert to report an error | Kostya Serebryany | 2017-01-21 | 1 | -1/+1 |
| | | | | llvm-svn: 292685 | ||||
* | [libFuzzer] add an assert to protect against LLVMFuzzerInitialize changing ↵ | Kostya Serebryany | 2017-01-20 | 1 | -0/+3 |
| | | | | | | argv[0] llvm-svn: 292652 | ||||
* | [libFuzzer] build libFuzzer itself with asan | Kostya Serebryany | 2016-12-12 | 1 | -1/+2 |
| | | | | llvm-svn: 289469 | ||||
* | [libFuzzer] test cleanup | Kostya Serebryany | 2016-12-10 | 1 | -5/+3 |
| | | | | llvm-svn: 289312 | ||||
* | [libFuzzer] switch all libFuzzer tests to use ↵ | Kostya Serebryany | 2016-12-10 | 1 | -5/+0 |
| | | | | | | -fsanitize-coverage=trace-pc-guard. Support for the previosly used instrumentation will be removed in the following changes llvm-svn: 289311 | ||||
* | [libFuzzer] enable use_cmp by default | Kostya Serebryany | 2016-10-27 | 1 | -1/+1 |
| | | | | llvm-svn: 285353 | ||||
* | [libFuzzer] add StandaloneFuzzTargetMain.c and a test for it | Kostya Serebryany | 2016-10-25 | 1 | -1/+1 |
| | | | | llvm-svn: 285135 | ||||
* | [libFuzzer] add a test for asan's strict_string_checks=1 | Kostya Serebryany | 2016-10-22 | 1 | -0/+4 |
| | | | | llvm-svn: 284902 | ||||
* | [libFuzzer] refactoring to make -shrink=1 work for value profile, added a test. | Kostya Serebryany | 2016-10-05 | 1 | -5/+5 |
| | | | | llvm-svn: 283409 | ||||
* | [libFuzzer] add ShrinkValueProfileTest, move code around, NFC | Kostya Serebryany | 2016-10-05 | 1 | -1/+1 |
| | | | | llvm-svn: 283286 | ||||
* | [libFuzzer] add -exit_on_src_pos to test libFuzzer itself, add a test script ↵ | Kostya Serebryany | 2016-09-27 | 1 | -0/+4 |
| | | | | | | for RE2 that uses this flag llvm-svn: 282458 | ||||
* | [libFuzzer] change trace-pc to use 8-byte guards | Kostya Serebryany | 2016-09-17 | 1 | -0/+4 |
| | | | | llvm-svn: 281810 | ||||
* | [libFuzzer] make caller-callee feedback work with trace-pc-guard | Kostya Serebryany | 2016-09-15 | 1 | -1/+2 |
| | | | | llvm-svn: 281667 | ||||
* | [libFuzzer] add 8-bit counters to trace-pc-guard handler | Kostya Serebryany | 2016-09-15 | 1 | -1/+7 |
| | | | | llvm-svn: 281568 | ||||
* | [libFuzzer] start using trace-pc-guard as an alternative source of coverage | Kostya Serebryany | 2016-09-14 | 1 | -0/+1 |
| | | | | llvm-svn: 281435 | ||||
* | [libFuzzer] add a test that is built w/o coverage instrumentation but has ↵ | Kostya Serebryany | 2016-06-08 | 1 | -0/+3 |
| | | | | | | the coverage rt (it should now fail with a descriptive message) llvm-svn: 272090 | ||||
* | [libfuzzer] splitting fuzzer.test | Mike Aizatsky | 2016-06-03 | 1 | -97/+0 |
| | | | | llvm-svn: 271697 | ||||
* | [libFuzzer] when an invalid flag is given, warn, but don't crash | Kostya Serebryany | 2016-06-01 | 1 | -0/+4 |
| | | | | llvm-svn: 271404 | ||||
* | [libFuzzer] use __sanitizer_set_report_fd with -close_fd_mask. This allows ↵ | Kostya Serebryany | 2016-05-27 | 1 | -1/+3 |
| | | | | | | us to keep asan reports when closing target's stderr llvm-svn: 271053 | ||||
* | [libFuzzer] reimplement the way we do -only_ascii to allow more 'const' in ↵ | Kostya Serebryany | 2016-05-26 | 1 | -0/+3 |
| | | | | | | function declarations. Add a test for -only_ascii. NFC intended llvm-svn: 270900 | ||||
* | [libFuzzer] print stats if we crash on empty input | Kostya Serebryany | 2016-05-25 | 1 | -0/+3 |
| | | | | llvm-svn: 270639 | ||||
* | [libFuzzer] print the file name before executing the input so that if there ↵ | Kostya Serebryany | 2016-05-13 | 1 | -2/+2 |
| | | | | | | is a crash we know which files has caused it llvm-svn: 269450 | ||||
* | [libFuzzer] print stats after running individual inputs | Kostya Serebryany | 2016-05-04 | 1 | -0/+4 |
| | | | | llvm-svn: 268547 | ||||
* | [libFuzzer] warn if the corpus is empty | Kostya Serebryany | 2016-04-18 | 1 | -0/+1 |
| | | | | llvm-svn: 266670 | ||||
* | [libFuzzer] add a better warning for command line flags with -- (two dashes) | Kostya Serebryany | 2016-04-15 | 1 | -0/+2 |
| | | | | llvm-svn: 266480 | ||||
* | [libFuzzer] don't report memory leaks if we are dying due to a timeout (just ↵ | Kostya Serebryany | 2016-03-24 | 1 | -4/+0 |
| | | | | | | use _Exit instead of exit in the timeout callback) llvm-svn: 264237 | ||||
* | [libFuzzer] add a flag close_fd_mask so that we can silence spammy targets ↵ | Kostya Serebryany | 2016-03-18 | 1 | -0/+29 |
| | | | | | | by closing stderr/stdout llvm-svn: 263831 | ||||
* | [libFuzzer] read corpus dirs recursively | Kostya Serebryany | 2016-03-18 | 1 | -0/+9 |
| | | | | llvm-svn: 263773 | ||||
* | [libFuzzer] deprecate several flags | Kostya Serebryany | 2016-03-17 | 1 | -1/+1 |
| | | | | llvm-svn: 263739 | ||||
* | [libFuzzer] add generic signal handlers so that libFuzzer can report at ↵ | Kostya Serebryany | 2016-03-01 | 1 | -0/+5 |
| | | | | | | least something if ASan is not handlig the signals for us. Remove abort_on_timeout flag. llvm-svn: 262415 | ||||
* | [libFuzzer] add -print_final_stats=1 flag | Kostya Serebryany | 2016-02-26 | 1 | -0/+8 |
| | | | | llvm-svn: 262084 | ||||
* | [libFuzzer] get rid of UserSuppliedFuzzer; NFC | Kostya Serebryany | 2016-02-13 | 1 | -0/+1 |
| | | | | llvm-svn: 260798 | ||||
* | [libFuzzer] remove UserSuppliedFuzzer from the interface (it was a bad idea). | Kostya Serebryany | 2016-02-13 | 1 | -2/+0 |
| | | | | llvm-svn: 260796 | ||||
* | [libFuzzer] provide a plain C interface for custom mutators (experimental) | Kostya Serebryany | 2016-02-13 | 1 | -0/+4 |
| | | | | llvm-svn: 260794 | ||||
* | [libFuzzer] make -runs=N flag also affect the simple runner (will execute ↵ | Kostya Serebryany | 2016-02-12 | 1 | -1/+7 |
| | | | | | | every input N times) llvm-svn: 260649 | ||||
* | [libFuzzer] hot fix a test | Kostya Serebryany | 2016-02-04 | 1 | -1/+1 |
| | | | | llvm-svn: 259732 | ||||
* | [libFuzzer] don't write the test unit when a leak is detected (since we ↵ | Kostya Serebryany | 2016-02-04 | 1 | -0/+3 |
| | | | | | | don't know which unit causes the leak) llvm-svn: 259731 | ||||
* | [libFuzzer] allow passing 1 or more files as individual inputs | Kostya Serebryany | 2016-02-02 | 1 | -0/+12 |
| | | | | llvm-svn: 259459 | ||||
* | [libFuzzer] fail if the corpus dir does not exist | Kostya Serebryany | 2016-02-02 | 1 | -0/+3 |
| | | | | llvm-svn: 259454 | ||||
* | [libFuzzer] use std::mt19937 for generating random numbers by default. Fix ↵ | Kostya Serebryany | 2016-01-19 | 1 | -0/+3 |
| | | | | | | MyStoll to handle negative values. Use std::any_of instead of std::find_if llvm-svn: 258178 | ||||
* | [libFuzzer] introduce LLVMFuzzerInitialize | Kostya Serebryany | 2016-01-16 | 1 | -0/+2 |
| | | | | llvm-svn: 257980 |