167 Commits

Author SHA1 Message Date
vanhauser-thc
f81ef4abf4 fix afl-common compile 2021-02-28 00:12:39 +01:00
vanhauser-thc
79f1a44a01 fix qasan search path 2021-02-27 18:14:58 +01:00
Andrea Fioraldi
2f7e57f6aa helper_min3 func 2021-02-25 10:04:41 +01:00
Dominik Maier
cc7c651dc9 tidied up env suggestions 2021-02-24 18:07:08 +01:00
vanhauser-thc
974aab6cf6 cmplog config.h -> -l option 2021-02-21 17:53:09 +01:00
Andrea Fioraldi
62767a42dc improved env suggestions 2021-02-19 20:40:38 +01:00
Andrea Fioraldi
89cf94f0e6 suggested env vars for lazy ppl 2021-02-19 20:33:12 +01:00
vanhauser-thc
9bd1e19d7f added AFL_IGNORE_UNKNOWN_ENVS 2021-02-13 22:43:56 +01:00
van Hauser
32110a04c0 fixes 2021-02-01 15:51:04 +01:00
van Hauser
9d08f0d098 added AFL_CMPLOG_ONLY_NEW feature 2021-01-30 15:39:47 +01:00
Andrea Fioraldi
6f5746d428 AFL_USE_QASAN 2021-01-29 15:38:49 +01:00
van Hauser
0ddbffd80e fix 2021-01-12 17:36:10 +01:00
Dominik Maier
34732e3c5e refactored kill signal env parsing 2021-01-08 11:36:40 +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
0b9ca807f2 fix exec/s display 2020-12-26 13:15:05 +01:00
van Hauser
03849d147a warn on _AFL and __AFL env vars 2020-12-23 17:56:39 +01:00
van Hauser
fd6bff727a fix crash for very fast targets 2020-12-17 22:57:28 +01:00
Dominik Maier
609f3d0265 fixed gcc analyzer warnings 2020-12-11 13:29:45 +01:00
Dominik Maier
a2e2fae840 AFL_CRASH_EXITCODE env var added, u8->bool 2020-12-03 14:43:06 +01:00
hexcoder-
54a312a5fe more small fixes 2020-11-13 00:44:08 +01:00
bigredb
73c0e1357f qemu argv index was still wrong 2020-10-20 05:16:34 -07:00
Dominik Maier
060dbe1239 wine argv fix 2020-09-13 14:26:24 +02:00
Choongwoo Han
a9ba907676
Fix qemu argv construction (#555) 2020-09-13 14:25:02 +02:00
van Hauser
6c715f1a69 more changes to fuzzer_setup 2020-09-04 17:04:42 +02:00
root
af14acf2c1 Revert "Merge branch 'debug' into dev"
This reverts commit a7537b5511ad767d2240cf2dc6d3e261daa676f9, reversing
changes made to 15e799f7ae666418e75c6a79db833c5316b21f97.
2020-08-14 14:35:05 +02:00
van Hauser
4f695b6f4c fixes 2020-08-11 11:16:48 +02:00
van Hauser
0ba09ee85a enhancements 2020-08-11 10:24:45 +02:00
van Hauser
3ecafde29d increase stack size 2020-08-10 13:59:30 +02:00
van Hauser
b60663c031 taint integration done 2020-08-09 18:48:12 +02:00
van Hauser
0bb59ba116 code format 2020-08-09 01:09:26 +02:00
van Hauser
e4a0237cbc step 1 2020-08-09 00:35:12 +02:00
Dominik Maier
8e809d8593 added NULL check 2020-07-30 17:51:32 +02:00
van Hauser
97cef46b62 warn on deprecated env vars 2020-07-01 10:03:34 +02:00
van Hauser
06264df168 rename whitelist -> instrumentlist 2020-06-30 17:28:21 +02:00
van Hauser
81974c4d5e debug code 2020-06-28 22:50:18 +02:00
van Hauser
855ee06247 add afl-ld-lto for LTO 2020-06-04 13:57:16 +02:00
van Hauser
fc164e4709 code format 2020-06-03 10:50:49 +02:00
Dominik Maier
83112ed5e0 got rid of questionable phrasing 2020-06-02 14:54:24 +02:00
Dominik Maier
24508194c2 removed read_timed 2020-05-30 14:03:52 +02:00
Dominik Maier
95b46b4278 reverted extendended read_timed 2020-05-30 13:53:00 +02:00
Dominik Maier
b16ccb4811 Revert "code format"
This reverts commit 8f19becb620a6fedd0f8b855b48cdeeab211c2ed.
2020-05-30 13:51:29 +02:00
Dominik Maier
8f19becb62 code format 2020-05-30 11:05:53 +02:00
Dominik Maier
38e5c32a55 corrected read_timed for values > 4 2020-05-30 11:02:34 +02:00
van Hauser
8726d7b0a3 simplified read_timed 2020-05-30 06:51:51 +02:00
Dominik Maier
408ef5298b
Merge pull request #383 from dgmelski/fix-read-timed
Fix read_timed when accumulating short reads
2020-05-29 18:58:25 +02:00
David Melski
4b01d594c4 Fix read_timed when accumulating short reads
The existing code appears to use 'len_read' in several places where
'total_read' was intended.  The function may work if the first 1 or 2
iterations of the loop read the requested 'len' bytes.

If the first two reads are "short" and a third read is done, the bytes
will be placed over previously read bytes in buf and more than 'len'
bytes may be read in total, though buf is never overrun.

This commit changes read_timed to

  (1) correctly append short reads in buf
  (2) correctly terminate when the sum of the short reads
      equals the requested 'len' bytes
  (3) return an error when read() returns -1 or 0

The function also depends on select() decrementing the timeout
structure, as it does on Linux.  On other platforms, the exec_ms
returned is likely incorrect.  This patch does not attempt to address
this issue.
2020-05-28 20:25:30 -04:00
van Hauser
c64ea49432 AFL_LLVM_LAF_ALL 2020-05-23 01:37:21 +02:00
van Hauser
d334093606 deprecated AFL_POST_LIBRARY 2020-05-14 01:00:11 +02:00
van Hauser
72f4a9f678 missing env var 2020-05-12 19:40:04 +02:00
van Hauser
7b40d7b942 new code formatting + applied 2020-05-12 11:12:25 +02:00