Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [libFuzzer] remove -output_csv option. It duplicates the default output and ↵ | Kostya Serebryany | 2017-04-19 | 1 | -11/+0 |
| | | | | | | got out of sync llvm-svn: 300768 | ||||
* | [libFuzzer] simplify the code a bit | Kostya Serebryany | 2017-03-31 | 1 | -6/+6 |
| | | | | llvm-svn: 299180 | ||||
* | [libFuzzer] call __sanitizer_print_memory_profile with two params | Kostya Serebryany | 2017-03-15 | 1 | -1/+1 |
| | | | | llvm-svn: 297916 | ||||
* | [libFuzzer] remove even more stale code | Kostya Serebryany | 2017-03-15 | 1 | -16/+0 |
| | | | | llvm-svn: 297797 | ||||
* | [libFuzzer] simplify code a bit | Kostya Serebryany | 2017-03-15 | 1 | -19/+2 |
| | | | | llvm-svn: 297796 | ||||
* | [libFuzzer] remove more stale code | Kostya Serebryany | 2017-03-14 | 1 | -70/+0 |
| | | | | llvm-svn: 297785 | ||||
* | [libFuzzer] remove stale code | Kostya Serebryany | 2017-03-14 | 1 | -17/+3 |
| | | | | llvm-svn: 297781 | ||||
* | [libFuzzer] remove usage of the old coverage instrumentation | Kostya Serebryany | 2017-02-28 | 1 | -59/+0 |
| | | | | llvm-svn: 296536 | ||||
* | [libFuzzer] replace std::random_shuffle with std::shuffle as ↵ | Kostya Serebryany | 2017-02-07 | 1 | -1/+1 |
| | | | | | | std::random_shuffle is being deprecated in C++17. Also simplify fuzzer::Random. NFC llvm-svn: 294366 | ||||
* | [libFuzzer] remove a bit of stale code | Kostya Serebryany | 2017-01-26 | 1 | -4/+0 |
| | | | | llvm-svn: 293129 | ||||
* | [libFuzzer] AlrmHandler is executed in a different thread for Windows. | Marcos Pividori | 2017-01-22 | 1 | -0/+3 |
| | | | | | | | | | | | Don't check for InFuzzingThread() on Windows, since the AlarmHandler() is always executed by a different thread from a thread pool. If we don't add these changes, the alarm handler will never execute. Note that we decided to ignore possible problem in the synchronization. Differential Revision: https://reviews.llvm.org/D28723 llvm-svn: 292746 | ||||
* | [libFuzzer] experimental support for 'equivalance fuzzing' | Kostya Serebryany | 2017-01-20 | 1 | -1/+32 |
| | | | | llvm-svn: 292646 | ||||
* | [libFuzzer] improve -minimize_crash: honor -artifact_prefix= and don't ↵ | Kostya Serebryany | 2017-01-19 | 1 | -1/+1 |
| | | | | | | special case 2-byte inputs llvm-svn: 292511 | ||||
* | [libFuzzer] add two tests for experimenting with equivalence fuzzing | Kostya Serebryany | 2017-01-19 | 1 | -0/+3 |
| | | | | llvm-svn: 292509 | ||||
* | [libFuzzer] improve error handling during the merge (handle various IO failures) | Kostya Serebryany | 2017-01-05 | 1 | -0/+5 |
| | | | | llvm-svn: 291182 | ||||
* | [libFuzzer] cleaner implementation of -print_pcs=1 | Kostya Serebryany | 2016-12-30 | 1 | -0/+1 |
| | | | | llvm-svn: 290739 | ||||
* | [libFuzzer] add an experimental flag -experimental_len_control=1 that sets ↵ | Kostya Serebryany | 2016-12-27 | 1 | -2/+21 |
| | | | | | | max_len to 1M and tries to increases the actual max sizes of mutations very gradually (second attempt) llvm-svn: 290637 | ||||
* | [libfuzzer] dump_coverage command line flag | Mike Aizatsky | 2016-12-19 | 1 | -0/+2 |
| | | | | | | | | Reviewers: kcc, vitalybuka Differential Revision: https://reviews.llvm.org/D27942 llvm-svn: 290138 | ||||
* | Revert "[libFuzzer] add an experimental flag -experimental_len_control=1 ↵ | Daniel Jasper | 2016-12-17 | 1 | -21/+2 |
| | | | | | | | | | | | that sets max_len to 1M and tries to increases the actual max sizes of mutations very gradually. Also remove a bit of dead code" This reverts commit r289998. See comment: https://reviews.llvm.org/rL289998 llvm-svn: 290043 | ||||
* | [libFuzzer] avoid msan false positives in more cases | Kostya Serebryany | 2016-12-16 | 1 | -0/+3 |
| | | | | llvm-svn: 289999 | ||||
* | [libFuzzer] add an experimental flag -experimental_len_control=1 that sets ↵ | Kostya Serebryany | 2016-12-16 | 1 | -2/+21 |
| | | | | | | max_len to 1M and tries to increases the actual max sizes of mutations very gradually. Also remove a bit of dead code llvm-svn: 289998 | ||||
* | [libFuzzer] Fix bug in detecting timeouts when input string is empty. | Marcos Pividori | 2016-12-13 | 1 | -1/+3 |
| | | | | | | | | | | | | | | I added a new flag RunningCB to know if the Fuzzer's main thread is running the CB function, instead of using (!CurrentUnitSize). (!CurrentUnitSize) doesn't work properly. For example, in FuzzerLoop.cpp, inside ShuffleAndMinimize() function, we execute the callback with an empty string (size=0). Previous implementation failed to detect timeouts in that execution. Also, I add a regression test for that case. Differential Revision: https://reviews.llvm.org/D27433 llvm-svn: 289561 | ||||
* | [libFuzzer] Clean up headers and file formatting of LibFuzzer files. | Marcos Pividori | 2016-12-13 | 1 | -1/+0 |
| | | | | | | | | | | | | Reorganize #includes to follow LLVM Coding Standards. Include some missing headers. Required to use `Printf()`. Aside from that, this patch contains no functional change. It is purely a re-organization. Differential Revision: https://reviews.llvm.org/D27363 llvm-svn: 289560 | ||||
* | [libFuzzer] Properly use unsigned for Process ID. | Marcos Pividori | 2016-12-13 | 1 | -4/+4 |
| | | | | | | | | | | Use unsigned for PID instead of signed int. GetCurrentProcessId() returns an unsigned (DWORD) so we must be sure we can deal with all possible values. I use a long unsigned to be sure it can hold a 32 bit unsigned (DWORD). Differential Revision: https://reviews.llvm.org/D27281 llvm-svn: 289558 | ||||
* | [libFuzzer] respect -max_len during merge | Kostya Serebryany | 2016-12-12 | 1 | -1/+2 |
| | | | | llvm-svn: 289467 | ||||
* | [libFuzzer] refactor the code to allow collecting features in different ↵ | Kostya Serebryany | 2016-12-05 | 1 | -1/+5 |
| | | | | | | ways. Also initialize a couple of Fuzzer:: members that might have been used uninitialized :( llvm-svn: 288731 | ||||
* | [libFuzzer] treat -rss_limit_mb=0 as no limit | Kostya Serebryany | 2016-12-01 | 1 | -1/+1 |
| | | | | llvm-svn: 288389 | ||||
* | [libFuzzer] extend -rss_limit_mb to crash instantly on a single malloc that ↵ | Kostya Serebryany | 2016-11-30 | 1 | -0/+16 |
| | | | | | | exceeds the limit llvm-svn: 288281 | ||||
* | [LibFuzzer] Split up some functions among different headers. | Zachary Turner | 2016-11-30 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | In an effort to get libfuzzer working on Windows, we need to make a distinction between what functions require platform specific code (e.g. different code on Windows vs Linux) and what code doesn't. IO functions, for example, tend to be platform specific. This patch separates out some of the functions which will need to have platform specific implementations into different headers, so that we can then provide different implementations for each platform. Aside from that, this patch contains no functional change. It is purely a re-organization. Patch by Marcos Pividori Differential Revision: https://reviews.llvm.org/D27230 llvm-svn: 288264 | ||||
* | [libFuzzer] simplify TracePC::HandleTrace even further. Also, when dealing ↵ | Kostya Serebryany | 2016-10-26 | 1 | -6/+3 |
| | | | | | | with -exit_on_src_pos, symbolize every PC only once llvm-svn: 285223 | ||||
* | [libFuzzer] simplify the code in TracePC::HandleTrace a bit more | Kostya Serebryany | 2016-10-26 | 1 | -9/+8 |
| | | | | llvm-svn: 285147 | ||||
* | [libFuzzer] simplify the code to print new PCs | Kostya Serebryany | 2016-10-26 | 1 | -14/+2 |
| | | | | llvm-svn: 285145 | ||||
* | [libFuzzer] simplify the code in TracePC::HandleTrace | Kostya Serebryany | 2016-10-25 | 1 | -1/+0 |
| | | | | llvm-svn: 285142 | ||||
* | [libFuzzer] simplify the code for use_cmp, also use the position hint when ↵ | Kostya Serebryany | 2016-10-25 | 1 | -5/+0 |
| | | | | | | available, add a test llvm-svn: 285049 | ||||
* | Fix -Wunused-variable warning in libFuzzer | Reid Kleckner | 2016-10-21 | 1 | -1/+1 |
| | | | | llvm-svn: 284838 | ||||
* | [libFuzzer] reshuffle the code for -exit_on_src_pos and -exit_on_item | Kostya Serebryany | 2016-10-18 | 1 | -13/+11 |
| | | | | llvm-svn: 284508 | ||||
* | [libFuzzer] better algorithm for -minimize_crash | Kostya Serebryany | 2016-10-15 | 1 | -4/+16 |
| | | | | llvm-svn: 284299 | ||||
* | [libFuzzer] add -trace_cmp=1 (guiding mutations based on the observed CMP ↵ | Kostya Serebryany | 2016-10-14 | 1 | -2/+14 |
| | | | | | | instructions). This is a reincarnation of the previously deleted -use_traces, but using a different approach for collecting traces. Still a toy, but at least it scales well. Also fix -merge in trace-pc-guard mode llvm-svn: 284273 | ||||
* | [libFuzzer] more detailed message for disabled leak detection | Kostya Serebryany | 2016-10-13 | 1 | -2/+4 |
| | | | | llvm-svn: 284169 | ||||
* | [libFuzzer] add -trace_malloc= flag | Kostya Serebryany | 2016-10-13 | 1 | -5/+28 |
| | | | | llvm-svn: 284149 | ||||
* | [libFuzzer] when shrinking the corpus, delete evicted files previously ↵ | Kostya Serebryany | 2016-10-08 | 1 | -6/+7 |
| | | | | | | created by the current process llvm-svn: 283682 | ||||
* | [libFuzzer] control the reload interval by a flag, make it 10 seconds by default | Kostya Serebryany | 2016-10-08 | 1 | -4/+8 |
| | | | | llvm-svn: 283676 | ||||
* | [libFuzzer] be more careful with memory usage, print peak rss in status lines | Kostya Serebryany | 2016-10-06 | 1 | -1/+2 |
| | | | | llvm-svn: 283418 | ||||
* | [libFuzzer] when re-running for lsan, don't look at the coverage | Kostya Serebryany | 2016-10-05 | 1 | -1/+1 |
| | | | | llvm-svn: 283411 | ||||
* | [libFuzzer] refactoring to make -shrink=1 work for value profile, added a test. | Kostya Serebryany | 2016-10-05 | 1 | -34/+21 |
| | | | | llvm-svn: 283409 | ||||
* | [libFuzzer] clear the corpus elements if they are evicted (i.e. smaller ↵ | Kostya Serebryany | 2016-10-05 | 1 | -2/+16 |
| | | | | | | elements with proper coverage are found). Make sure we never try to mutate empty element. Print the corpus size in bytes in the status lines llvm-svn: 283279 | ||||
* | [libFuzzer] remove dfsan support and some related stale code. This is not ↵ | Kostya Serebryany | 2016-10-04 | 1 | -1/+0 |
| | | | | | | being used and as is is pretty weak anyway llvm-svn: 283187 | ||||
* | [libFuzzer] implement the -shrink=1 option that tires to make elements of ↵ | Kostya Serebryany | 2016-10-01 | 1 | -9/+27 |
| | | | | | | the corpus smaller, off by default llvm-svn: 282995 | ||||
* | [libFuzzer] remove some experimental code | Kostya Serebryany | 2016-09-30 | 1 | -20/+11 |
| | | | | llvm-svn: 282983 | ||||
* | [libFuzzer] remove unused option | Kostya Serebryany | 2016-09-30 | 1 | -2/+1 |
| | | | | llvm-svn: 282971 |