474 Commits

Author SHA1 Message Date
van Hauser
1148a2d0d1 document new environment variables and code format 2020-03-10 07:14:42 +01:00
Dominik Maier
1136e887bd now wiht 90% less leaks 2020-03-09 21:34:11 +01:00
van Hauser
73a1b39446 quickfix for first big bug that use_stdin was not correctly initialized and could not be set 2020-03-09 19:40:59 +01:00
Dominik Maier
253bbf3a5c replaced free with ck_free 2020-03-09 19:36:02 +01:00
van Hauser
a24352ddfd fix leaks 2020-03-09 15:52:14 +01:00
Andrea Fioraldi
2f41663673 copyleft note 2020-03-09 14:43:40 +01:00
van Hauser
988a32ced5 code-format 2020-03-09 12:21:54 +01:00
Dominik Maier
dba3595c0a
AFL without globals (#220)
* moved globals to afl, shm and fsrv 

* moved argv to afl state, less bugs

* fixed unicorn docu

* lists everywhere

* merged custom mutators

* fixed leaks in afl-fuzz
2020-03-09 11:24:10 +01:00
van Hauser
8e953d9931
Merge pull request #240 from rish9101/refactor
Remove get_cut_time function from multiple places and refactor code
2020-03-09 09:30:25 +01:00
van Hauser
36ce9c1fb9 more code format 2020-03-09 08:30:28 +01:00
rish9101
1a582d54e5 Remove get_cut_time function from multiple places and refactor code 2020-03-09 10:04:32 +05:30
h1994st
8f93cf5c55 Add two new hooks for the custom mutator
- `afl_custom_queue_get` and `afl_custom_queue_new_entry`
- Update the corresponding document and examples
2020-03-07 16:28:48 -05:00
Andrea Fioraldi
ed5d65b54f solve linking error when python is not available 2020-03-07 14:26:33 +01:00
Andrea Fioraldi
172d384bf2 custom havoc mutation 2020-03-07 12:11:06 +01:00
van Hauser
9d686ba523
Add LTO collision free llvm_mode (#223)
* first new implementation, only works with AFL_DONT_OPTIMIZE

* bug hunting

* interim commit

* finalized LTO non-collision solution

* update documentation

* merge resulted in some problems, fixing these

* added lto env to env check

* fixed llvm weirdness to messes up our instrumentation due CFG rewrite optimizations

* all llvm instrumentation issues have been resolved! :-)

* llvm 9 is required (so far)

* update lto readme
2020-03-05 10:52:26 +01:00
Andrea Fioraldi
e43473faef
Merge pull request #221 from h1994st/master
Uniform Python and custom mutator API
2020-03-04 18:38:03 +01:00
van Hauser
05a3418f86 added __afl_final_loc to all compile RTs 2020-03-04 01:51:41 +01:00
h1994st
df46521658 Finish refactoring APIs for the custom mutator and Python module
- Remove AFL_PYTHON_ONLY (env) and python_only (variable)
- Unify fuzz API of the custom mutator and Python module
- Merge the custom mutator into the old python_stage, which is now renamed to custom_mutator_stage
2020-03-03 19:48:13 -05:00
h1994st
90506479e7 Refactoring fuzz_py API 2020-03-02 21:30:10 -05:00
h1994st
7862416844 Uniform API for both Python and custom mutator 2020-03-02 19:29:41 -05:00
h1994st
031946136b Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus 2020-03-02 15:27:31 -05:00
h1994st
7b59e05600 Add new APIs for the custom mutator 2020-03-02 15:27:29 -05:00
Dominik Maier
3e0a3ec45f migrated autoresume to use get_afl_env 2020-03-01 14:09:21 +01:00
Dominik Maier
6865cd8d69 Added AFL_AUTORESUME option 2020-03-01 13:47:33 +01:00
van Hauser
95322c11d9 print OKF if an environment variable is successfully loaded - feebdack to this please ... 2020-02-29 20:49:16 +01:00
van Hauser
6730b6a15a code-format, env.md fixes and adding -hh for env usage display into afl-fuzz and Makefile 2020-02-29 14:23:44 +01:00
van Hauser
212e5d1a72 v2.62d 2020-02-28 01:16:36 +01:00
van Hauser
20b8fc075b v2.62c 2020-02-28 01:12:44 +01:00
van Hauser
f526bb2ecb better alloc-inl.h 2020-02-28 00:35:59 +01:00
van Hauser
4e37e12c06 code-format 2020-02-28 00:19:36 +01:00
Andrea Fioraldi
d83ab141f6 cpyright 2020-02-27 23:22:29 +01:00
Andrea Fioraldi
11236dd545 restore alloc-inl from AFL 2020-02-27 21:11:45 +01:00
hexcoder-
901360b902 sync afl-as setup with afl-llvm-rt (add __afl_area_ptr[0] = 1) 2020-02-24 23:19:56 +01:00
van Hauser
9cc8ebd351 2.61d init 2020-02-24 17:26:02 +01:00
van Hauser
3f6bfbd981 v2.61c 2020-02-24 17:24:06 +01:00
van Hauser
f807d7cefb important InsTrim fixes! 2020-02-24 02:45:17 +01:00
van Hauser
ec8e8cb51c no unnecessary warnings in test.sh 2020-02-21 18:10:50 +01:00
Andrea Fioraldi
97d34b52d7
Merge pull request #202 from vanhauser-thc/cmplog_routines
Cmplog routines for LLVM mode
2020-02-19 20:48:26 +01:00
van Hauser
f9d7ad8e43 forgot cleanup 2020-02-19 10:52:44 +01:00
Andrea Fioraldi
13296af491 skeleton for rtn cmplog 2020-02-18 15:05:17 +01:00
Andrea Fioraldi
706718ca2e cmplog routines llvm pass 2020-02-18 14:52:28 +01:00
Andrea Fioraldi
528193e925 remove heap checks in alloc-inl.h 2020-02-18 10:42:19 +01:00
Andrea Fioraldi
20bcd4009b that env is not for the users, it is an internal env used to tell qemu that we want the cmplog shmem 2020-02-17 14:14:58 +01:00
van Hauser
55e90c0c36 code format 2020-02-17 08:26:26 +01:00
van Hauser
220804714b unsafe memory speed toggle 2020-02-17 08:25:27 +01:00
van Hauser
e40415cf16 fix 2020-02-16 19:22:12 +01:00
van Hauser
204059c61a check for mistyped env vars 2020-02-16 18:16:10 +01:00
Andrea Fioraldi
ef00ed6090 code format 2020-02-16 13:21:39 +01:00
van Hauser
33c18c36db add 'e' code for version 2020-02-09 23:31:19 +01:00
Andrea Fioraldi
f2f6be5e99 afl qemu persistent hook 2020-02-07 20:43:17 +01:00