266 Commits

Author SHA1 Message Date
Andrea Fioraldi
55da5e3e02 partial linking with -Wl 2021-06-03 16:44:15 +02:00
Andrea Fioraldi
0fbe5fb436 detect partial linking in afl-cc 2021-06-03 16:26:53 +02:00
vanhauser-thc
7665354405 threadsafe doc fixes, code format 2021-06-01 10:13:16 +02:00
hexcoder
97a1f89881
Merge branch 'dev' into going_atomic 2021-05-31 19:18:24 +02:00
hexcoder-
eb74a7a800 add documentation for AFL_LLVM_THREADSAFE_INST 2021-05-30 12:43:30 +02:00
vanhauser-thc
8e86f7ad80 add --afl-noopt to afl-cc 2021-05-28 13:35:05 +02:00
vanhauser-thc
bb45398d0b fix afl-cc help output 2021-05-23 18:47:47 +02:00
vanhauser-thc
72ca9b4684 fix a few cur_time uses 2021-05-11 22:06:37 +02:00
Dustin Spicuzza
fd077e86bd
OSX-specific improvements (#912)
* Fix afl-cc to work correctly by default on OSX using xcode

- CLANG_ENV_VAR must be set for afl-as to work
- Use clang mode by default if no specific compiler selected

* Add OSX-specific documentation for configuring shared memory
2021-05-11 00:20:28 +02:00
Dominik Maier
38f1394e3a error handling, freeing mem 2021-04-30 13:37:59 +02:00
vanhauser-thc
9c517199b2 removed -lc++ linking for lto 2021-04-08 10:03:44 +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
vanhauser-thc
3ff4ca348c fix k-ctx 2021-04-02 14:39:56 +02:00
van Hauser
96533f627e
Merge pull request #845 from joeyjiaojg/dev
Dev
2021-03-26 09:03:51 +01:00
vanhauser-thc
c169cb3911 integrate frida_mode, code-format 2021-03-25 20:10:09 +01:00
vanhauser-thc
0029c1a83e remove InsTrim 2021-03-25 15:35:06 +01:00
Jiangen Jiao
c892642057 android: support host and target 32bit build 2021-03-25 20:40:31 +08:00
vanhauser-thc
72a70423c2 show afl-cc NATIVE when auto used 2021-03-22 09:24:36 +01:00
vanhauser-thc
84534ae2e8 format 2021-03-21 16:23:08 +01:00
Andrea Fioraldi
5be7d9c1cc fix dynamic list usage error in afl-cc 2021-03-19 09:44:04 +01:00
vanhauser-thc
513bd70384 shared linking fix 2021-03-17 12:44:07 +01:00
vanhauser-thc
cdd30c766b fix m32/m64 2021-03-17 11:25:14 +01:00
vanhauser-thc
5e2a5f1110 shmem map size in config.h 2021-03-17 10:27:23 +01:00
vanhauser-thc
c6f1c56c15 fix 2021-03-17 01:27:01 +01:00
vanhauser-thc
413807db01 lto test 2021-03-17 01:25:21 +01:00
vanhauser-thc
7c2436c711 no runtime for shared linking 2021-03-16 19:34:34 +01:00
Dominik Maier
851231c846 fixed scan-build warnings 2021-03-10 01:15:38 +01:00
Dominik Maier
f21a5c42c1 tiny typo fixed 2021-03-10 00:55:26 +01:00
vanhauser-thc
791c5c171d fix ctx-1 2021-03-09 18:44:42 +01:00
vanhauser-thc
0868ea8348 fix compiler rt on -c 2021-03-09 17:15:19 +01:00
vanhauser-thc
47f2650a32 add AFL_NOOPT 2021-03-09 16:53:56 +01:00
Andrea Fioraldi
c96fca6833
Merge pull request #779 from AFLplusplus/top-k-ctx
Restore correct CTX behaviour and enable K-CTX coverage for LLVM Classic
2021-03-08 09:50:18 +01:00
Andrea Fioraldi
c429021de1 fix typos and format 2021-03-05 15:27:10 +01:00
Andrea Fioraldi
af9aeb89d4 afl-cc code for k-ctx 2021-03-04 15:26:15 +01:00
Andrea Fioraldi
0aa93afeb8 vectorial top-k CTX first implementation 2021-03-04 14:50:26 +01:00
vanhauser-thc
96c526cb78 fix caller/ctx change, support dlopen in afl-compiler-rt 2021-03-04 14:04:40 +01:00
Andrea Fioraldi
8f538e77ed code format 2021-03-04 11:33:51 +01:00
Andrea Fioraldi
1e76079e93 llvm mode CALLER mode 2021-03-04 11:32:32 +01:00
vanhauser-thc
745bc083d1 fix error msg 2021-02-22 18:22:09 +01:00
vanhauser-thc
7674dac1a1 auto mode for CTX + NGRAM 2021-02-22 18:17:35 +01:00
vanhauser-thc
70fe872940 ensure a valid seed exists 2021-02-22 16:39:38 +01:00
vanhauser-thc
8ad78f5b65 fix 2021-02-21 23:42:08 +01:00
vanhauser-thc
ac9cfd89da how to compare afl++ 2021-02-21 23:27:07 +01:00
Michael Rodler
6caec2169c Revert "llvm bug workaround for lto extint"
This reverts commit e3a5c31307f323452dc4b5288e0d19a02b596a33.
2021-02-15 19:14:28 +01:00
vanhauser-thc
e3a5c31307 llvm bug workaround for lto extint 2021-02-15 13:25:15 +01:00