7027 Commits

Author SHA1 Message Date
vanhauser-thc
5726796936 new 2024-07-21 11:41:19 +02:00
vanhauser-thc
bbcb3dd53e mini performance opt 2024-07-17 13:01:39 +02:00
vanhauser-thc
eac53afe7b fix autodict 2024-07-15 23:42:55 +02:00
vanhauser-thc
55a2362348 code format 2024-07-14 10:33:12 +02:00
van Hauser
8afb60d2f9
Merge pull request #2160 from exoosh/dev
Fixing change from PR#2152, misspelled variable names
2024-07-14 10:21:24 +02:00
vanhauser-thc
69a596c089 ensure this does not happen again 2024-07-14 10:20:53 +02:00
vanhauser-thc
ccb952dde8 Revert "Replace gettimeofday with clock_gettime (#2159)"
This reverts commit 7c380a6612f00e4a7ed02364dc2b3769e8edc8f8.
2024-07-14 10:18:23 +02:00
carpintero-de-c
7c380a6612
Replace gettimeofday with clock_gettime (#2159) 2024-07-14 00:25:58 +02:00
Oliver Schneider
88e2affe73
Fixing change from PR#2152, misspelled variable names 2024-07-13 21:29:41 +00:00
van Hauser
3f26818d97
Merge pull request #2157 from trail-of-forks/fix-syncid-len
check the sync_id length once
2024-07-12 23:05:30 +02:00
William Tan
bd83eb0f42
check the sync_id length once 2024-07-12 16:22:17 -04:00
van Hauser
c5acf3f137
Merge pull request #2156 from choller/patch-1
Initialize max_length in afl_fsrv_init #2155
2024-07-12 20:13:14 +02:00
Christian Holler (:decoder)
ea42feb06a
Initialize max_length in afl_fsrv_init #2155 2024-07-12 20:08:52 +02:00
van Hauser
a09720665d
Merge pull request #2154 from hazohelet/fix-missed-alias-table-recreation
Fix missed updates of alias table when INTROSPECTION is on
2024-07-10 16:53:39 +02:00
van Hauser
6f394842be
Merge pull request #2152 from exoosh/exocad/stable
Some fixups to the GNUmakefile.llvm
2024-07-10 14:39:31 +02:00
Takuya Shimizu
02f4f75526 Fix missed updates of alias table when INTROSPECTION is on
In src/afl-fuzz.c `prev_queued_items` is used to decide whether the alias table should be recreated through the comparison with `afl->queued_items`.
43f462c91b/src/afl-fuzz.c (L3103-L3117)

However, this variable is also updated to `afl->queued_items` when INTROSPECTION is enabled and the `fuzz_one` appends seeds.
43f462c91b/src/afl-fuzz.c (L3135-L3140)

Due to the update of `prev_queued_items` when INTROSPECTION is on, alias table may not be recreated when it actually should be.

This can lead to potential heap buffer-overflow in `select_next_queue_entry` due to the lack of `afl_realloc` called in `create_alias_table`.

This patch fixes this bug by utilizing another variable for the INTROSPECTION part like other variables such as `prev_saved_tmouts`.
2024-07-10 21:39:04 +09:00
van Hauser
43f462c91b
Merge pull request #2138 from meowmeowxw/ijon-set
IJON SET
2024-07-10 13:51:08 +02:00
Giovanni Di Santi
77bad3ad23 ijon set: use __afl_coverage_interesting 2024-07-10 10:16:14 +02:00
Oliver Schneider
835a4b6497
Some fixups to the GNUmakefile.llvm
* rely less on the shell and more on GNU make to parse the versions
* fixed retrieval of minor version (for 18.1.8 it gave 8 instead of 1!)
* auto-detection of llvm-config within the supported version range
* replaced backticks by `$(...)` syntax
* tested against `busybox static-sh`, `bash`, `dash` and `csh`
2024-07-10 07:55:37 +00:00
vanhauser-thc
d1a7b6988c update timeout for custom mutator tests 2024-07-08 09:46:51 +02:00
Vito
365129d811
Update sample_all.sh (#2146)
Incorrect shell syntax
2024-07-08 08:34:06 +02:00
Chenhao
b840ac91dc
Fixed the syntax errors in unicorn_loader.py within unicorn_mode. (#2144)
Replaced a Chinese comma "," with an English comma "," to ensure the code runs correctly.
2024-07-05 10:43:20 +02:00
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