131 Commits

Author SHA1 Message Date
van Hauser
a4fd4ea0f4 fix LTO 2020-12-25 12:13:45 +01:00
van Hauser
1c79687dfe faster llvm compile, update README 2020-12-23 15:56:25 +01:00
van Hauser
e8374e3deb temporary fix for unusual builds where CC is set 2020-12-21 17:04:58 +01:00
van Hauser
6d1f17d78d
Merge branch 'dev' into skim_romu 2020-12-21 11:02:09 +01:00
R. Elliott Childre
81e3e991a7 Test Python and Shared Memory in binary-only mode 2020-12-20 19:54:40 -05:00
R. Elliott Childre
eddabf6b05 Remove binary-only target's depend on source tools
The `binary-only` target currently depends on the `all` target which
always build the source tools, such as afl-cc and afl-as.  This is
unnecessary if the user specifically is asking for only binary fuzzing
tools.
2020-12-20 19:39:28 -05:00
van Hauser
59c1c6a431 fix for non-default gcc installations 2020-12-20 14:42:45 +01:00
van Hauser
73dd6d86ab dont fail with ASAN_BUILD 2020-12-18 16:38:24 +01:00
van Hauser
2748d5c962 fix 2020-12-18 16:16:22 +01:00
van Hauser
d07b0169cb skim import 2020-12-17 10:55:33 +01:00
hexcoder-
7f50aa26db let the check for afl-gcc not abort 'make tests' 2020-12-12 11:25:10 +01:00
hexcoder-
54f59c7403 add an extra test for afl-gcc and check for -B support 2020-12-12 11:21:13 +01:00
hexcoder-
dbbbeea36e typos 2020-12-11 18:24:14 +01:00
Dominik Maier
b8a590b84d grammar in error messages 2020-12-10 11:56:41 +01:00
van Hauser
2c24cdbfc3 fix qbdi path for code format 2020-12-09 22:25:37 +01:00
vanhauser-thc
a8e568f248 move libdislocator, libtokencap and qbdi_mode to utils/ 2020-12-09 11:30:04 +01:00
vanhauser-thc
c05e4efbe9 renamed examples/ to utils/ 2020-12-01 14:40:30 +01:00
hexcoder-
e83426a79b fix make DEBUG=1 2020-11-28 19:09:13 +01:00
hexcoder-
fdac887660 no fancy special options for the fundamental test compile (no unnecessary dependencies) 2020-11-27 21:10:55 +01:00
hexcoder-
d1259d0914 add -lm, afl-fuzz-queue.c wants log2(), fix GNUmakefile syntax 2020-11-27 20:54:07 +01:00
hexcoder-
ded80870a9 reenable afl-clang(++) 2020-11-01 06:22:18 +01:00
van Hauser
0fd98ae8b0 added mutation introspection make target 2020-11-01 21:34:08 +01:00
van Hauser
44c65fa0a0 add no splicing compile option and print used compile options in afl-fuzz help 2020-10-26 14:44:05 +01:00
Dominik Maier
eefc3608e7 added UBSAN, MSAN options 2020-10-24 03:31:41 +02:00
vanhauser-thc
2e8ec1e339 allow symbolize=1 for asan/debug 2020-10-23 22:49:20 +02:00
van Hauser
56ac3fcdc5
configurable testcache with malloc (#581)
* cache item number to cache memory size

* reload testcase if trimming changed the size

* fix splicing selection

* slim splicing

* import sync fix

* write testcache stats to fuzzer_stats

* fix new seed selection algo

* malloc+read instead of mmap

* fix

* testcache is configurable now and no reference counts

* fixes compilation, test script

* fixes

* switch TEST_CC to afl-cc in makefile

* code format

* fix

* fix crash

* fix crash

* fix env help output

* remove unnecessary pointer resets

* fix endless loop bug

* actually use the cache if set

* one more fix

* increase default cache entries, add default cache size value to config.h

Co-authored-by: hexcoder- <heiko@hexco.de>
2020-10-14 15:30:30 +02:00
Marcel Boehme
e87eca7fe8 Patching and improving AFLFast schedules. 2020-09-29 11:53:27 +00:00
David CARLIER
e85fde201e
OpenBSD build fix (#566)
* OpenBSD build fix proposal.
Mainly the gcc plugin, using one of the egcc/eg++ version available.
Needs pthread flag to r/w lock api.

* README update
2020-09-26 19:02:19 +02:00
van Hauser
639372b644 code-format, and no code-format for custom mutators 2020-09-22 02:11:10 +02:00
van Hauser
380051868a add libfuzzer custom mutator, minor enhancements and fixes 2020-09-10 15:26:46 +02:00
van Hauser
d3282ef1fe fix makefile 2020-09-09 10:37:04 +02:00
van Hauser
13f2ac83a9 fix GNUmakefile for new qemuafl 2020-09-08 11:48:31 +02:00
van Hauser
bd007c151d fix unicorn clean 2020-09-06 11:23:59 +02:00
van Hauser
2508922288 cmp dict for LTO 2020-09-05 15:49:10 +02:00
vanhauser-thc
e30b2c6af6 final changes for pre-3.0 2020-09-05 13:18:28 +02:00
vanhauser-thc
4b3ad5f037 add cull queue, -i subdir traversal 2020-09-05 12:32:10 +02:00
van Hauser
07cee6b750 fix unicorn clean 2020-09-01 11:13:26 +02:00
hexcoder-
4261e17b3e replace non portable echo -n with printf 2020-08-31 22:08:54 +02:00
Dominik Maier
b1b5e21600 removed dummy 2020-08-31 18:20:39 +02:00
van Hauser
d765740707 hopefully finally fix ancient apple gmake 2020-08-31 18:18:40 +02:00
Dominik Maier
01fcee1190 fixed make install on mac os 2020-08-31 17:36:16 +02:00
van Hauser
0805437222 fix make man 2020-08-31 17:10:13 +02:00
van Hauser
58cf030546 fix for MacOS sudo 2020-08-31 16:34:57 +02:00
van Hauser
a42b74b624
Merge pull request #530 from rhertzog/add-cppflags
Pass CPPFLAGS to all calls of the C compiler
2020-08-31 11:33:34 +02:00
van Hauser
7ee255cbcf
Merge pull request #529 from rhertzog/manpages
Manual pages related changes
2020-08-31 11:21:52 +02:00
hexcoder-
ca0105ddf6 fix make DEBUG=1 (error seen with gcc 10.2.0) 2020-08-29 21:45:23 +02:00
Raphaël Hertzog
c0fd7ba6d1 Pass CPPFLAGS to all calls of the C compiler
This variable is a standard way to inject options for the C
preprocessor. It's respected by the implicit rules of make
and autoconf/automake.

Debian sets this variable during package build to inject
`-D_FORTIFY_SOURCE=2` and we would like afl++ to respect it.

Note that this commit also adds $(CFLAGS) in the build of
afl-performance.o where it was missing. It might have been
on purpose but we want to keep CFLAGS everywhere as well
since Debian injects various options through that variable
(for hardening and reproducibility).
2020-08-28 21:55:52 +02:00
Raphaël Hertzog
b0b2a15891 Improve the generated manual page to be compatible with whatis
And generate the manual page for afl-g++ too.
2020-08-28 21:34:36 +02:00
Raphaël Hertzog
ff3c9cbd73 Fix installation path of manual pages
Manual pages are stored in /usr/share/man/.
2020-08-28 21:34:08 +02:00
van Hauser
c7f0d30668 added afl_custom_fuzz_count 2020-08-24 17:32:41 +02:00