159 Commits

Author SHA1 Message Date
Dominik Maier
1edb89be0f showmap passes queue items in alphabetical order 2021-05-21 22:40:36 +02:00
Dominik Maier
cdae3d3d03 cleaned up AFL_PRINT_FILENAMES env 2021-05-19 22:21:46 +02:00
Dominik Maier
9d50ae7468 Flushing for AFL_PRINT_FILENAMES 2021-05-17 18:54:30 +02:00
Dominik Maier
ccf739f880 AFL_PRINT_FILENAMES added 2021-05-17 18:16:51 +02:00
vanhauser-thc
a3fffac90c add warning for afl-showmap partial read 2021-05-17 13:11:16 +02:00
vanhauser-thc
7b033367c2 restrict afl-showmap in_file size 2021-05-17 11:04:03 +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
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
van Hauser
7dc4847869
Merge pull request #817 from realmadsci/atat-plusplus
Make @@ handling more flexible
2021-03-24 11:26:10 +01:00
vanhauser-thc
70c1de5d64 better forkserver error help and code format 2021-03-24 11:12:44 +01:00
vanhauser-thc
dfe6f7f8c9 make setting different file permissions easy via config.h 2021-03-23 20:21:08 +01:00
hexcoder
d17abce59b
Merge branch 'dev' into atat-plusplus 2021-03-17 08:00:32 +01:00
realmadsci
62f067ec71 afl-showmap: Unwind a change to keep it pre-C99 compatible 2021-03-15 14:04:10 -07: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
realmadsci
27c0480866 afl-showmap: Allow @@ to be part of an arg
The previous implementation of "@@ handling"
in afl-showmap differed greatly from how it was
handled in afl-fuzz and how the documentation presented it.

It used to require that the @@ be its own argument separated
by whitespace and could not be used in situations like "--file=@@".

This change standardizes it to use detect_file_args() like
everybody else does, so that it will have the expected and
documented behavior.
2021-03-15 12:25:01 -07:00
vanhauser-thc
b6dc529bc3 no ASAN odr violations by default 2021-03-04 14:55:57 +01:00
vanhauser-thc
9bd1e19d7f added AFL_IGNORE_UNKNOWN_ENVS 2021-02-13 22:43:56 +01:00
hexcoder-
1d60c39191 fix new compiler warning 2021-02-13 13:42:37 +01:00
hexcoder-
385312c658 fix issue #732 afl-cmin and afl-showmap should support '-f' 2021-02-13 13:31:17 +01:00
van Hauser
88155d2c3b make dominik more happy - no auto map size for qemu+unicorn 2021-02-01 13:04:39 +01:00
van Hauser
965b854803 correct afl-showmap be_quiet state 2021-02-01 12:05:54 +01:00
van Hauser
981ffb27a8 making AFL_MAP_SIZE obsolete 2021-02-01 12:01:23 +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
van Hauser
9c393adbb9 real fix plus code format 2021-01-26 17:12:11 +01:00
van Hauser
30148bc1a9 fix afl-showmap and gcc plugin test 2021-01-21 19:58:25 +01:00
van Hauser
fc3f06caec
Merge pull request #689 from AFLplusplus/cmplog_merge
cmplog merge
2021-01-21 12:03:21 +01:00
Joey Jiao
0306261fec Fix build error for Android
- LTO not work yet
2021-01-20 15:46:39 +08:00
van Hauser
c71ce79963 fix colorization 2021-01-17 15:18:20 +01:00
Dominik Maier
34732e3c5e refactored kill signal env parsing 2021-01-08 11:36:40 +01:00
Dominik Maier
a06b25538f cleaned up AFL_KILL_SIGNAL 2021-01-07 23:21:10 +01:00
van Hauser
6c095b3937 code format 2021-01-04 23:13:56 +01: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-
8241ded12e more portability non std array initializers 2020-12-22 20:19:43 +01:00
van Hauser
4e96447b43 fix showmap output 2020-12-08 23:26:08 +01:00
Dominik Maier
a2e2fae840 AFL_CRASH_EXITCODE env var added, u8->bool 2020-12-03 14:43:06 +01:00
van Hauser
1b75cc9f74 add DEBUGF 2020-11-30 21:38:15 +01:00
Dominik Maier
f80f62f14b renamed env var to AFL_DEBUG_CHILD 2020-11-18 03:02:13 +01:00
van Hauser
ac1c3b8701 mini improvements 2020-10-19 11:34:57 +02:00
hexcoder-
d8a058bf59 fix AFL_CMIN_CRASHES_ONLY=1 afl-showmap 2020-10-17 14:34:14 +02:00
van Hauser
d5c3b4bafd directly add new queue to cache 2020-10-16 09:35:35 +02:00
van Hauser
b82e9ad3db next afl-showmap fix attempt 2020-10-16 09:16:35 +02:00
hexcoder-
5540a055c5 afl-showmap: free malloced coverage map 2020-10-10 11:19:45 +02:00
van Hauser
e4de4e3500 update gitignore 2020-08-31 18:32:01 +02:00
Dominik Maier
bea76b346c fixed build error 2020-08-31 18:29:45 +02:00