3233 Commits

Author SHA1 Message Date
hexcoder-
18ea9a8447 omit linker option '--dynamic-list' for MacOS 2020-08-31 16:19:09 +02:00
hexcoder-
ebd1e6bc4b Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-08-31 15:40:47 +02:00
hexcoder-
45d866d548 typo 2020-08-31 15:40:20 +02:00
domenukk
8087cf7988 Merge branch 'dev' of github.com:vanhauser-thc/AFLplusplus into dev 2020-08-31 15:17:51 +02:00
domenukk
9e8b3f13e1 fixed warning on mac 2020-08-31 15:17:37 +02:00
hexcoder-
ce4700ca6e Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-08-31 15:17:24 +02:00
hexcoder-
8253f90134 typos/wording 2020-08-31 15:16:55 +02:00
van Hauser
86421f3469
Merge pull request #535 from rhertzog/manpages
Fix manpages generated by llvm_mode/GNUMakefile
2020-08-31 15:05:54 +02:00
Raphaël Hertzog
811ef13b20 Fix manpages generated by llvm_mode/GNUMakefile
* Use a build date derived from SOURCE_DATE_EPOCH like in the main
  Makefile
* Fix the path to the binary
2020-08-31 14:56:02 +02:00
hexcoder-
7fb72f1038 typos 2020-08-31 14:47:22 +02:00
van Hauser
d2c9e4baa7 fix warnings and weird code insert 2020-08-31 13:12:59 +02:00
van Hauser
81767287c3 improve documentation 2020-08-31 13:02:40 +02:00
van Hauser
6c980e2a02 rewrite documentation 2020-08-31 12:56:14 +02:00
van Hauser
e7db4d4fe0 fix sync script, update remote sync documentation 2020-08-31 12:36:30 +02:00
hexcoder-
567042d146 typos fixed. 2020-08-31 12:32:31 +02:00
Dominik Maier
4697e4a5a5 description for AFL_MAX_DET_EXTRAS added 2020-08-31 12:26:41 +02:00
Dominik Maier
92b1f9cf36 added SO link about rand for clarification 2020-08-31 12:11:38 +02:00
van Hauser
bbf00204ea
Merge pull request #531 from rhertzog/extend-cflags-safe
Add -fdebug-prefix-map to CFLAGS_SAFE
2020-08-31 11:38:09 +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
van Hauser
961ddfd7f8
Merge pull request #528 from rhertzog/fix-symlinks
Fix the /usr/bin/afl-clang and afl-clang++ symlinks
2020-08-31 11:19:16 +02:00
van Hauser
4566bcf122 code-format 2020-08-31 10:57:01 +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
41bb359428
Fix various spelling errors (#532)
All those spelling errors have been caught by lintian's built-in
spellchecker:
https://lintian.debian.org/tags/spelling-error-in-binary.html
2020-08-28 23:04:25 +02:00
Raphaël Hertzog
146ede0f29 Add -fdebug-prefix-map to CFLAGS_SAFE
In Debian, we override CFLAGS to include -fdebug-prefix-map to avoid
hardcoding the build path in any generated debug information. This is
to help with getting the package to build reproducibly.

However you seem to voluntarily not honor CFLAGS but only CFLAGS_SAFE
for a limited number of source files. This resulted in a lintian warning
on Debian's side (https://lintian.debian.org/tags/file-references-package-build-path.html)
pointing to /usr/lib/afl/afl-llvm-rt-64.o and /usr/lib/afl/afl-llvm-rt.o.

With this commit, I'm manually adding -fdebug-prefix-map as a safe
build flag to CFLAGS_SAFE.
2020-08-28 22:16:08 +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
Raphaël Hertzog
6e839f0f6a Fix the /usr/bin/afl-clang and afl-clang++ symlinks
Right now they are created pointing to '../afl-clang-fast' instead
of 'afl-clang-fast. Given that all the binaries are in the same directory,
the symlinks are effectively broken.
2020-08-28 21:26:32 +02:00
van Hauser
a3cd523250 todo update 2020-08-27 15:24:38 +02:00
van Hauser
b44620f0b0
Merge pull request #526 from h1994st/dev
Prevent afl-fuzz from modifying stage_max during fuzzing
2020-08-27 08:56:08 +02:00
h1994st
9a6a32775f Prevent afl-fuzz from modifying stage_max during fuzzing 2020-08-27 00:32:53 -04:00
van Hauser
3e8beaafc8 fixing wrong fatal ... 2020-08-26 21:22:24 +02:00
Dominik Maier
33e58c1d4e some warnings fixes 2020-08-26 14:45:59 +02:00
Dominik Maier
4be0ea596b rand unlikely added 2020-08-26 13:04:03 +02:00
Dominik Maier
96ef7083c8 using unbiased rand_below 2020-08-26 05:28:33 +02:00
David CARLIER
78eaa6b203
lintokencap: fix compiler complains on Solaris 11. (#525) 2020-08-25 17:11:15 +02:00
Sergio Paganoni
1efc6e59b7
Added out_file value when using stdio (#524) 2020-08-24 21:18:51 +02:00
van Hauser
19eddbb0c7 make py functions as optional as they are in the doc 2020-08-24 18:12:08 +02:00
van Hauser
6a34c5aa3e fix python implementation for new function 2020-08-24 18:06:07 +02:00
van Hauser
c7f0d30668 added afl_custom_fuzz_count 2020-08-24 17:32:41 +02:00
David CARLIER
a7c3f252d5
unicorn build warning for MUSL based linux distros. (#510) 2020-08-24 12:06:04 +02:00
Dominik Maier
b9b6f06429
Allow Large Extras (#523)
* allow large extras

* skipping large testcases again
2020-08-24 12:04:29 +02:00
Dominik Maier
a1442bd1ac no longer warns for prob. extras 2020-08-23 11:21:49 +02:00
Dominik Maier
4d9d52e3d9 code format 2020-08-23 11:00:46 +02:00
Dominik Maier
6184832ea9 added more env var docs, fsrv fixes for cmin, tmin 2020-08-23 10:59:56 +02:00
Dominik Maier
e2b54bfa05 code format 2020-08-23 10:40:46 +02: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
1301552101 added AFL_MAX_DET_EXTRAS env var 2020-08-23 01:48:36 +02:00
van Hauser
c4f71ab201 enable autodict for cmplog compile, it is ensure not be used in the forkserver 2020-08-22 10:01:45 +02:00