64 Commits

Author SHA1 Message Date
vanhauser-thc
35153e9b49 correct map size for small targets 2021-06-16 15:33:03 +02:00
WorksButNotTested
e40c0c2da1
FASAN Support (#918)
* FASAN Support

* Fix handling of Address Sanitizer DSO

* Changes to identification of Address Sanitizer DSO

Co-authored-by: Your Name <you@example.com>
2021-05-17 20:02:45 +02:00
vanhauser-thc
c169cb3911 integrate frida_mode, code-format 2021-03-25 20:10:09 +01:00
van Hauser
00a53a870d
Merge pull request #833 from WorksButNotTested/frida
Frida
2021-03-25 19:42:27 +01:00
vanhauser-thc
ab394836a9 remove warnings 2021-03-25 08:40:33 +01:00
Your Name
e1384b5086 Add support for FRIDA mode 2021-03-24 18:17:10 +00:00
vanhauser-thc
7f062524c9 fixes 2021-03-06 23:01:13 +01:00
vanhauser-thc
4a0d4c50fc complete implemenation, still no test 2021-03-06 19:12:25 +01:00
vanhauser-thc
81442ba3f9 implementation without testing 2021-03-06 15:48:49 +01:00
vanhauser-thc
84f0b4f187 persistent replay env setup 2021-02-07 08:27:35 +01:00
van Hauser
981ffb27a8 making AFL_MAP_SIZE obsolete 2021-02-01 12:01:23 +01:00
van Hauser
60764ebdf1 forkserver debug flag support 2021-01-21 18:43:06 +01:00
buherator
9cdf5c4150
User defined kill signal value (#678)
* Adding AFL_KILL_SIGNAL environment variable

Controlling the kill signal used to end forked processes.

* Checking validity of AFL_KILL_SIGNAL env variable

This commit also sets a valid value in the environment to avoid
duplicating code in at_exit(). Changing data type of
fsrv->kill_signal to u8 to match last_kill_signal.

* Adding afl_kill_signal to AFL (environment) state

This commit simply introduces a struct member for future use. The
env variable is not used from the afl struct but from fsrv, where
its validity is checked, resulting in a FATAL in case of errors.
2021-01-07 22:35:34 +01:00
pr0xy
e1a7ed9d6e fixed typo in include/forkserver.h 2020-12-20 18:54:32 +09:00
Dominik Maier
a2e2fae840 AFL_CRASH_EXITCODE env var added, u8->bool 2020-12-03 14:43:06 +01:00
Marius Muench
425908a00c
Option for specifying forkserver initialization timeout via environment variable (#522)
* Addition of AFL_FORKSRV_INIT_TMOUT env var

This commit introduces a new environment variable which allows to
specify the timespan AFL should wait for initial contact with the
forkserver.

This is useful for fuzz-targets requiring a rather long setup time
before the actual fuzzing can be started (e.g., unicorn).

* add .swp files to .gitignore

* Inherit init_tmout in afl_fsrv_init_dup

Without this patch, the forkserver would spawn with a timeout of 0 in
cmplog mode, leading to an immediate crash.

Additionally, this commit removes a spurious whitespace.

* Initialize afl->fsrv.init_tmout in afl_fsrv_init

Not all afl-components will need the new AFL_FORKSRV_INIT_TMOUT
environment variable. Hence, it's initialized to the safe "default"
value from before in afl_fsrv_init now.
2020-08-23 10:39:34 +02:00
Dominik Maier
1a94cfe2af moved autodict extras away from extras_a 2020-08-18 01:31:40 +02:00
root
af14acf2c1 Revert "Merge branch 'debug' into dev"
This reverts commit a7537b5511ad767d2240cf2dc6d3e261daa676f9, reversing
changes made to 15e799f7ae666418e75c6a79db833c5316b21f97.
2020-08-14 14:35:05 +02:00
van Hauser
a7537b5511
Merge branch 'debug' into dev 2020-08-14 13:23:14 +02:00
Dominik Maier
69f8c62955 code-format 2020-08-14 00:46:48 +02:00
Dominik Maier
83df65a66b cleaned up maybe_add_auto calls 2020-08-14 00:46:15 +02:00
van Hauser
0bb59ba116 code format 2020-08-09 01:09:26 +02:00
van Hauser
e4a0237cbc step 1 2020-08-09 00:35:12 +02:00
hexcoder-
bac2da8669 fix for *BSD: remove all HAVE_ARC4RANDOM dependencies 2020-06-16 01:29:07 +02:00
van Hauser
a9348e0acc fix cmplog for shmem persistent mode 2020-06-04 16:31:53 +02:00
van Hauser
dd0ca7335f switch shmem_len to the map 2020-06-03 15:49:23 +02:00
Dominik Maier
ee14785f68 starting shmap support for unicorn 2020-05-31 04:13:41 +02:00
van Hauser
707145c491 persistent mode: shared memory test case transfer 2020-05-25 16:40:55 +02:00
van Hauser
7b40d7b942 new code formatting + applied 2020-05-12 11:12:25 +02:00
van Hauser
30bfd44dfd indenting preprocessor directives breaks compilation and cant be fixed, reverting ... :-( 2020-05-10 12:09:37 +02:00
van Hauser
26f8708fed fix warning, code format 2020-05-10 11:35:31 +02:00
van Hauser
efa9df24c2 afl-untracer completed 2020-04-30 17:59:59 +02:00
Dominik Maier
4be0ae2008 double include removed 2020-04-20 21:06:16 +02:00
Dominik Maier
8197e9b2e4
clang-tidy readability-braces (#323) 2020-04-19 16:42:40 +02:00
Dominik Maier
0bd1264faf headers for clang-tidy 2020-04-17 14:30:36 +02:00
van Hauser
5b70d23211 added AFL_MAP_SIZE (wip) 2020-04-17 09:10:49 +02:00
Dominik Maier
19ce862810 decoupled run and classify 2020-04-16 15:21:34 +02:00
Dominik Maier
b420ccdbf8 fixed timeout flag to u32 2020-04-16 14:42:38 +02:00
Dominik Maier
0f08b13fa0 somewhat unified write_to_testcase 2020-04-15 23:22:23 +02:00
Dominik Maier
0c02a8f4d3 changed run_target 2020-04-15 19:23:26 +02:00
Dominik Maier
c009896c34 code format 2020-04-14 19:29:18 +02:00
Dominik Maier
6dc36f1e6e unified forkservered run_target, fixes #308 2020-04-14 19:27:25 +02:00
Dominik Maier
995e556065 cmplog forkserver tidying 2020-04-13 08:54:59 +02:00
David CARLIER
7919545499
Better solution for ARM64 build fix (#315) 2020-04-12 16:55:52 +02:00
David CARLIER
ee4e1936d0
build on arm64 fix. tested on Android. (#313) 2020-04-12 14:20:10 +02:00
van Hauser
32ba60185e more refactoring and update changelog 2020-04-11 08:02:54 +02:00
van Hauser
68f269437d
Autodictionary (#309)
* lto module clean-up

* step 1/3

* step 1/3 completed

* if tmp is ever made non-static

* parts 2 and 3 - autodictionary is complete

* variable map_size support

* variable map size: changed overlooked functions

* remove debug for autodict

* 64 bit alignment of map size

* fix review comments

* force 64 bit alignment on both sides

* typo

* better map transfer, display snapshot in UI

* update readme
2020-04-11 07:32:42 +02:00
Dominik Maier
29ee3a1ffc refactored cmplog 2020-04-11 01:09:07 +02:00
van Hauser
3a509c6168
LTO optimization, variable map size, autodictionary (#307)
* lto module clean-up

* step 1/3

* step 1/3 completed

* if tmp is ever made non-static

* parts 2 and 3 - autodictionary is complete

* variable map_size support

* variable map size: changed overlooked functions

* remove debug for autodict

* 64 bit alignment of map size

* fix review comments

* force 64 bit alignment on both sides

* typo
2020-04-10 22:33:11 +02:00
Dominik Maier
f0f83bab52 resize fix + code format 2020-04-10 17:47:22 +02:00