2402 Commits

Author SHA1 Message Date
Dominik Maier
af60844aea fix ASAN bulid for old gcc versions 2020-04-01 12:53:03 +02:00
van Hauser
c4c13dd235 fix ASAN check 2020-04-01 12:52:54 +02:00
Dominik Maier
ba4f0186dd fixed asan mem limit 2020-04-01 12:43:26 +02:00
van Hauser
a5c09e4c11 disable memory limits for ASAN build 2020-04-01 12:19:54 +02:00
hexcoder-
c7818714ac fix cmocka fixup 2020-04-01 09:42:40 +02:00
Dominik Maier
cec3d74497 cmocka mocks 2020-04-01 03:39:36 +02:00
Dominik Maier
10b226418c mocking cmocka 1 for cmocka 0.x 2020-04-01 03:20:22 +02:00
Dominik Maier
c843085a28 old cmocka is old 2020-04-01 02:59:19 +02:00
Dominik Maier
101c5a275f add assert_ptr_equal fallback 2020-04-01 02:28:54 +02:00
Dominik Maier
acf4b0981e typo fix 2020-04-01 02:09:33 +02:00
Dominik Maier
98c0908185 docs 2020-04-01 02:07:52 +02:00
Dominik Maier
ead3701f5b next_p2 replaced by next_pow2 2020-04-01 02:03:46 +02:00
Dominik Maier
0349b0a735 code format 2020-04-01 02:00:03 +02:00
Dominik Maier
11cad9fb20 one less alloc 2020-04-01 01:58:34 +02:00
Dominik Maier
7f44fec0a5 minor changes 2020-04-01 01:55:13 +02:00
Dominik Maier
d4c8a2058d fixed docu 2020-04-01 01:38:45 +02:00
Dominik Maier
d73e63bd70 try to fix forkserver 2020-04-01 01:24:44 +02:00
David Carlier
48655c2e12 llvm_mode: using MaybeAlign wrapper over the deprecated setter.
seems to be available even on LLVM 3.7
2020-03-31 19:25:24 +01:00
van Hauser
d0d5518ea8 fix gcc 2020-03-31 18:06:14 +02:00
Dominik Maier
822e75f7c2 reenabled custom mutator report 2020-03-31 14:01:22 +02:00
van Hauser
08b6b4ec4e travis: dont fail on custom mutator - currently 2020-03-31 07:37:30 +02:00
van Hauser
3253e3f315 fix unit test compilation 2020-03-31 07:14:25 +02:00
Dominik Maier
e58e54c2db make travis happy 2020-03-31 04:51:38 +02:00
Dominik Maier
0a7dc10dd3 fixed bug in cmplog 2020-03-31 04:22:22 +02:00
Dominik Maier
3914aec72f src doku is now markdown 2020-03-31 03:41:51 +02:00
Dominik Maier
9b63fc758e dropped make switches 2020-03-31 03:22:46 +02:00
Dominik Maier
d3130ace30 enabled fortify source 2020-03-31 02:41:11 +02:00
Dhiraj Mishra
daa09a5fbb Update regexp.dict 2020-03-31 01:41:16 +02:00
Dhiraj Mishra
a249dadfb0 Update regexp.dict 2020-03-31 01:41:16 +02:00
Dominik Maier
64e9f1f3a2 tiny fixes 2020-03-30 23:53:10 +02:00
Dominik Maier
9110097e11 fix ubuntu cmocka pkgname 2020-03-30 18:55:54 +02:00
Dominik Maier
ac48b58184 mutator docs 2020-03-30 18:46:12 +02:00
Dominik Maier
8f5fb47082 code format 2020-03-30 18:38:39 +02:00
Dominik Maier
a58382d3ff added unittests to test.sh 2020-03-30 18:37:16 +02:00
Dominik Maier
5ef8e3cf29 Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev 2020-03-30 18:22:43 +02:00
Shengtuo Hu
6544014ced
Add test cases for the custom mutator (#276)
* Minor update

* Fix the soft link of `afl-clang-fast++`

* Add a test case for the custom mutator

- Update the Makefile in examples/custom_mutators
- Add a test program for testing the custom mutator
- Update test.sh for testing the custom mutator
- [TODO] Update the result checking criterias of the custom mutator in
test.sh

* Fix nullptr in the custom mutator

* Fix typo

* Fix invalid memory access bug in `afl_custom_pre_save` of example.c

* example.py: add deinit()

* python mutator: fix nullptr for python mutator data

* test.sh: "trusty-amd64" does not work well with "realpath". Use
"readlink -f" for Ubuntu instead.

* Fix heap allocation bug

- Reason: `afl->out_size` is not consistent with the actual allocation
of `afl->out_buf`. The deleted line in `src/afl-fuzz-one.c` may change
`afl->out_size`, but `afl->out_buf` is not changed

* test.sh: redirect command line output

* afl-fuzz-one.c: minor update

Co-authored-by: Dominik Maier <domenukk@gmail.com>
2020-03-30 18:21:03 +02:00
Dominik Maier
3fcb3e2ed3 fixed testcase 2020-03-30 18:20:20 +02:00
van Hauser
caebc9347f added unit target to make help and README 2020-03-30 17:45:17 +02:00
Dominik Maier
1f257c5875 fixed example 2020-03-30 16:46:54 +02:00
h1994st
e2a3de71ca afl-fuzz-one.c: minor update 2020-03-30 16:46:54 +02:00
h1994st
57a0134b0c test.sh: redirect command line output 2020-03-30 16:46:54 +02:00
h1994st
d9b18ec853 Fix heap allocation bug
- Reason: `afl->out_size` is not consistent with the actual allocation
of `afl->out_buf`. The deleted line in `src/afl-fuzz-one.c` may change
`afl->out_size`, but `afl->out_buf` is not changed
2020-03-30 16:46:54 +02:00
h1994st
6c14415664 test.sh: "trusty-amd64" does not work well with "realpath". Use
"readlink -f" for Ubuntu instead.
2020-03-30 16:46:54 +02:00
h1994st
567b3985ab python mutator: fix nullptr for python mutator data 2020-03-30 16:46:54 +02:00
h1994st
45561d552e example.py: add deinit() 2020-03-30 16:46:54 +02:00
h1994st
fbd5bd8f37 Fix invalid memory access bug in afl_custom_pre_save of example.c 2020-03-30 16:46:54 +02:00
h1994st
048beb752d Fix typo 2020-03-30 16:46:53 +02:00
Dominik Maier
87621b6345 rebase 2020-03-30 16:46:50 +02:00
h1994st
ff14dfc0fc Add a test case for the custom mutator
- Update the Makefile in examples/custom_mutators
- Add a test program for testing the custom mutator
- Update test.sh for testing the custom mutator
- [TODO] Update the result checking criterias of the custom mutator in
test.sh
2020-03-30 16:46:11 +02:00
Dominik Maier
c624831717 upstream changes 2020-03-30 16:46:05 +02:00