7305 Commits

Author SHA1 Message Date
van Hauser
1910b0ad42
Merge pull request #2183 from NareshBiradar1/fix/image-tag-typo
#2182 - Fix Typo in Image Tag `heigh` Attribute in `README.md`
2024-08-11 16:59:39 +02:00
NareshBiradar1
9a04df5d97 Corrected the 'heigh' attribute to 'height' in the HTML image tag for the AFL++ logo to ensure proper display. 2024-08-11 19:55:01 +05:30
van Hauser
4f03f380ea
Merge pull request #2180 from tchebb/fix-shell-errors
Fix `/bin/sh:` errors when building without LLVM
2024-08-08 09:30:19 +02:00
van Hauser
e3b08d430c
Merge pull request #2173 from ahuo1/dev
To support AFL instrumentation, add default settings of map_size in forkserver.
2024-08-08 09:21:38 +02:00
van Hauser
4f35c30371
Merge pull request #2181 from tchebb/fix-no-zlib
Fix syntax error when compiling without zlib
2024-08-07 12:28:08 +02:00
Thomas Hebb
9df9064549 Fix syntax error when compiling without zlib
commit ecb5854be08fa ("add zlib compression for fast resume") added new
logic selected at compile-time when zlib is present. Unfortunately, it
also broke the existing logic by removing the last line of a multi-line
if statement, resulting in a syntax error when zlib isn't present.

Restore the line as it was.
2024-08-06 11:37:19 -07:00
Thomas Hebb
256bc6ab42 Fix "/bin/sh:" errors when building without LLVM
In GNUmakefile.llvm, several variables are unconditionally populated
by expanding $(LLVMVER) and $(LLVM_CONFIG) inside shell commands.
However, when LLVM is not present, both those variables are empty,
meaning that the shell commands end up malformed and emit harmless, but
noisy, errors like this one:

  /bin/sh: --: invalid option
  Usage:	/bin/sh [GNU long option] [option] ...
  	/bin/sh [GNU long option] [option] script-file ...
  GNU long options:
  	--debug
  	--debugger
  	--dump-po-strings
  	--dump-strings
  	--help
  	--init-file
  	--login
  	--noediting
  	--noprofile
  	--norc
  	--posix
  	--pretty-print
  	--rcfile
  	--rpm-requires
  	--restricted
  	--verbose
  	--version
  Shell options:
  	-ilrsD or -c command or -O shopt_option		(invocation only)
  	-abefhkmnptuvxBCHP or -o option
  /bin/sh: line 1: test: -gt: unary operator expected
  /bin/sh: line 1: test: -lt: unary operator expected
  /bin/sh: line 1: test: -ge: unary operator expected
  /bin/sh: line 1: test: -ge: unary operator expected

Fix the problem by only populating the "downstream" variables if the
upstream ones have values.
2024-08-06 11:27:01 -07:00
van Hauser
614c5127ca
Merge pull request #2179 from fish98/revise_docs
Update local building docs with missing dependencies
2024-08-06 14:01:49 +02:00
TTFISH
5bb894f1ee
remove redundant tracked tmp files during building
Signed-off-by: TTFISH <jiongchiyu@gmail.com>
2024-08-05 23:35:22 +08:00
TTFISH
8d72f41e20
update build dependencies for source-only/distrib
Otherwise the building of nyx_mode, frida_mode, unicorn_mode with source_only/all/distrib flag will fail due to missing dependencies.

Signed-off-by: TTFISH <jiongchiyu@gmail.com>
2024-08-05 23:33:31 +08:00
Yiyi Wang
b928303dd0
Merge branch 'AFLplusplus:dev' into dev 2024-08-05 22:21:52 +08:00
van Hauser
76b26ac2c6
Merge pull request #2174 from killerra/dev
Fixed lsan defaults evaluation
2024-08-03 10:19:15 +02:00
killerra
dd16be405a
Handle detect_leaks 0 and false 2024-08-02 14:51:42 +01:00
vanhauser-thc
2e57d86576 lower mem usage attempt 2024-08-02 15:27:57 +02:00
killerra
4369d6209f
Removed bogus free in instrument_coverage_unstable_find_output 2024-07-28 19:57:55 +01:00
killerra
26ae4124f3
fixed lasan defaults evaluation 2024-07-28 11:30:48 +01:00
Yiyi Wang
25945d51a4
To support AFL instrumentation, add default settings. 2024-07-28 16:45:45 +08:00
van Hauser
db23931e7c
Merge pull request #2172 from AFLplusplus/dev
push to stable
2024-07-24 14:50:57 +02:00
vanhauser-thc
6e37f9b237 new cmplog map 2024-07-24 14:48:23 +02:00
vanhauser-thc
2f2ddbbd79 fix afl-whatup time calc 2024-07-24 10:19:57 +02:00
van Hauser
ba7c012427
Merge pull request #2169 from killerra/dev
Fixed AFL_FRIDA_INST_UNSTABLE_COVERAGE_FILE to work for instances that are  not named "default"
2024-07-23 22:42:01 +02:00
killerra
5bfe0c1a15
added free for new strings 2024-07-23 20:52:15 +01:00
killerra
bb72cc752a Fixed frida unstable coverage for instances not named "default" 2024-07-23 17:31:13 +02:00
van Hauser
8c4ecd90a8
Merge pull request #2168 from AFLplusplus/fix_macos
Fix LLVM mode on MacOS
2024-07-23 15:44:05 +02:00
Dominik Maier
c0d53a1aa7 oops 2024-07-23 14:42:43 +02:00
Dominik Maier
31a1fbae33 Fix LLVM mode build on MacOS 2024-07-23 14:06:19 +02:00
van Hauser
09f1854cd1
Merge pull request #2165 from meowmeowxw/fix-fasan-arm64
Fix FASAN operand access on aarch64
2024-07-21 21:01:04 +02:00
Giovanni Di Santi
4a6b751b93 frida_mode: fix fasan operand access order 2024-07-21 18:26:13 +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
van Hauser
19ca7b3761
Merge pull request #2158 from AFLplusplus/dev
push to stable
2024-07-14 11:23:51 +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