303 Commits

Author SHA1 Message Date
vanhauser-thc
e1082f2548 welcome 2022 2022-01-01 00:49:17 +01:00
yuawn
269054e5c5 update header file 2021-12-11 10:07:16 +00:00
vanhauser-thc
9063002af2 rename path 2021-12-09 13:22:10 +01:00
van Hauser
fb443eaf23
Merge pull request #1141 from AFLplusplus/afl4
cmplog enhancement variant
2021-11-07 14:09:09 +01:00
vanhauser-thc
9325a4fcbb http->https 2021-11-06 10:28:22 +01:00
van Hauser
f5535e348d
Merge pull request #1142 from AFLplusplus/dev
Dev
2021-11-03 21:55:21 +01:00
vanhauser-thc
45d668a671 better ui banner 2021-10-18 13:17:07 +02:00
vanhauser-thc
ed10f3783b new rtn cmplog: instrumentation side + supporting functions 2021-10-17 13:05:33 +02:00
vanhauser-thc
c775f40ebf AFL_IGNORE_PROBLEMS + library checks and documentation 2021-08-12 14:32:44 +02:00
vanhauser-thc
da23c4254b makefile fixes 2021-07-30 15:52:00 +02:00
vanhauser-thc
d354ec2586 more fixes 2021-07-09 11:39:25 +02:00
vanhauser-thc
e1d5009229 fixes 2021-07-09 10:32:14 +02:00
van Hauser
7038e56da3
Select (#995)
* favor unfuzzed

* fix

* reinit table after a new fuzz
2021-06-27 10:22:18 +02:00
vanhauser-thc
a7340a1ac6 fix AFL_CAL_FAST 2021-06-10 10:25:37 +02:00
vanhauser-thc
87b16c4460 add AFL_TRY_AFFINITY 2021-05-25 10:45:24 +02:00
vanhauser-thc
8e75adfee5 AFL_SKIP_CRASHES is obsolete since 3.0 2021-05-25 09:22:50 +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
Dominik Maier
e9d2f72382 fixed potential double free in custom trim (#881) 2021-04-30 13:37:59 +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
7ca51fab19 ensure one fuzzer sync per cycle, cycle introspection 2021-03-27 12:53:09 +01:00
vanhauser-thc
ab394836a9 remove warnings 2021-03-25 08:40:33 +01:00
van Hauser
6e2a0ef233
Merge branch 'replay' into tmp 2021-03-24 18:19:13 +01:00
Dominik Maier
5fcd634f05 fixed tiny nitpicks 2021-03-23 18:47:07 +01:00
vanhauser-thc
4a0d4c50fc complete implemenation, still no test 2021-03-06 19:12:25 +01:00
vanhauser-thc
108e588e88 add de-unicoded dictionary entries 2021-03-02 17:46:43 +01:00
Andrea Fioraldi
047f3436e9 edges in plot file 2021-02-24 21:29:00 +01:00
vanhauser-thc
4ab90e739f code format 2021-02-22 22:24:59 +01:00
vanhauser-thc
fb2a6b6941 minimum sync time 2021-02-22 16:56:35 +01:00
vanhauser-thc
974aab6cf6 cmplog config.h -> -l option 2021-02-21 17:53:09 +01:00
vanhauser-thc
84f0b4f187 persistent replay env setup 2021-02-07 08:27:35 +01:00
vj-27
96cdc97c98 prev_run_time loaded used only for ui and when writing the stats file 2021-02-07 03:33:47 +05:30
vj-27
f54c4dbfdb set prev_run_time inside afl state 2021-02-06 09:41:15 +00:00
vj-27
1a8c242d28 load run time and donot load pending_* or *_favoured 2021-02-05 19:46:24 +00:00
vj-27
6f163bb0c5 load existing stats file when in AFL_AUTORESUME or -i - 2021-02-05 00:26:23 +00:00
van Hauser
d808a8401e import cmplog opts 2021-02-01 12:16:55 +01:00
aflpp
e5116c6d55 fix -Z, remove q->next 2021-01-31 17:29:37 +01:00
van Hauser
9d08f0d098 added AFL_CMPLOG_ONLY_NEW feature 2021-01-30 15:39:47 +01:00
van Hauser
3b3565269d foreign sync from ctime to mtime (libfuzzer) 2021-01-30 14:57:17 +01:00
van Hauser
fc3f06caec
Merge pull request #689 from AFLplusplus/cmplog_merge
cmplog merge
2021-01-21 12:03:21 +01:00
Joey Jiao
0306261fec Fix build error for Android
- LTO not work yet
2021-01-20 15:46:39 +08:00
van Hauser
c71ce79963 fix colorization 2021-01-17 15:18:20 +01:00
van Hauser
a0e884cf8b merge cmplog 2021-01-15 16:56:40 +01:00
buherator
9cdf5c4150
User defined kill signal value (#678)
* Adding AFL_KILL_SIGNAL environment variable

Controlling the kill signal used to end forked processes.

* Checking validity of AFL_KILL_SIGNAL env variable

This commit also sets a valid value in the environment to avoid
duplicating code in at_exit(). Changing data type of
fsrv->kill_signal to u8 to match last_kill_signal.

* Adding afl_kill_signal to AFL (environment) state

This commit simply introduces a struct member for future use. The
env variable is not used from the afl struct but from fsrv, where
its validity is checked, resulting in a FATAL in case of errors.
2021-01-07 22:35:34 +01:00
hexcoder-
c6e038fe25 code cleanups (shadowed vars, (un)signed type mismatches, format types, etc.) 2021-01-04 20:40:53 +01:00
van Hauser
880513651d cmplog cleanup 2021-01-03 10:13:55 +01:00
van Hauser
7e6645d5a2 float2double 2020-12-31 11:51:10 +01:00
hexcoder-
b0d69f1b69 cleanup of hot fix for -s on 32-bit 2020-12-30 13:02:11 +01:00