276 Commits

Author SHA1 Message Date
van Hauser
6f0f167b73 test: skip afl-fuzz test if too few locations were instrumented 2020-12-21 14:05:58 +01:00
van Hauser
a39228def6 make ubuntu 18.04 ci work 2020-12-21 13:36:09 +01:00
van Hauser
2a22dc433c ci fix 2020-12-21 13:01:56 +01:00
hexcoder-
79c98731c9 small improvements: dump output on error in test-llvm, fix compiler warnings 2020-12-18 09:22:58 +01:00
van Hauser
14c67f15c9 small fixes 2020-12-16 14:22:09 +01:00
van Hauser
76117b0471 fix afl-clang tests 2020-12-13 11:23:56 +01:00
hexcoder-
ce9e127529 remove debugging sh 2020-12-12 22:56:09 +01:00
hexcoder-
c5c852dada add tests for the missing afl-compiler (afl-gcc or afl-clang) 2020-12-12 22:54:34 +01:00
hexcoder-
aca5b55b6d test-pre.sh revert removal of afl-clang 2020-12-04 08:46:46 +01:00
van Hauser
1890d7b9cf very complete runtime lookup rewrite 2020-12-02 15:03:21 +01:00
vanhauser-thc
c05e4efbe9 renamed examples/ to utils/ 2020-12-01 14:40:30 +01:00
van Hauser
e865f274f1 fix wrong rename in test 2020-11-30 13:36:27 +01:00
van Hauser
63c317218b persistent_demo -> persistent_mode 2020-11-30 13:03:33 +01:00
hexcoder-
27c3423fb6 test-pre.sh: remove old uses of afl-clang, afl-cc.c: add missing env.var. AFL_LLVM_LAF_ALL 2020-11-24 19:38:55 +01:00
Dominik Maier
f80f62f14b renamed env var to AFL_DEBUG_CHILD 2020-11-18 03:02:13 +01:00
hexcoder-
665802673d typo fixed 2020-11-05 22:58:55 +01:00
van Hauser
ca938e7c4e asan_build for tmin and analyze 2020-10-24 19:11:41 +02:00
van Hauser
18ad8a097c travis test 2020-10-24 18:08:54 +02:00
van Hauser
aac0ab8c67 travis test 2020-10-24 17:57:05 +02:00
vanhauser-thc
e5c2779d56 symbolize=1 for travis 2020-10-24 12:16:30 +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
van Hauser
5427f7ca98 fix tests for sync mode 2020-10-12 05:02:11 +02:00
van Hauser
231420775f fix test-performance.sh 2020-10-06 19:49:48 +02:00
van Hauser
543765bc0d fix unittests 2020-09-10 16:41:40 +02:00
Alexandre Oliva
9544b3dbf2 rewrite gcc plugin
When we started using AFL, it did not have an integrated GCC plugin.
There was one proposed by Austin Seipp, but for various reasons we
ended up using some of its infrastructure (runtime and wrapper), but
writing the GCC plugin proper from scratch.

With AFL++'s renewed interest in a GCC plugin, we rebased ours, with
some features that are or were missing in the one that was integrated:

* efficient, fully-functional inline and out-of-line instrumentation

Inline instrumentation was work in progress in the original plugin.
Controlled by AFL_GCC_OUT_OF_LINE.

* reproducible instrumentation

Obey -frandom-seed for pseudorandom number generation.

* licensing clarity and strict compliance

GPLv3+ for the plugin, that uses GCC internals; add a copy of the
license, as required.

* allow/deny list support

Copied and adjusted from the LLVM plugin implementation.

* neverZero support

Not as compact as the asm-wrapper version, but likely more efficient.
Both are quite thread-unsafe, with different caveats.
Controlled with AFL_GCC_SKIP_NEVERZERO.
2020-09-08 14:55:19 +02:00
vanhauser-thc
e30b2c6af6 final changes for pre-3.0 2020-09-05 13:18:28 +02:00
Dominik Maier
7470b475a9
Reworked maybe_grow to take a single ptr, renamed to afl_realloc (#505)
* maybe_grow takes a single ptr

* fixed use_deflate

* reworked maybe_grow_bufsize

* helper to access underlying buf

* remove redundant realloc_block

* code format

* fixes

* added unit tests

* renamed maybe_grow to afl_realloc

* BUF_PARAMS -> AFL_BUF_PARAM
2020-08-18 00:50:52 +02:00
Dominik Maier
c3a6e7e870 testcases indicate count 2020-08-14 00:20:04 +02:00
van Hauser
c270646722 fix wrong incomplete 2020-08-10 09:37:32 +02:00
hexcoder-
33141cf8a3 tests: cleanup core files, more time for llvm cmplog 2020-08-07 20:22:13 +02:00
hexcoder-
8551d8e48e Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-08-07 19:53:32 +02:00
hexcoder-
32558bc807 minor test fixes for Raspberry Pi Linux 64-bit 2020-08-07 19:41:39 +02:00
Dominik Maier
fd9a7e719d fixed wextra 2020-08-07 17:20:24 +02:00
hexcoder-
673ace2a4b test-llvm.sh: clear file errors after test 2020-08-07 16:34:10 +02:00
van Hauser
4a859aff70 travis fixes 2020-08-05 10:25:53 +02:00
van Hauser
f6c89ec3a9 workaround travis 2020-08-05 01:29:05 +02:00
Dominik Maier
79f873a597 posix compatible sourcing 2020-08-04 21:57:56 +02:00
Dominik Maier
8850e1a5bf chmod for testcase 2020-08-04 21:47:21 +02:00
Dominik Maier
194188fe56 split up testcases 2020-08-04 21:33:29 +02:00
van Hauser
cc74efa35e fix test for nixos 2020-08-04 15:10:20 +02:00
van Hauser
409e4ae945 fix expand havoc for ..._only modes 2020-08-03 13:13:32 +02:00
Andrea Fioraldi
9d82c3cf5e test for llvm cmplog 2020-08-03 11:30:34 +02:00
van Hauser
8ea19d4266 easier float test 2020-07-31 19:37:05 +02:00
van Hauser
b7bcc50c61 reenable cpu tests in test.sh 2020-07-31 19:09:04 +02:00
van Hauser
25ad992c62 fix travis 2020-07-31 18:26:18 +02:00
van Hauser
486e5365d9 fix float splitting if not on a tty 2020-07-30 18:01:18 +02:00
van Hauser
ea9ba53cdb fix oob reads, code-format 2020-07-30 17:09:22 +02:00
hexcoder-
cbe8f0a9d0 cleanup messages in floating point test case 2020-07-30 17:00:10 +02:00
van Hauser
da8b464e67 fix test.sh 2020-07-30 16:07:47 +02:00
hexcoder-
5ce55d87ec make travis green again (floating point testcase), but all laf testcases need AFL_DEBUG=1 (that is another bug) 2020-07-30 13:46:52 +02:00