Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [LibFuzzer] Fix implementation of ``GetPeakRSSMb()`` on Mac OSX. | Dan Liew | 2016-05-20 | 1 | -1/+9 |
| | | | | | | | | On Linux ``rusage.ru_maxrss`` is in KiB but on Mac OSX it is in bytes. Differential Revision: http://reviews.llvm.org/D20410 llvm-svn: 270173 | ||||
* | [LibFuzzer] Fix ``NumberOfCpuCores()`` on Mac OSX. | Dan Liew | 2016-05-20 | 1 | -4/+29 |
| | | | | | | | | | | | | | | | The ``nprocs`` command does not exist under Mac OSX so use ``sysctl`` instead on that platform. Whilst I'm here * Use ``pclose()`` instead of ``fclose()`` which the ``popen()`` documentation says should be used. * Check for errors that were previously unhandled. Differential Revision: http://reviews.llvm.org/D20409 llvm-svn: 270172 | ||||
* | [LibFuzzer] | Dan Liew | 2016-05-19 | 2 | -2/+23 |
| | | | | | | | | | | | | | | | | | | Work around crashes in ``__sanitizer_malloc_hook()`` under Mac OSX. Under Mac OSX we intercept calls to malloc before thread local storage is initialised leading to a crash when accessing ``AllocTracer``. To workaround this ``AllocTracer`` is only accessed in the hook under Linux. For symmetry ``__sanitizer_free_hook()`` is also modified in the same way. To support this change a set of new macros LIBFUZZER_LINUX and LIBFUZZER_APPLE has been defined which can be used to check the target being compiled for. Differential Revision: http://reviews.llvm.org/D20402 llvm-svn: 270145 | ||||
* | [libFuzzer] do the merge faster and a bit less precise | Kostya Serebryany | 2016-05-13 | 1 | -1/+2 |
| | | | | llvm-svn: 269497 | ||||
* | [libFuzzer] print the file name before executing the input so that if there ↵ | Kostya Serebryany | 2016-05-13 | 2 | -3/+4 |
| | | | | | | is a crash we know which files has caused it llvm-svn: 269450 | ||||
* | [libFuzzer] simplify FuzzerInterface.h | Kostya Serebryany | 2016-05-13 | 6 | -79/+43 |
| | | | | llvm-svn: 269448 | ||||
* | [libFuzzer] add a driver file to use AFL on LLVMFuzzerTestOneInput | Kostya Serebryany | 2016-05-10 | 1 | -0/+82 |
| | | | | llvm-svn: 269141 | ||||
* | [libfuzzer] Refactoring coverage state-management code. | Mike Aizatsky | 2016-05-10 | 4 | -116/+206 |
| | | | | | | | | | It is now less state-dependent and will allow easier comparing of coverages of different units. Differential Revision: http://reviews.llvm.org/D20085 llvm-svn: 269140 | ||||
* | [libFuzzer] add a test for libFuzzer+ubsan, extend the docs on using ↵ | Kostya Serebryany | 2016-05-09 | 4 | -0/+56 |
| | | | | | | libFuzzer+ubsan llvm-svn: 268968 | ||||
* | [libFuzzer] better document the -merge=1 flag | Kostya Serebryany | 2016-05-09 | 1 | -1/+2 |
| | | | | llvm-svn: 268957 | ||||
* | [libFuzzer] enhance -rss_limit_mb and enable by default. Now it will print ↵ | Kostya Serebryany | 2016-05-06 | 8 | -15/+82 |
| | | | | | | the OOM reproducer. llvm-svn: 268821 | ||||
* | [libFuzzer] add exeprimental -rss_limit_mb flag to fight against OOMs | Kostya Serebryany | 2016-05-06 | 4 | -0/+31 |
| | | | | llvm-svn: 268807 | ||||
* | [libFuzzer] print stats after running individual inputs | Kostya Serebryany | 2016-05-04 | 3 | -2/+7 |
| | | | | llvm-svn: 268547 | ||||
* | [libFuzzer] enable detect_leaks=1, add proper docs | Kostya Serebryany | 2016-04-29 | 3 | -3/+3 |
| | | | | llvm-svn: 268088 | ||||
* | [libFuzzer] disable leak detection if we have tried it for 1000 times w/o ↵ | Kostya Serebryany | 2016-04-27 | 1 | -1/+2 |
| | | | | | | finding a leak [part 2] llvm-svn: 267771 | ||||
* | [libFuzzer] disable leak detection if we have tried it for 1000 times w/o ↵ | Kostya Serebryany | 2016-04-27 | 4 | -0/+28 |
| | | | | | | finding a leak llvm-svn: 267770 | ||||
* | [libFuzzer] remove dead code | Kostya Serebryany | 2016-04-25 | 2 | -5/+2 |
| | | | | llvm-svn: 267455 | ||||
* | [libFuzzer] added -detect_leaks flag (0 by default for now). When enabled, ↵ | Kostya Serebryany | 2016-04-20 | 6 | -5/+103 |
| | | | | | | it will help finding leaks while fuzzing llvm-svn: 266838 | ||||
* | [libFuzzer] try to print correct time in seconds when reporting a timeout. ↵ | Kostya Serebryany | 2016-04-18 | 3 | -6/+6 |
| | | | | | | Don't report timeouts while still loading the corpus. llvm-svn: 266693 | ||||
* | [libFuzzer] warn if the corpus is empty | Kostya Serebryany | 2016-04-18 | 2 | -1/+5 |
| | | | | llvm-svn: 266670 | ||||
* | [NFC] Header cleanup | Mehdi Amini | 2016-04-18 | 1 | -7/+5 |
| | | | | | | | | | | | | | | Removed some unused headers, replaced some headers with forward class declarations. Found using simple scripts like this one: clear && ack --cpp -l '#include "llvm/ADT/IndexedMap.h"' | xargs grep -L 'IndexedMap[<]' | xargs grep -n --color=auto 'IndexedMap' Patch by Eugene Kosov <claprix@yandex.ru> Differential Revision: http://reviews.llvm.org/D19219 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266595 | ||||
* | [libFuzzer] add a better warning for command line flags with -- (two dashes) | Kostya Serebryany | 2016-04-15 | 2 | -0/+5 |
| | | | | llvm-svn: 266480 | ||||
* | Remove redundant .c_str(), as suggested by PR25633 | Hans Wennborg | 2016-04-11 | 1 | -1/+1 |
| | | | | llvm-svn: 265988 | ||||
* | [libfuzzer] defensive assert | Mike Aizatsky | 2016-04-08 | 1 | -1/+2 |
| | | | | llvm-svn: 265866 | ||||
* | [libfuzzer] adding license headers to cpp files | Mike Aizatsky | 2016-04-01 | 27 | -0/+81 |
| | | | | | | Differential Revision: http://reviews.llvm.org/D18705 llvm-svn: 265174 | ||||
* | [libFuzzer] more docs | Kostya Serebryany | 2016-03-29 | 1 | -1/+2 |
| | | | | llvm-svn: 264803 | ||||
* | [libFuzzer] use fflush after every Printf | Kostya Serebryany | 2016-03-25 | 1 | -0/+1 |
| | | | | llvm-svn: 264459 | ||||
* | [libFuzzer] handle SIGTERM | Kostya Serebryany | 2016-03-24 | 4 | -0/+4 |
| | | | | llvm-svn: 264338 | ||||
* | [libFuzzer] don't report memory leaks if we are dying due to a timeout (just ↵ | Kostya Serebryany | 2016-03-24 | 5 | -5/+25 |
| | | | | | | use _Exit instead of exit in the timeout callback) llvm-svn: 264237 | ||||
* | [libFuzzer] use fdopen+vfprintf instead of fsnprintf+write | Kostya Serebryany | 2016-03-24 | 1 | -11/+10 |
| | | | | llvm-svn: 264230 | ||||
* | [libFuzzer] add a flag close_fd_mask so that we can silence spammy targets ↵ | Kostya Serebryany | 2016-03-18 | 7 | -1/+74 |
| | | | | | | by closing stderr/stdout llvm-svn: 263831 | ||||
* | [Fuzzer] Guard no_sanitize_memory attributes behind __has_feature. | Benjamin Kramer | 2016-03-18 | 1 | -2/+10 |
| | | | | | | Otherwise GCC fails to build it because it doesn't know the attribute. llvm-svn: 263787 | ||||
* | [libFuzzer] read corpus dirs recursively | Kostya Serebryany | 2016-03-18 | 2 | -14/+25 |
| | | | | llvm-svn: 263773 | ||||
* | [libFuzzer] improve -merge functionality | Kostya Serebryany | 2016-03-18 | 6 | -73/+101 |
| | | | | llvm-svn: 263769 | ||||
* | [libFuzzer] deprecate several flags | Kostya Serebryany | 2016-03-17 | 7 | -51/+10 |
| | | | | llvm-svn: 263739 | ||||
* | [libFuzzer] add __attribute__((no_sanitize_memory)) to two functions that ↵ | Kostya Serebryany | 2016-03-17 | 1 | -0/+2 |
| | | | | | | may be called from signal handler(s) or from msan. This will hopefully avoid msan false reports which I can't reproduce llvm-svn: 263737 | ||||
* | [libfuzzer] speeding up corpus load | Mike Aizatsky | 2016-03-15 | 1 | -8/+10 |
| | | | | llvm-svn: 263591 | ||||
* | [libFuzzer] use max_len exactly equal to the max size of input. Fix 32-bit build | Kostya Serebryany | 2016-03-15 | 1 | -1/+2 |
| | | | | llvm-svn: 263518 | ||||
* | [libFuzzer] try to use max_len based on the items of the corpus instead of ↵ | Kostya Serebryany | 2016-03-12 | 5 | -24/+56 |
| | | | | | | blindly defaulting to 64 bytes. llvm-svn: 263323 | ||||
* | [libfuzzer] adding std:string to allowed adaptable argument. | Mike Aizatsky | 2016-03-04 | 2 | -0/+20 |
| | | | | llvm-svn: 262757 | ||||
* | [libFuzzer] log less when re-loading files; fix a silly bug: when running ↵ | Kostya Serebryany | 2016-03-04 | 2 | -3/+5 |
| | | | | | | single files actually run all of them, not just the first one llvm-svn: 262754 | ||||
* | [libfuzzer] arbitrary function adapter. | Mike Aizatsky | 2016-03-03 | 5 | -0/+299 |
| | | | | | | | | | The adapter automates converting sequence of bytes into arbitrary arguments. Differential Revision: http://reviews.llvm.org/D17829 llvm-svn: 262673 | ||||
* | [libFuzzer] when interrupted, call _Exit() instead of exit() | Kostya Serebryany | 2016-03-03 | 1 | -1/+1 |
| | | | | llvm-svn: 262667 | ||||
* | [libFuzzer] add -Werror for libFuzzer build rule | Kostya Serebryany | 2016-03-02 | 1 | -1/+1 |
| | | | | llvm-svn: 262517 | ||||
* | libfuzzer: fix compiler warnings | Dmitry Vyukov | 2016-03-02 | 2 | -6/+12 |
| | | | | | | | | - unused sigaction/setitimer result (used in assert) - unchecked fscanf return value - signed/unsigned comparison llvm-svn: 262472 | ||||
* | [libFuzzer] deprecate exit_on_first flag | Kostya Serebryany | 2016-03-01 | 4 | -12/+10 |
| | | | | llvm-svn: 262417 | ||||
* | [libFuzzer] add generic signal handlers so that libFuzzer can report at ↵ | Kostya Serebryany | 2016-03-01 | 7 | -21/+94 |
| | | | | | | least something if ASan is not handlig the signals for us. Remove abort_on_timeout flag. llvm-svn: 262415 | ||||
* | [libFuzzer] remove FuzzerSanitizerOptions.cpp | Kostya Serebryany | 2016-03-01 | 2 | -18/+0 |
| | | | | llvm-svn: 262354 | ||||
* | Refactor duplicated code for linking with pthread. | Rafael Espindola | 2016-03-01 | 1 | -6/+2 |
| | | | | llvm-svn: 262344 | ||||
* | [libFuzzer] fixing the bot | Kostya Serebryany | 2016-02-27 | 1 | -1/+1 |
| | | | | llvm-svn: 262106 |