7305 Commits

Author SHA1 Message Date
van Hauser
dcd2f9ac77
Merge pull request #2143 from r-barnes/patch-1
Make fallthroughs explicit in afl-fuzz-extras.c
2024-07-01 17:12:42 +02:00
Richard Barnes
37d9afc5cc
Make fallthroughs explicit in afl-fuzz-extras.c
Using `__attribute__((fallthrough))` makes fallthroughs explicit in a way the compiler can understand. This allows the enablement of `-Wimplicit-fallthrough`.
2024-07-01 06:59:37 -07:00
van Hauser
62b3a1e800
Merge pull request #2142 from CowBoy4mH3LL/patch-2
Update README.md to reflect latest changes
2024-07-01 11:35:53 +02:00
Subhojeet Mukherjee, PhD
9c54be6cf1
Update README.md to reflect latest changes
1. fixed hook name length to 16
2. no native debug logging at this time -- will bridge with AFL++ macros latter
2024-07-01 14:54:01 +05:30
van Hauser
53409530b3
Merge pull request #2141 from AFLplusplus/dev
push to stable
2024-07-01 08:57:38 +02:00
vanhauser-thc
43014cd465 changelog 2024-07-01 08:57:26 +02:00
van Hauser
e27e3622d4
Merge pull request #2140 from CowBoy4mH3LL/dev
Adding of QEMU hooking bridge
2024-07-01 08:55:00 +02:00
Subhojeet Mukherjee, PhD
b169629dbd Fresh commit with all -- post revertion due to unicornafl update 2024-07-01 05:52:06 +00:00
Giovanni Di Santi
8fbeeb1439 ijon set: discard source code instrumentation 2024-06-30 15:50:37 +02:00
Giovanni Di Santi
2a489f844b ijon set: remove gdb_history 2024-06-29 23:08:51 +02:00
Giovanni Di Santi
a161aac7c1 ijon set: init 2024-06-29 22:05:22 +02:00
vanhauser-thc
a7f928ac31 update qemuafl 2024-06-29 16:45:01 +02:00
vanhauser-thc
50ae95cee4 add AFL_OLD_FORKSERVER feature 2024-06-29 16:31:08 +02:00
vanhauser-thc
f6bfa96a96 todo 2024-06-29 03:32:37 +02:00
vanhauser-thc
e86dcc9f18 update qemu mode 2024-06-29 02:15:35 +02:00
vanhauser-thc
9d33580aac code format 2024-06-28 16:46:42 +02:00
vanhauser-thc
77cfd504cf update grammar mutator 2024-06-28 16:33:48 +02:00
vanhauser-thc
f7bbd467b5 add custom_send_tcp 2024-06-28 16:00:19 +02:00
vanhauser-thc
8993ba4305 add ruby dict 2024-06-27 19:42:58 +02:00
vanhauser-thc
ba7313b521 AFL_CUSTOM_MUTATOR_LATE_SEND added 2024-06-27 18:51:58 +02:00
van Hauser
e2d30641be
Merge pull request #2136 from jakelamberson/enhance-nyx-instructions
Enhance Nyx mode instructions
2024-06-27 03:26:56 +02:00
Jake Lamberson
2248773566 Add nyx_mode to contribution instructions 2024-06-26 20:21:05 -04:00
Jake Lamberson
5f43d0ad42 Fix and enhance Nyx mode instructions 2024-06-26 20:21:05 -04:00
vanhauser-thc
af47531745 improved seed selection algorithm 2024-06-26 01:12:10 +02:00
van Hauser
e80bd2d30c
Merge pull request #2133 from visitorckw/optimize-bit-counting
Optimize bit counting using __builtin_popcount
2024-06-24 01:37:09 +02:00
Kuan-Wei Chiu
ac5815d994 Optimize bit counting using __builtin_popcount
Use the __builtin_popcount intrinsic to optimize the bit counting
function if the compiler supports it. This change replaces the manual
bit counting algorithm with the more efficient built-in function, which
leverages hardware support on compatible processors.

