97 Commits

Author SHA1 Message Date
Akira Moroo
feff8191ec Fix platform check for -A CoreSight mode
Signed-off-by: Akira Moroo <retrage01@gmail.com>
2021-11-15 01:57:36 +00:00
Akira Moroo
c2feee4ed1 Add platform check for -A CoreSight mode
REF:
https://github.com/AFLplusplus/AFLplusplus/pull/1156#discussion_r747454306

Signed-off-by: Akira Moroo <retrage01@gmail.com>
2021-11-12 06:13:25 +00:00
Akira Moroo
d63d69a1f6 Clarify usage message for ARM CoreSight mode
REF:
https://github.com/AFLplusplus/AFLplusplus/pull/1156#issuecomment-966196217

Signed-off-by: Akira Moroo <retrage01@gmail.com>
2021-11-12 06:13:18 +00:00
Akira Moroo
9100f3c416 Add initial CoreSight mode support
The original code is:
https://github.com/RICSecLab/AFLplusplus-cs/tree/retrage/coresight-mode-pr

Signed-off-by: Akira Moroo <retrage01@gmail.com>
2021-11-11 09:52:21 +00:00
vanhauser-thc
75821d2943 fix afl- tools for new frida 2021-11-09 14:37:14 +01:00
vanhauser-thc
9325a4fcbb http->https 2021-11-06 10:28:22 +01:00
vanhauser-thc
e03897a070 fix timeout bug in afl tools 2021-10-23 20:54:24 +02:00
hexcoder-
e80131bef5 fix some compiler warnings in 32-bit linux 2021-10-02 22:47:22 +02:00
vanhauser-thc
f760e80729 add check_binary_signatures for afl-* utils 2021-09-07 17:16:23 +02:00
vanhauser-thc
bcdb69289f frida tool fix 2021-07-30 07:25:44 +02:00
vanhauser-thc
8b66d95038 frida tool fix 2021-07-30 07:12:53 +02:00
vanhauser-thc
a7340a1ac6 fix AFL_CAL_FAST 2021-06-10 10:25:37 +02:00
Dominik Maier
63ee9df54f
Forkserver for afl-analyze (#963)
* afl-analyze forkserver

* added missing vars to forkserver

* synchronized a bit more with afl-tmin

* more debugging, runs now, but need to suppress target output

* fix dev/null setting

* afl-analyze info:

Co-authored-by: hexcoder- <heiko@hexco.de>
2021-06-07 20:49:23 +02:00
vanhauser-thc
92fcef4520 write target errors to out_dir/error.txt 2021-06-07 09:26:53 +02:00
hexcoder-
0d50ee4947 restored timeout handling (with SIGALRM for now) 2021-06-05 11:51:03 +02:00
vanhauser-thc
3c846859ee cleanup 2021-04-04 20:05:02 +02:00
van Hauser
c23183f1dc
Merge pull request #855 from MegaManSec/leak-sanitizer
Add support for standalone leak-sanitizer
2021-04-04 15:28:42 +02:00
Joshua Rogers
99819cf5d1 Move definition of __AFL_LEAK_CHECK inside ifguards,
use LSAN_OPTIONS=print_suppressions=0
2021-04-04 12:45:52 +00:00
Joshua Rogers
afc4da47f7 Fix typos,
Use symbolize=0 for LSAN,
Remove syntactic sugar.
2021-04-03 14:50:35 +00:00
Joshua Rogers
6514e33ab6 Replace __AFL_CHECK_LEAK with __AFL_LEAK_CHECK to be more proper.
Fix spelling mistakes.

Correctly call LSAN_ERROR not MSAN_ERROR.
2021-04-02 22:32:38 +00:00
Joshua Rogers
920e9402a4 Add support for standalone leak-sanitizer, introducting the environment
variable AFL_USE_LSAN.

AFL_USE_LSAN introduces the macro __AFL_CHECK_LEAK() which will check
for a memory leak when the macro is run. This is especially helpful
when using __AFL_LOOP().

If __AFL_LEAK_CHECK() is not used when AFL_USE_LSAN=1 is set,
the leak checker will run when the program exits.
2021-04-02 22:23:11 +00:00
Your Name
1725e6be31 Fix support for afl-cmin and updated README 2021-03-25 17:41:14 +00:00
Your Name
e1384b5086 Add support for FRIDA mode 2021-03-24 18:17:10 +00:00
vanhauser-thc
dfe6f7f8c9 make setting different file permissions easy via config.h 2021-03-23 20:21:08 +01:00
realmadsci
01ad7610be Remove AFL_PRELOAD and AFL_USE_QASAN handlers
These are now processed in afl-qemu-trace so that the "copy+paste" code
that is in all of the other AFL tools can be removed.

This also allows the AFL_USE_QASAN flag to work the same when used
with tools like afl-fuzz as it does with afl-qemu-trace. This is
important in situations where loading the QASAN library changes
the address of your desired entrypoint, or for crash validation
using the same environment that afl-fuzz was using.

With this change, the same set of environment variables can be used
in exactly the same way between afl-fuzz, afl-showmap, and
afl-qemu-trace, and you will get exactly the same guest environment.
2021-03-15 13:03:16 -07:00
vanhauser-thc
b6dc529bc3 no ASAN odr violations by default 2021-03-04 14:55:57 +01:00
van Hauser
9d08f0d098 added AFL_CMPLOG_ONLY_NEW feature 2021-01-30 15:39:47 +01:00
Andrea Fioraldi
6f5746d428 AFL_USE_QASAN 2021-01-29 15:38:49 +01:00
Joey Jiao
0306261fec Fix build error for Android
- LTO not work yet
2021-01-20 15:46:39 +08:00
hexcoder-
c6e038fe25 code cleanups (shadowed vars, (un)signed type mismatches, format types, etc.) 2021-01-04 20:40:53 +01:00
van Hauser
03849d147a warn on _AFL and __AFL env vars 2020-12-23 17:56:39 +01:00
hexcoder-
e790667fd2 one more with nonstd array initializers 2020-12-22 20:29:22 +01:00
Dominik Maier
a2e2fae840 AFL_CRASH_EXITCODE env var added, u8->bool 2020-12-03 14:43:06 +01:00
van Hauser
029d44a6ec asan_build for tmin and analyze 2020-10-24 19:20:27 +02:00
van Hauser
ca938e7c4e asan_build for tmin and analyze 2020-10-24 19:11:41 +02:00
hexcoder-
01ec0cce47 fix for afl-analyze thanks to JJY-sec! 2020-10-10 15:44:47 +02:00
Dominik Maier
22d3a5e90a enabled Wextra, fixed bugs 2020-08-07 16:55:58 +02:00
Andrea Fioraldi
139665c01d ubsan options 2020-07-03 10:20:10 +02:00
hexcoder-
07fead0466 fix shared memory leaks in afl-showmap, initialize cmplog_mode 2020-06-26 01:14:21 +02:00
Dominik Maier
dc002b4b35 code format 2020-06-15 11:08:24 +02:00
David Carlier
67d87dd2a9 Porting to Haiku.
getrusage does not implement resident memory gathering, no shm api neither.
2020-06-14 15:32:02 +00:00
van Hauser
40aca0b6b3 fix for checksums 2020-06-12 16:33:20 +02:00
van Hauser
a632c00b0d switch to faster and better hash + random 2020-06-12 16:08:49 +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
David CARLIER
515de0d68d
Illumos biuld fix (#357) 2020-05-10 00:21:26 +02:00
Dominik Maier
8197e9b2e4
clang-tidy readability-braces (#323) 2020-04-19 16:42:40 +02:00
van Hauser
76e15a0695 refactoring getting the map size 2020-04-17 11:56:08 +02:00
van Hauser
248a2f2f0b added AFL_MAP_SIZE to env help output 2020-04-17 10:21:41 +02:00