1279 Commits

Author SHA1 Message Date
Dominik Maier
1fe06d3856 Merge branch 'sorted_showmap' into dev 2021-05-22 11:36:30 +02:00
vanhauser-thc
d14a758f69 lenient dict parsing, no map size enum for binary fuzzing 2021-05-21 23:16:46 +02:00
Dominik Maier
1edb89be0f showmap passes queue items in alphabetical order 2021-05-21 22:40:36 +02:00
vanhauser-thc
bceae82754 improve error msg 2021-05-21 12:24:58 +02:00
Dominik Maier
cdae3d3d03 cleaned up AFL_PRINT_FILENAMES env 2021-05-19 22:21:46 +02:00
Andrea Fioraldi
dee64e74a8 fix afl-fuzz.c frida preload 2021-05-19 15:03:45 +02:00
Andrea Fioraldi
d776d40669 merge 2021-05-19 14:50:41 +02:00
WorksButNotTested
e40c0c2da1
FASAN Support (#918)
* FASAN Support

* Fix handling of Address Sanitizer DSO

* Changes to identification of Address Sanitizer DSO

Co-authored-by: Your Name <you@example.com>
2021-05-17 20:02:45 +02:00
Dominik Maier
9d50ae7468 Flushing for AFL_PRINT_FILENAMES 2021-05-17 18:54:30 +02:00
Dominik Maier
ccf739f880 AFL_PRINT_FILENAMES added 2021-05-17 18:16:51 +02:00
vanhauser-thc
47e22e8d8d no core dumps 2021-05-17 16:52:52 +02:00
vanhauser-thc
a3fffac90c add warning for afl-showmap partial read 2021-05-17 13:11:16 +02:00
vanhauser-thc
738246465d fix seed crash disable 2021-05-17 13:08:05 +02:00
vanhauser-thc
7b033367c2 restrict afl-showmap in_file size 2021-05-17 11:04:03 +02:00
Dominik Maier
3d28925c13 additional safety checks for restarts 2021-05-15 18:23:13 +02:00
Dominik Maier
000c729095 added bounds check to pivot_inputs (fixes #921) 2021-05-15 17:33:05 +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
vanhauser-thc
50af4654e3 code-format 2021-05-10 13:46:31 +02:00
vanhauser-thc
ceb138cefe afl-plot: relative time 2021-05-10 10:31:11 +02:00
vanhauser-thc
b409d63fd3 fix 2021-05-08 11:24:04 +02:00
vanhauser-thc
6c274546c4 ensure crashes/README.txt exists 2021-05-08 11:03:56 +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
realmadsci
1d9a3d955c
Fix memory errors when trim causes testcase growth (#881) (#903)
* Revert "fixed potential double free in custom trim (#881)"

This reverts commit e9d2f72382cab75832721d859c3e731da071435d.

* Revert "fix custom trim for increasing data"

This reverts commit 86a8ef168dda766d2f25f15c15c4d3ecf21d0667.

* Fix memory errors when trim causes testcase growth

Modify trim_case_custom to avoid writing into in_buf because
some custom mutators can cause the testcase to grow rather than
shrink.

Instead of modifying in_buf directly, we write the update out
to the disk when trimming is complete, and then the caller is
responsible for refreshing the in-memory buffer from the file.

This is still a bit sketchy because it does need to modify q->len in
order to notify the upper layers that something changed, and it could
end up telling upper layer code that the q->len is *bigger* than
the buffer (q->testcase_buf) that contains it, which is asking
for trouble down the line somewhere...

* Fix an unlikely situation

Put back some `unlikely()` calls that were in
the e9d2f72382cab75832721d859c3e731da071435d commit that was
reverted.
2021-05-07 00:14:16 +02:00
hexcoder-
6119c2eb5f remove the input file .cur_input at the end of the fuzzing, if AFL_TMPDIR is used 2021-05-01 14:03:28 +02:00
vanhauser-thc
86452cc959 fix stdin trimming 2021-04-30 23:41:06 +02:00
vanhauser-thc
56882f3a49 fix statsd writing 2021-04-30 13:44:59 +02:00
Dominik Maier
38f1394e3a error handling, freeing mem 2021-04-30 13:37:59 +02:00
Dominik Maier
e9d2f72382 fixed potential double free in custom trim (#881) 2021-04-30 13:37:59 +02:00
vanhauser-thc
29dbe665a7 nits 2021-04-29 09:12:21 +02:00
WorksButNotTested
39ad3b8946
Frida persistent (#880)
* Added x64 support for persistent mode (function call only), in-memory teest cases and complog

* Review changes, fix NeverZero and code to parse the .text section of the main executable. Excluded ranges TBC

* Various minor fixes and finished support for AFL_INST_LIBS

* Review changes

Co-authored-by: Your Name <you@example.com>
2021-04-28 10:25:26 +02:00
vanhauser-thc
86a8ef168d fix custom trim for increasing data 2021-04-19 11:05:49 +02:00
van Hauser
70bf4b4ab0
Merge pull request #882 from AFLplusplus/havoc2
Havoc
2021-04-17 10:22:59 +02:00
hexcoder-
495cbd42b7 reworked formatting in order to avoid gcc 8.3.0 warnings 2021-04-16 21:57:44 +02:00
vanhauser-thc
b03424073e fixes 2021-04-16 13:55:31 +02:00
vanhauser-thc
e41d1183cc fix nits 2021-04-16 00:41:32 +02:00
vanhauser-thc
4f93220c4b cmplog -l3: disable trimming, forcing input2stage for all 2021-04-15 16:50:44 +02:00
vanhauser-thc
b815c32f0e fix ui 2021-04-15 12:22:05 +02:00
vanhauser-thc
cd40fa1745 fix warnings 2021-04-15 11:04:39 +02:00
vanhauser-thc
61a918f820 remove duplicate plot file write 2021-04-15 10:43:18 +02:00
vanhauser-thc
ab0f13ed06 fix writing stat file on exit 2021-04-15 00:11:32 +02:00
vanhauser-thc
5e72568a45 ui update 2021-04-14 17:52:43 +02:00
vanhauser-thc
ae9087b390 update havoc 2021-04-14 17:30:08 +02:00
vanhauser-thc
be880f2476 add AFL_EXIT_ON_SEED_ISSUES 2021-04-13 13:01:50 +02:00
vanhauser-thc
50bb931ea6 ui custom mutator only display 2021-04-13 11:26:27 +02:00
vanhauser-thc
0c06371cda display dictionary usage in havoc only mode 2021-04-13 11:16:12 +02:00
vanhauser-thc
c19d1f0c75 update grammar-mutator, show better fuzzing strategy yields 2021-04-09 12:22:16 +02:00
vanhauser-thc
019b26de58 fix afl_custom_queue_new_entry when syncing 2021-04-09 11:19:48 +02:00
vanhauser-thc
9c517199b2 removed -lc++ linking for lto 2021-04-08 10:03:44 +02:00
vanhauser-thc
bfe7e3fd55 fix forkserver timeout error msg 2021-04-07 14:20:58 +02:00