382 Commits

Author SHA1 Message Date
vanhauser-thc
146eb32c31 make tests working on macos 2021-12-26 01:49:31 +01:00
vanhauser-thc
649076600d debug ci 2021-12-26 01:24:03 +01:00
vanhauser-thc
8521eb8413 debug ci 2021-12-26 01:15:53 +01:00
vanhauser-thc
24dd35ef96 macos ci 2021-12-26 01:05:07 +01:00
yuawn
5b9397f3dd code format 2021-12-11 10:20:40 +00:00
hexcoder-
0648772967 additional test cases for floating point comparison splitting pass 2021-12-10 23:09:07 +01:00
vanhauser-thc
db360332c4 make llvm 14-dev working. again. 2021-12-09 14:33:56 +01:00
vanhauser-thc
fc094dee13 change dlopen solution 2021-12-03 11:35:30 +01:00
van Hauser
f5535e348d
Merge pull request #1142 from AFLplusplus/dev
Dev
2021-11-03 21:55:21 +01:00
vanhauser-thc
90786e2ce9 fix 2021-10-19 15:20:59 +02:00
vanhauser-thc
fb481231b7 update test 2021-10-17 21:20:00 +02:00
vanhauser-thc
d4a8a9df69 fix regression in class lookup 2021-08-31 23:54:19 +02:00
vanhauser-thc
233a628047 fix testcase 2021-07-30 09:15:59 +02:00
vanhauser-thc
c3fbf5dca3 add more string functions for dictionary features 2021-07-30 08:33:18 +02:00
hexcoder-
c88b98d1c9 test laf splitting: set default for char type explicitly to signed 2021-06-25 22:32:49 +02:00
vanhauser-thc
1fcb52957e fix frida 2021-06-24 09:59:00 +02:00
Michael Rodler
0978c08f4b
split-comparison llvm pass refactor for smaller compilation times (and a small bug fix) (#964)
* Refactored split compare pass to be more efficient in LTO usage and allow splitting to other minimum bitwidths.

Efficiency: avoid looping over the whole llvm module N times, when once is also enough.

Bitwidth: Previously, due to fallthrough in switch-case, all comparisons were split to 8-bit, which might not be desirable e.g., 16 or 32 bit might be enough. So now all comparison are split until they are smaller or equal to the target bitwidth, which is controlled through the `AFL_LLVM_LAF_SPLIT_COMPARES_BITW` environment variable.

* fixed miscompilation due to incorrectly trying to split a signed comparison operator

* minor formatting updates and use IRBuilder when inserting multiple instructions

* added @hexcoder-'s test-int_cases.c to make test

* Avoid recursion; switch to smallvector in splitAndSimplify; use switch case for icmp type;

* Fixed issue when splitting < where the inverse comparison was not further split

* some cleanup
2021-06-11 11:02:29 +02:00
hexcoder-
706c2ac8e0 add test cases for splitting integer comparisons 2021-06-09 21:35:16 +02:00
hexcoder-
a4cb2414d5 Revert "add test cases for splitting integer comparisons"
This reverts commit e0aa411647e1a525a3a0488d929ec71611388d54.
2021-06-09 21:29:41 +02:00
hexcoder-
e0aa411647 add test cases for splitting integer comparisons 2021-06-09 20:26:37 +02:00
hexcoder-
d57f0e3a1c remove warning regarding core_pattern (was wrong/unnecessary anyway) 2021-06-08 21:41:01 +02:00
hexcoder
280814c3a2
setting AFL_CC for test-llvm.sh on FreeBSD is not necessary anymore 2021-06-05 17:04:10 +02:00
hexcoder
97a1f89881
Merge branch 'dev' into going_atomic 2021-05-31 19:18:24 +02:00
hexcoder-
c9539aa6b7 support new env var AFL_LLVM_THREADSAFE_INST to enable atomic counters.
add new test case for that.
2021-05-30 11:45:11 +02:00
hexcoder-
62d5bf5f41 fix new path to custom-mutators 2021-05-08 10:16:44 +02:00
Roman M. Iudichev
069e61dfc6
Exit on time (#904)
* Variable AFL_EXIT_ON_TIME description has been added.
Variables AFL_EXIT_ON_TIME and afl_exit_on_time has been added.
afl->exit_on_time variable initialization has been added.
The asignment of a value to the afl->afl_env.afl_exit_on_time variable from
environment variables has been added.
Code to exit on timeout if new path not found has been added.

* Type of afl_exit_on_time variable has been changed.
Variable exit_on_time has been added to the afl_state_t structure.

* Command `export AFL_EXIT_WHEN_DONE=1` has been added.

* Millisecond to second conversion has been added.
Call get_cur_time() has been added.

* Revert to using the saved current time value.

* Useless check has been removed.
2021-05-07 17:32:17 +02:00
hexcoder-
c695a031b8 prepare for 32-bit support (later) 2021-05-04 21:34:32 +02:00
hexcoder-
b35e6deb09 fix persistent mode (64-bit) 2021-05-04 20:42:24 +02:00
hexcoder-
361dd6e361 add new test for frida_mode (please review) 2021-05-03 21:42:04 +02:00
Dominik Maier
a3f8fc5d1c moved custom_mutator examples 2021-04-26 16:03:08 +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
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
hexcoder-
3439d641c0 pass lib -ldl only on Linux platforms 2021-03-26 16:56:57 +01:00
vanhauser-thc
0029c1a83e remove InsTrim 2021-03-25 15:35:06 +01:00
vanhauser-thc
2102264acf fix for new llvm 13 change 2021-03-19 16:06:06 +01:00
vanhauser-thc
848ea17154 add header to PCGUARD 2021-03-19 10:42:23 +01:00
Andrea Fioraldi
1cdf0a898c update test-dlopen tuples number 2021-03-19 09:58:27 +01:00
Andrea Fioraldi
5be7d9c1cc fix dynamic list usage error in afl-cc 2021-03-19 09:44:04 +01:00
Andrea Fioraldi
44347beff0 check test-dlopen return code 2021-03-18 21:44:20 +01:00
Andrea Fioraldi
166c8f93b5 test-dlopen llvm test 2021-03-18 21:34:12 +01:00
vanhauser-thc
aa6a50c2b4 fix test 2021-03-15 23:01:07 +01:00
vanhauser-thc
c725cb71de more time for fp split 2021-03-11 19:12:21 +01:00
vanhauser-thc
adeb0d18b1 fix the auto map fix 2021-03-11 08:59:34 +01:00
vanhauser-thc
0484d9b024 more time for float split test 2021-03-11 00:49:23 +01:00
vanhauser-thc
d60bbff0d9 more time for tests 2021-03-11 00:17:52 +01:00
hexcoder-
1a713ff420 fix qemu AFL_ENTRYPOINT for arm 32 and 64 bit 2021-02-18 19:39:46 +01:00
hexcoder-
7d97ffb1e8 check for setuptools instead of easy_install 2021-02-16 16:27:56 +01:00
hexcoder-
385312c658 fix issue #732 afl-cmin and afl-showmap should support '-f' 2021-02-13 13:31:17 +01:00
hexcoder-
e81f30828f fix test-qemu-mode.sh to run standalone 2021-02-06 11:24:04 +01:00
van Hauser
981ffb27a8 making AFL_MAP_SIZE obsolete 2021-02-01 12:01:23 +01:00