summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/fuzzer
Commit message (Collapse)AuthorAgeFilesLines
...
* [libFuzzer] Fix flaky merge.test.Matt Morehouse2017-11-171-1/+1
| | | | llvm-svn: 318475
* [libFuzzer] Make merge-sigusr.test work on Mac.Matt Morehouse2017-11-161-2/+1
| | | | llvm-svn: 318465
* [libFuzzer] add more tests for mergeKostya Serebryany2017-11-161-0/+10
| | | | llvm-svn: 318453
* [libFuzzer] disable test/fuzzer/merge-sigusr.test on Mac while investigating ↵Kostya Serebryany2017-11-161-0/+1
| | | | | | the bot failure llvm-svn: 318376
* [libFuzzer] respect max_len during mergeKostya Serebryany2017-11-151-0/+4
| | | | llvm-svn: 318302
* [libFuzzer] trying to make sigusr tests more reliableKostya Serebryany2017-11-102-0/+2
| | | | llvm-svn: 317852
* [libFuzzer] split a test into two Kostya Serebryany2017-11-102-17/+24
| | | | llvm-svn: 317851
* [libFuzzer] use pkill instead of killall in a test since the bots don't have ↵Kostya Serebryany2017-11-091-1/+1
| | | | | | killall llvm-svn: 317840
* [libFuzzer] make sure to flush IO when done merging one fileKostya Serebryany2017-11-091-1/+1
| | | | llvm-svn: 317835
* [libFuzzer] Don't add leaking inputs to corpus.Matt Morehouse2017-11-091-1/+5
| | | | | | | | | | | | Reviewers: kcc Reviewed By: kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39850 llvm-svn: 317831
* [libFuzzer] handle SIGUSR1/SIGUSR2 and try to exit grafully on these signalsKostya Serebryany2017-11-092-0/+42
| | | | llvm-svn: 317829
* [libFuzzer] allow merge to resume after being preempted Kostya Serebryany2017-11-091-0/+47
| | | | llvm-svn: 317767
* [libFuzzer] mechanically simplify a test, NFCKostya Serebryany2017-11-091-32/+32
| | | | llvm-svn: 317756
* [libFuzzer] fix a test (and hopefully, the bot)Kostya Serebryany2017-11-091-1/+1
| | | | llvm-svn: 317749
* [libFuzzer] allow user to specify the merge control fileKostya Serebryany2017-11-091-0/+11
| | | | llvm-svn: 317747
* [fuzzer] Script to detect unbalanced allocation in -trace_malloc outputVitaly Buka2017-11-011-0/+27
| | | | | | | | | | Reviewers: kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39466 llvm-svn: 317119
* [fuzzer] Fix threaded stack printingVitaly Buka2017-11-012-0/+58
| | | | | | | | | | Reviewers: kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39397 llvm-svn: 317071
* Revert "[fuzzer] Fix threaded stack printing and nested mallocs"Vitaly Buka2017-11-013-85/+0
| | | | | | | | | | | Fails on darwin Revert "[fuzzer] Script to detect unbalanced allocation in -trace_malloc output" Needs previous one. This reverts commit r317034, r317036. llvm-svn: 317061
* [fuzzer] Script to detect unbalanced allocation in -trace_malloc outputVitaly Buka2017-10-311-0/+27
| | | | | | | | | | Reviewers: kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39466 llvm-svn: 317036
* [fuzzer] Fix threaded stack printing and nested mallocsVitaly Buka2017-10-312-0/+58
| | | | | | | | | | | | Summary: Nested mallocs are possible with internal symbolizer. Reviewers: kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39397 llvm-svn: 317034
* [libFuzzer] trying to make a test more stable on MacKostya Serebryany2017-10-251-1/+1
| | | | llvm-svn: 316627
* [libFuzzer] tweam use_feature_frequency to be less aggressive; run a dummy ↵Kostya Serebryany2017-10-132-5/+5
| | | | | | input before the seed corpus llvm-svn: 315657
* [libFuzzer] Disable experimental clang coverage support by default.Max Moroz2017-10-051-0/+7
| | | | | | | | | | | | | | | | | Summary: It can be enabled via "-use_clang_coverage=1" flag. Reason for disabling: libFuzzer resets Clang Counters and makes it impossible to generate coverage report for a regular fuzz target (i.e. not standalone build). Reviewers: kcc Reviewed By: kcc Subscribers: kcc Differential Revision: https://reviews.llvm.org/D38604 llvm-svn: 315029
* [libFuzzer] add linux-specific test for gc-sectionsKostya Serebryany2017-09-152-0/+27
| | | | llvm-svn: 313421
* [libFuzzer] test fixKostya Serebryany2017-09-151-1/+1
| | | | llvm-svn: 313411
* [libFuzzer] Fix lit files to make running tests more straightforward on Mac OS.Max Moroz2017-09-122-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Current implementation does not work if CMAKE_OSX_SYSROOT is not specified. It silently generates invalid command with the following flags: `-std=c++11 -lc++ -gline-tables-only -isysroot -fsanitize=address,fuzzer` and then fails with the following error: ``` warning: no such sysroot directory: '-fsanitize=address,fuzzer' [-Wmissing-sysroot]" <...>/RepeatedBytesTest.cpp:5:10: fatal error: 'assert.h' file not found #include <assert.h> ^~~~~~~~~~ 1 error generated. ``` However, if you have Command Line Tools installed, you have '/usr/include' dir. In that case, it is not necessary to specify isysroot path. Also, with the patch, in case of '/usr/include' does not exist, the '-sysroot' path would be resolved automatically in compiler-rt/cmake/base-config-ix.cmake. For more context, see the comment at `compiler-rt/cmake/base-config-ix.cmake#L76` Reviewers: kcc, george.karpenkov Reviewed By: kcc, george.karpenkov Differential Revision: https://reviews.llvm.org/D37721 llvm-svn: 313033
* [libfuzzer] Compare TotalNumberOfRuns with MaxNumberOfRuns when testing a ↵Max Moroz2017-09-121-0/+10
| | | | | | | | | | | | | | | | | | | memory leak. Summary: Fuzzer::TryDetectingAMemoryLeak may call ExecuteCallback which would increment TotalNumberOfRuns, but it doesn't respect Options.MaxNumberOfRuns value specified by a user. Context: https://github.com/google/oss-fuzz/issues/822#issuecomment-328153970 Reviewers: kcc Reviewed By: kcc Differential Revision: https://reviews.llvm.org/D37632 llvm-svn: 312993
* [libFuzzer] simplify CustomCrossOverTest even moreKostya Serebryany2017-09-072-7/+10
| | | | llvm-svn: 312697
* [libFuzzer] simplify CustomCrossOverTest a bit moreKostya Serebryany2017-09-071-2/+2
| | | | llvm-svn: 312695
* [libFuzzer] simplify and re-enable CustomCrossOverTestKostya Serebryany2017-09-072-36/+25
| | | | llvm-svn: 312689
* [libFuzzer] remporary disable an unstable testKostya Serebryany2017-09-051-1/+4
| | | | llvm-svn: 312593
* [libFuzzer] use more iterations for a testKostya Serebryany2017-09-011-1/+1
| | | | llvm-svn: 312356
* [libFuzzer] Enable 8-bit counters test on macOSGeorge Karpenkov2017-09-011-1/+0
| | | | llvm-svn: 312339
* [SanitizeCoverage] Enable stack-depth coverage for -fsanitize=fuzzerMatt Morehouse2017-08-301-1/+1
| | | | | | | | | | | | | | | | | | Summary: - Don't sanitize __sancov_lowest_stack. - Don't instrument leaf functions. - Add CoverageStackDepth to Fuzzer and FuzzerNoLink. - Only enable on Linux. Reviewers: vitalybuka, kcc, george.karpenkov Reviewed By: kcc Subscribers: kubamracek, cfe-commits, llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D37156 llvm-svn: 312185
* Revert "[SanitizeCoverage] Enable stack-depth coverage for -fsanitize=fuzzer"Matt Morehouse2017-08-291-1/+1
| | | | | | This reverts r312026 due to bot breakage. llvm-svn: 312047
* [libFUzzer] change the way we load the seed corpora: instead of loading all ↵Kostya Serebryany2017-08-292-2/+2
| | | | | | files and these executing all files, load and execute them one-by-one. This should reduce the memory usage in many cases llvm-svn: 312033
* [SanitizeCoverage] Enable stack-depth coverage for -fsanitize=fuzzerMatt Morehouse2017-08-291-1/+1
| | | | | | | | | | | | | | | | | | Summary: - Don't sanitize __sancov_lowest_stack. - Don't instrument leaf functions. - Add CoverageStackDepth to Fuzzer and FuzzerNoLink. - Disable stack depth tracking on Mac. Reviewers: vitalybuka, kcc, george.karpenkov Reviewed By: kcc Subscribers: kubamracek, cfe-commits, llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D37156 llvm-svn: 312026
* [libFuzzer] allow -print_funcs=N: N is the max number of new covered ↵Kostya Serebryany2017-08-281-3/+3
| | | | | | function printed llvm-svn: 311945
* [libFuzzer] Exclude a test failing on OS X.George Karpenkov2017-08-281-0/+1
| | | | llvm-svn: 311916
* Revert "[SanitizeCoverage] Enable stack-depth coverage for -fsanitize=fuzzer"Matt Morehouse2017-08-251-1/+1
| | | | | | This reverts r311801 due to a bot failure. llvm-svn: 311803
* [SanitizeCoverage] Enable stack-depth coverage for -fsanitize=fuzzerMatt Morehouse2017-08-251-1/+1
| | | | | | | | | | | | | | | | | Summary: - Don't sanitize __sancov_lowest_stack. - Don't instrument leaf functions. - Add CoverageStackDepth to Fuzzer and FuzzerNoLink. Reviewers: vitalybuka, kcc Reviewed By: kcc Subscribers: cfe-commits, llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D37156 llvm-svn: 311801
* [libFuzzer] prepare tests for switching from ↵Kostya Serebryany2017-08-252-5/+5
| | | | | | -fsanitize-coverage=trace-pc-guard to -fsanitize-coverage=inline-8bit-counters llvm-svn: 311798
* [libFuzzer] add -print_funcs=1 (on bey default): print newly discovered ↵Kostya Serebryany2017-08-252-0/+49
| | | | | | functions during fuzzing llvm-svn: 311797
* [sanitizer-coverage] extend fsanitize-coverage=pc-table with flags for every PCKostya Serebryany2017-08-251-0/+1
| | | | llvm-svn: 311794
* [SanitizerCoverage] Optimize stack-depth instrumentation.Matt Morehouse2017-08-221-4/+3
| | | | | | | | | | | | | | | | Summary: Use the initialexec TLS type and eliminate calls to the TLS wrapper. Fixes the sanitizer-x86_64-linux-fuzzer bot failure. Reviewers: vitalybuka, kcc Reviewed By: kcc Subscribers: hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D37026 llvm-svn: 311490
* [libFuzzer] disable a test failing on the botKostya Serebryany2017-08-221-3/+4
| | | | llvm-svn: 311427
* [libFuzzer] fix the stack-depth initialization, add a lit test for ↵Kostya Serebryany2017-08-221-0/+4
| | | | | | DeepRecursionTest.cpp llvm-svn: 311421
* [NFC] do not run linter on libFuzzer's tests.George Karpenkov2017-08-221-0/+1
| | | | llvm-svn: 311419
* Remove check-fuzzer from check-all, as tests don't pass on some bots.George Karpenkov2017-08-221-0/+2
| | | | llvm-svn: 311415
* Move libFuzzer to compiler_rt.George Karpenkov2017-08-21146-0/+2748
Resulting library binaries will be named libclang_rt.fuzzer*, and will be placed in Clang toolchain, allowing redistribution. Differential Revision: https://reviews.llvm.org/D36908 llvm-svn: 311407
OpenPOWER on IntegriCloud