Marcos Pividori
|
255eed0380
|
[libFuzzer] Change Uninstrumented test name.
On Windows, executables with the word "uninst" included in their names are
associated with administrator privileges.
Differential Revision: https://reviews.llvm.org/D29549
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294387 91177308-0d34-0410-b5e6-96231b3b80d8
|
2017-02-08 00:03:13 +00:00 |
|
Marcos Pividori
|
1ff471105f
|
[libFuzzer] Update fuzzer.test to properly set environment variables.
Use env to set environment variables, so it works on Windows and Linux.
Differential Revision: https://reviews.llvm.org/D29537
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294385 91177308-0d34-0410-b5e6-96231b3b80d8
|
2017-02-08 00:03:03 +00:00 |
|
Marcos Pividori
|
f78e1b3b9d
|
[libFuzzer] Update test to consider different exceptions.
Differential Revision: https://reviews.llvm.org/D29531
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294377 91177308-0d34-0410-b5e6-96231b3b80d8
|
2017-02-08 00:02:25 +00:00 |
|
Kostya Serebryany
|
e0c77c88b7
|
[libFuzzer] use print+exit(1) instead of assert to report an error
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292685 91177308-0d34-0410-b5e6-96231b3b80d8
|
2017-01-21 00:13:50 +00:00 |
|
Kostya Serebryany
|
c29243753f
|
[libFuzzer] add an assert to protect against LLVMFuzzerInitialize changing argv[0]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292652 91177308-0d34-0410-b5e6-96231b3b80d8
|
2017-01-20 21:34:24 +00:00 |
|
Kostya Serebryany
|
851cd4f9a2
|
[libFuzzer] build libFuzzer itself with asan
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289469 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-12-12 20:58:10 +00:00 |
|
Kostya Serebryany
|
9c5c57d05a
|
[libFuzzer] test cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289312 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-12-10 02:45:56 +00:00 |
|
Kostya Serebryany
|
1b6cd25422
|
[libFuzzer] switch all libFuzzer tests to use -fsanitize-coverage=trace-pc-guard. Support for the previosly used instrumentation will be removed in the following changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289311 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-12-10 02:26:23 +00:00 |
|
Kostya Serebryany
|
302a19a141
|
[libFuzzer] enable use_cmp by default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285353 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-10-27 21:44:37 +00:00 |
|
Kostya Serebryany
|
98711e2ac8
|
[libFuzzer] add StandaloneFuzzTargetMain.c and a test for it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285135 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-10-25 22:30:34 +00:00 |
|
Kostya Serebryany
|
7430a26dd8
|
[libFuzzer] add a test for asan's strict_string_checks=1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284902 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-10-22 00:05:44 +00:00 |
|
Kostya Serebryany
|
cc6cbfdebc
|
[libFuzzer] refactoring to make -shrink=1 work for value profile, added a test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283409 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-10-05 22:56:21 +00:00 |
|
Kostya Serebryany
|
d4d50f6f47
|
[libFuzzer] add ShrinkValueProfileTest, move code around, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283286 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-10-05 01:09:40 +00:00 |
|
Kostya Serebryany
|
65f502816c
|
[libFuzzer] add -exit_on_src_pos to test libFuzzer itself, add a test script for RE2 that uses this flag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282458 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-09-27 00:10:20 +00:00 |
|
Kostya Serebryany
|
b9cc2c457f
|
[libFuzzer] change trace-pc to use 8-byte guards
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281810 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-09-17 05:04:47 +00:00 |
|
Kostya Serebryany
|
dcc5ba2671
|
[libFuzzer] make caller-callee feedback work with trace-pc-guard
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281667 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-09-15 22:16:15 +00:00 |
|
Kostya Serebryany
|
26586a8660
|
[libFuzzer] add 8-bit counters to trace-pc-guard handler
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281568 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-09-15 01:30:18 +00:00 |
|
Kostya Serebryany
|
a4826c1b99
|
[libFuzzer] start using trace-pc-guard as an alternative source of coverage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281435 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-09-14 02:13:06 +00:00 |
|
Kostya Serebryany
|
fd9cb1a5c5
|
[libFuzzer] add a test that is built w/o coverage instrumentation but has the coverage rt (it should now fail with a descriptive message)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272090 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-06-08 01:46:13 +00:00 |
|
Mike Aizatsky
|
21e8db8cc1
|
[libfuzzer] splitting fuzzer.test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271697 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-06-03 18:05:22 +00:00 |
|
Kostya Serebryany
|
3886b25c4a
|
[libFuzzer] when an invalid flag is given, warn, but don't crash
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271404 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-06-01 16:41:12 +00:00 |
|
Kostya Serebryany
|
dc4065fcc1
|
[libFuzzer] use __sanitizer_set_report_fd with -close_fd_mask. This allows us to keep asan reports when closing target's stderr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271053 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-05-27 21:46:22 +00:00 |
|
Kostya Serebryany
|
34fca4b9ec
|
[libFuzzer] reimplement the way we do -only_ascii to allow more 'const' in function declarations. Add a test for -only_ascii. NFC intended
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270900 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-05-26 20:03:02 +00:00 |
|
Kostya Serebryany
|
305ed5060f
|
[libFuzzer] print stats if we crash on empty input
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270639 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-05-25 00:15:36 +00:00 |
|
Kostya Serebryany
|
909ee84abf
|
[libFuzzer] print the file name before executing the input so that if there is a crash we know which files has caused it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269450 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-05-13 18:10:33 +00:00 |
|
Kostya Serebryany
|
18c0216842
|
[libFuzzer] print stats after running individual inputs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268547 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-05-04 20:44:50 +00:00 |
|
Kostya Serebryany
|
37e715dc57
|
[libFuzzer] warn if the corpus is empty
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266670 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-04-18 21:14:11 +00:00 |
|
Kostya Serebryany
|
ac6d266478
|
[libFuzzer] add a better warning for command line flags with -- (two dashes)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266480 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-04-15 21:56:29 +00:00 |
|
Kostya Serebryany
|
c09d592889
|
[libFuzzer] don't report memory leaks if we are dying due to a timeout (just use _Exit instead of exit in the timeout callback)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264237 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-03-24 01:32:08 +00:00 |
|
Kostya Serebryany
|
4aa62c5d17
|
[libFuzzer] add a flag close_fd_mask so that we can silence spammy targets by closing stderr/stdout
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263831 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-03-18 20:58:29 +00:00 |
|
Kostya Serebryany
|
2b341f70ca
|
[libFuzzer] read corpus dirs recursively
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263773 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-03-18 01:36:00 +00:00 |
|
Kostya Serebryany
|
bcace10c40
|
[libFuzzer] deprecate several flags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263739 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-03-17 19:59:39 +00:00 |
|
Kostya Serebryany
|
7a1dcf9965
|
[libFuzzer] add generic signal handlers so that libFuzzer can report at least something if ASan is not handlig the signals for us. Remove abort_on_timeout flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262415 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-03-01 22:19:21 +00:00 |
|
Kostya Serebryany
|
86b1b67565
|
[libFuzzer] add -print_final_stats=1 flag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262084 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-02-26 22:42:23 +00:00 |
|
Kostya Serebryany
|
efb0cc7640
|
[libFuzzer] get rid of UserSuppliedFuzzer; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260798 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-02-13 03:25:16 +00:00 |
|
Kostya Serebryany
|
f71ac00d01
|
[libFuzzer] remove UserSuppliedFuzzer from the interface (it was a bad idea).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260796 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-02-13 02:39:30 +00:00 |
|
Kostya Serebryany
|
e6d7e3d948
|
[libFuzzer] provide a plain C interface for custom mutators (experimental)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260794 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-02-13 02:29:38 +00:00 |
|
Kostya Serebryany
|
14c6007ab2
|
[libFuzzer] make -runs=N flag also affect the simple runner (will execute every input N times)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260649 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-02-12 02:32:03 +00:00 |
|
Kostya Serebryany
|
5a91878f44
|
[libFuzzer] hot fix a test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259732 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-02-04 00:12:28 +00:00 |
|
Kostya Serebryany
|
598f7017b4
|
[libFuzzer] don't write the test unit when a leak is detected (since we don't know which unit causes the leak)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259731 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-02-04 00:02:17 +00:00 |
|
Kostya Serebryany
|
485551ecaf
|
[libFuzzer] allow passing 1 or more files as individual inputs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259459 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-02-02 03:03:47 +00:00 |
|
Kostya Serebryany
|
05de8e95f6
|
[libFuzzer] fail if the corpus dir does not exist
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259454 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-02-02 02:07:26 +00:00 |
|
Kostya Serebryany
|
429a7edf9b
|
[libFuzzer] use std::mt19937 for generating random numbers by default. Fix MyStoll to handle negative values. Use std::any_of instead of std::find_if
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258178 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-01-19 20:33:57 +00:00 |
|
Kostya Serebryany
|
1e595319e3
|
[libFuzzer] introduce LLVMFuzzerInitialize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257980 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-01-16 01:23:12 +00:00 |
|
Kostya Serebryany
|
3888fb079a
|
[libFuzzer] make sure we find buffer overflow in the input buffer. Previously, re-using the same vector object was hiding buffer overflows (unless we used annotated vector)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257701 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-01-13 23:02:30 +00:00 |
|
Kostya Serebryany
|
ab240104f0
|
[libFuzzer] add a position hint to the dictionary-based mutator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257013 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-01-07 01:49:35 +00:00 |
|
Mike Aizatsky
|
1cea7723fa
|
[libfuzzer] print_new_cov_pcs experimental option.
Differential Revision: http://reviews.llvm.org/D15901
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256882 91177308-0d34-0410-b5e6-96231b3b80d8
|
2016-01-06 00:21:22 +00:00 |
|
Kostya Serebryany
|
cf686ded44
|
[libFuzzer] split the tests to run them in parallel, remove one redundant test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256085 91177308-0d34-0410-b5e6-96231b3b80d8
|
2015-12-19 03:35:30 +00:00 |
|
Kostya Serebryany
|
a1e5f35b02
|
[libFuzzer] make CrossOver just one of the other mutations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256081 91177308-0d34-0410-b5e6-96231b3b80d8
|
2015-12-19 02:49:09 +00:00 |
|
Mike Aizatsky
|
6d5ee5a800
|
[LibFuzzer] Introducing FUZZER_FLAG_UNSIGNED and using it for seeding.
Differential Revision: http://reviews.llvm.org/D15339
done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255296 91177308-0d34-0410-b5e6-96231b3b80d8
|
2015-12-10 20:41:53 +00:00 |
|