This modification ensures that the code remains backward-compatible by
falling back to the original implementation when __builtin_popcount is
not available.
2024-06-24 06:52:07 +08:00
vanhauser-thc
540d741df0 nits atnwalk 2024-06-22 22:22:01 +02:00
vanhauser-thc
ecb5854be0 add zlib compression for fast resume 2024-06-21 14:40:23 +02:00
van Hauser
25b650f59d
Merge pull request #2132 from tylzh97/stable
Fix typo in unicorn_mode
2024-06-21 09:22:38 +02:00
Chenhao
ed6f19d3d8
Fix typo in unicorn_mode
in `unicorn_mode/samples`, python example floder's name is `python_simple`, there is a typo in README file.
2024-06-21 09:52:28 +08:00
vanhauser-thc
aecd157244 nit 2024-06-20 18:49:40 +02:00
vanhauser-thc
43a98b0ec2 todos 2024-06-20 18:49:40 +02:00
van Hauser
3b00cee858
Merge pull request #2130 from killerra/dev
Auto disable memory limits for FASAN
2024-06-20 08:47:20 +02:00
killerra
2fbc0aefb1
Auto disable memory limits for FASAN 2024-06-20 00:10:40 +02:00
van Hauser
2276a2f5c3
Merge pull request #2129 from choller/persist-code-cov
Collect persistent coverage data and dump it at the end of the run
2024-06-19 14:09:06 +02:00
Christian Holler (:decoder)
8fcca6fb41 Collect persistent coverage data and dump it at the end of the run
With CODE_COVERAGE builds, we need to collect the coverage data of each
iteration in a persistant buffer that has the same size as the regular
trace buffer used for fuzzing. We dump this information at the end of
the run and when combined with pointer data and module info, this can be
used to calculate code coverage.
2024-06-19 12:36:58 +02:00
vanhauser-thc
b8568034f0 code format and changelog 2024-06-18 15:42:34 +02:00
van Hauser
3ebf41ba34
Merge pull request #2128 from AFLplusplus/fastrestart
Fastrestart
2024-06-18 15:28:56 +02:00
vanhauser-thc
304e84502d fast resume option 2024-06-18 15:24:38 +02:00
vanhauser-thc
a6e42d98d9 llvm 19 fixes 2024-06-18 15:09:11 +02:00
vanhauser-thc
de176a10bc nit 2024-06-17 09:31:42 +02:00
van Hauser
e3183f7cda
Merge pull request #2125 from visitorckw/fix-libradamsa-signed-integer-overflow
Fix signed integer overflow in radamsa
2024-06-14 08:14:03 +02:00
Kuan-Wei Chiu
b5e0fff6b9 Fix signed integer overflow in radamsa
When UBSan was enabled and 'make test' was executed, the following
runtime error was observed:

libradamsa.c:26055:29: runtime error: left shift of 16777215 by 8 places cannot be represented in type 'int'

This issue was caused by a left shift operation on a signed integer.
The fix involved changing the integer literal to an unsigned integer by
adding a 'U' suffix, ensuring the left shift operation produces the
correct value without overflow.

Fixes: 8178f4df ("remove radamsa, add radamsa custom mutator")
2024-06-14 09:53:57 +08:00
van Hauser
36db3428ab
Merge pull request #2123 from AFLplusplus/dev
push to stable
2024-06-13 09:20:42 +02:00
vanhauser-thc
e7da8b9d6b Revert "MONOTONIC"
This reverts commit 0c9b460cc46aebfa4eb6e1fbe928895c0a8fcfbd.
2024-06-13 09:19:11 +02:00
van Hauser
c134df30db
Merge pull request #2121 from visitorckw/remove-Wno-shift-count-overflow
Remove -Wno-shift-count-overflow flag and hashmap from compilation
2024-06-13 07:57:06 +02:00
Kuan-Wei Chiu
b5e6c2d6e2 Remove -Wno-shift-count-overflow flag and hashmap from compilation
After commit 0c9d8e59 ("Fix undefined behavior by casting to uint64_t
before left shift"), the -Wno-shift-count-overflow flag is no longer
necessary to suppress compilation warnings. This commit removes the
flag, allowing the compiler to provide appropriate warnings for any
potential future cases of shifting too many bits.

Additionally, after commit eaf4a299 ("make redqueen hashmap not
default"), the hashmap is no longer in use. Therefore, this commit also
removes the hashmap from the GNUmakefile.
2024-06-13 09:34:03 +08:00
van Hauser
b6f8509234
Merge pull request #2122 from visitorckw/fix-realloc-check
Fix memory allocation check in aflpp custom mutators
2024-06-12 19:27:13 +02:00
Kuan-Wei Chiu
d45cd63583 Fix memory allocation check in aflpp custom mutators
The memory allocation check in afl_custom_fuzz function was incorrect.
The condition was erroneously checking if ptr was non-null, whereas it
should return 0 when ptr is null. Correct the condition to properly
handle memory allocation failures.

Fixes: 32ffa266 ("max_len support")
2024-06-13 00:42:12 +08:00
vanhauser-thc
0c9b460cc4 MONOTONIC 2024-06-12 09:17:07 +02:00