1569 Commits

Author SHA1 Message Date
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
Dominik Maier
c697a003d1 merged dev 2020-03-30 16:45:13 +02:00
Dominik Maier
6bdd7a1609 added untitest to gitignore 2020-03-30 16:08:07 +02:00
Dominik Maier
50a195fe59 code format 2020-03-30 16:07:25 +02:00
Dominik Maier
738016952f Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev 2020-03-30 16:01:33 +02:00
Dominik Maier
209aa25d27 added unittest for unit_maybe_alloc 2020-03-30 16:01:29 +02:00
van Hauser
1279c935e2 regec dict additions 2020-03-30 11:33:42 +02:00
Dominik Maier
28e5a8031c code cleanup 2020-03-30 00:50:32 +02:00
Dominik Maier
f4844e2c0c added read_timed 2020-03-30 00:50:14 +02:00
hexcoder-
ef3a13fa63 llvm_mode/Makefile: replace lexical version comparison with a numerical one 2020-03-29 09:48:01 +02:00
hexcoder-
699f769385 review adaptions for afl-llvm-pass 2020-03-28 23:01:12 +01:00
hexcoder-
2548b657d8 afl-llvm-pass.so.cc: fix compile for llvm 3.8.0 @Marc: please review 2020-03-28 20:25:00 +01:00
hexcoder-
02d19dafb2 .gitignore: add afl-ld and ld 2020-03-28 14:23:54 +01:00
hexcoder-
78009d9d07 qemu_mode: compiler warnings, strncpy() leave one byte for terminator 2020-03-28 14:15:04 +01:00
hexcoder-
2aa7ddf1a8 qemu_mode: fix more compiler warnings 2020-03-28 13:51:35 +01:00
hexcoder-
3c142efecf qemu_mode: silence two compiler warnings 2020-03-28 13:38:49 +01:00
hexcoder-
23b3e3c84d Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-03-28 13:06:05 +01:00
hexcoder-
8b8600fdab types.h: silence some compiler warnings regarding redeclaration of
likely/unlikely
2020-03-28 13:05:26 +01:00
Dominik Maier
1938a12222 code format 2020-03-28 12:59:41 +01:00
Dominik Maier
4c11ef5d20 error handling for custom mutators 2020-03-28 12:58:56 +01:00
hexcoder-
6ac40e2cc5 Merge branch 'dev' of https://github.com/vanhauser-thc/AFLplusplus into dev 2020-03-28 12:16:01 +01:00
hexcoder-
5625e059e1 alloc-inl.h/ck_maybe_grow(): restore original exponential allocs 2020-03-28 12:15:01 +01:00
Dominik Maier
11767bec0e tiny changes in custom mut api 2020-03-28 11:55:10 +01:00
hexcoder-
7a92bf974d alloc-inl.h/ck_maybe_grow() back to size_t, reimplement overflow check 2020-03-28 11:01:29 +01:00
hexcoder-
fc46e9c9a0 alloc_inl.h/ck_maybe_grow(): fix compiler warning 2020-03-28 10:23:11 +01:00
hexcoder-
7a752d0795 gcc_plugin: fix compiler warnings regarding -O and FORTIFY_SOURCE 2020-03-28 10:00:23 +01:00
hexcoder-
0cff53785b llvm_mode: fix compiler warnings FORTIFY_SOURCE needs -O 2020-03-28 09:54:40 +01:00
hexcoder-
4ad885001a making 'CFLAGS="-m32" make source-only tests' work 2020-03-28 09:31:30 +01:00
hexcoder-
a0dec909e7 fix warning in afl-fuzz-run, tested with '-m32' also 2020-03-28 08:38:50 +01:00
hexcoder-
2a660b19a7 fix detection compiles (e.g. python) when using CFLAGS="-m32" 2020-03-28 08:32:54 +01:00
Dominik Maier
8992c44c41 if exponential growth is too much, don't doo it 2020-03-28 05:01:01 +01:00
Dominik Maier
53fd8fe6ea more custom mutator remodelling 2020-03-28 04:57:44 +01:00
Dominik Maier
0059d16731 added nullptr fix by h1994st 2020-03-28 01:14:24 +01:00
Dominik Maier
18bc344cf5 fixed leak 2020-03-28 00:44:52 +01:00