6791 Commits

Author SHA1 Message Date
vanhauser-thc
a518c4d75c macos 2024-01-19 11:53:44 +01:00
vanhauser-thc
660b697ed9 typos 2024-01-19 10:28:39 +01:00
vanhauser-thc
cefc9a00bf help selective instrumentation 2024-01-18 17:12:09 +01:00
van Hauser
0c054f520e
push to stable (#1960)
* Output afl-clang-fast stuffs only if necessary (#1912)

* afl-cc header

* afl-cc common declarations

 - Add afl-cc-state.c
 - Strip includes, find_object, debug/be_quiet/have_*/callname setting from afl-cc.c
 - Use debugf_args in main
 - Modify execvp stuffs to fit new aflcc struct

* afl-cc show usage

* afl-cc mode selecting

1. compiler_mode by callname in argv[0]
2. compiler_mode by env "AFL_CC_COMPILER"
3. compiler_mode/instrument_mode by command line options "--afl-..."
4. instrument_mode/compiler_mode by various env vars including "AFL_LLVM_INSTRUMENT"
5. final checking steps
6. print "... - mode: %s-%s\n"
7. determine real argv[0] according to compiler_mode

* afl-cc macro defs

* afl-cc linking behaviors

* afl-cc fsanitize behaviors

* afl-cc misc

* afl-cc body update

* afl-cc all-in-one

formated with custom-format.py

* nits

---------

Co-authored-by: vanhauser-thc <vh@thc.org>

* changelog

* update grammar mutator

* lto llvm 12+

* docs(custom_mutators): fix missing ':' (#1953)

* Fix broken LTO mode and response file support (#1948)

* Strip `-Wl,-no-undefined` during compilation (#1952)

Make the compiler wrapper stripping `-Wl,-no-undefined` in addition to `-Wl,--no-undefined`.
Both versions of the flag are accepted by clang and, therefore, used by building systems in the wild (e.g., samba will not build without this fix).

* Remove dead code in write_to_testcase (#1955)

The custom_mutators_count check in if case is duplicate with if condition.
The else case is custom_mutators_count == 0, neither custom_mutator_list iteration nor sent check needed.

Signed-off-by: Xeonacid <h.dwwwwww@gmail.com>

* update qemuafl

* WIP: Add ability to generate drcov trace using QEMU backend (#1956)

* Document new drcov QEMU plugin

* Add link to lightkeeper for QEMU drcov file loading

---------

Co-authored-by: Jean-Romain Garnier <jean-romain.garnier@airbus.com>

* code format

* changelog

* sleep on uid != 0 afl-system-config

* fix segv about skip_next, warn on unsupported cases of linking options (#1958)

* todos

* ensure afl-cc only allows available compiler modes

* update grammar mutator

* disable aslr on apple

* fix for arm64

---------

Signed-off-by: Xeonacid <h.dwwwwww@gmail.com>
Co-authored-by: Sonic <50692172+SonicStark@users.noreply.github.com>
Co-authored-by: Xeonacid <h.dwwwwww@gmail.com>
Co-authored-by: Nils Bars <nils.bars@rub.de>
Co-authored-by: Jean-Romain Garnier <7504819+JRomainG@users.noreply.github.com>
Co-authored-by: Jean-Romain Garnier <jean-romain.garnier@airbus.com>
2024-01-18 15:17:48 +00:00
vanhauser-thc
e731a1c1ab fix for arm64 2024-01-18 12:01:26 +01:00
vanhauser-thc
523ce154c3 disable aslr on apple 2024-01-18 11:22:06 +01:00
vanhauser-thc
04219f9857 update grammar mutator 2024-01-18 09:28:56 +01:00
vanhauser-thc
136febaf68 ensure afl-cc only allows available compiler modes 2024-01-18 09:17:25 +01:00
vanhauser-thc
046473acd5 todos 2024-01-18 08:57:57 +01:00
Sonic
8412b17d79
fix segv about skip_next, warn on unsupported cases of linking options (#1958) 2024-01-18 07:56:28 +00:00
vanhauser-thc
e9621db61c sleep on uid != 0 afl-system-config 2024-01-16 09:22:43 +01:00
vanhauser-thc
68d883d428 changelog 2024-01-12 15:44:45 +01:00
vanhauser-thc
46ef6a54e1 code format 2024-01-12 15:43:12 +01:00
Jean-Romain Garnier
355dcf6320
WIP: Add ability to generate drcov trace using QEMU backend (#1956)
* Document new drcov QEMU plugin

* Add link to lightkeeper for QEMU drcov file loading

---------

Co-authored-by: Jean-Romain Garnier <jean-romain.garnier@airbus.com>
2024-01-12 14:42:41 +00:00
vanhauser-thc
a4017406dc update qemuafl 2024-01-12 15:37:37 +01:00
Xeonacid
b99bbf671b
Remove dead code in write_to_testcase (#1955)
The custom_mutators_count check in if case is duplicate with if condition.
The else case is custom_mutators_count == 0, neither custom_mutator_list iteration nor sent check needed.

Signed-off-by: Xeonacid <h.dwwwwww@gmail.com>
2024-01-11 13:13:47 +00:00
Nils Bars
9d3c25ac81
Strip -Wl,-no-undefined during compilation (#1952)
Make the compiler wrapper stripping `-Wl,-no-undefined` in addition to `-Wl,--no-undefined`.
Both versions of the flag are accepted by clang and, therefore, used by building systems in the wild (e.g., samba will not build without this fix).
2024-01-11 10:45:26 +00:00
Sonic
4e9c6050d0
Fix broken LTO mode and response file support (#1948) 2024-01-11 10:44:40 +00:00
Xeonacid
f75778adfb
docs(custom_mutators): fix missing ':' (#1953) 2024-01-11 08:42:51 +01:00
vanhauser-thc
db65dc5a0b lto llvm 12+ 2024-01-09 16:50:57 +01:00
vanhauser-thc
bb6d9cddd7 update grammar mutator 2024-01-08 16:28:11 +01:00
vanhauser-thc
ee7d69b817 changelog 2024-01-04 15:44:28 +01:00
Sonic
aad9ac2b33
Output afl-clang-fast stuffs only if necessary (#1912)
* afl-cc header

* afl-cc common declarations

 - Add afl-cc-state.c
 - Strip includes, find_object, debug/be_quiet/have_*/callname setting from afl-cc.c
 - Use debugf_args in main
 - Modify execvp stuffs to fit new aflcc struct

* afl-cc show usage

* afl-cc mode selecting

1. compiler_mode by callname in argv[0]
2. compiler_mode by env "AFL_CC_COMPILER"
3. compiler_mode/instrument_mode by command line options "--afl-..."
4. instrument_mode/compiler_mode by various env vars including "AFL_LLVM_INSTRUMENT"
5. final checking steps
6. print "... - mode: %s-%s\n"
7. determine real argv[0] according to compiler_mode

* afl-cc macro defs

* afl-cc linking behaviors

* afl-cc fsanitize behaviors

* afl-cc misc

* afl-cc body update

* afl-cc all-in-one

formated with custom-format.py

* nits

---------

Co-authored-by: vanhauser-thc <vh@thc.org>
2024-01-04 13:35:25 +00:00
van Hauser
358cd1b062
Merge pull request #1947 from AFLplusplus/dev
forgot to add the injection pass
2024-01-03 13:17:39 +01:00
vanhauser-thc
0aeee03e47 forgot to add the injection pass 2024-01-03 13:16:31 +01:00
van Hauser
9d305acbf3
Merge pull request #1946 from AFLplusplus/dev
push to stable
2023-12-30 11:18:39 +01:00
vanhauser-thc
5f492da717 update changelog 2023-12-30 11:00:28 +01:00
vanhauser-thc
c5b4e26052 remove tmp todo 2023-12-30 10:59:28 +01:00
van Hauser
1a60e35a2a
Merge pull request #1945 from AFLplusplus/stable
push back to dev
2023-12-30 10:58:01 +01:00
van Hauser
2260a065f4
Merge pull request #1944 from AFLplusplus/inject
Inject fuzzing
2023-12-30 10:51:47 +01:00
vanhauser-thc
1eb54c4c3e finish injection implementation 2023-12-30 10:49:00 +01:00
van Hauser
c39596c8bf
Merge pull request #1943 from AFLplusplus/dev
push to stable
2023-12-29 16:24:46 +01:00
vanhauser-thc
88cbaeb3e1 LLVM 17 bug workaround 2023-12-29 10:03:02 +01:00
hexcoder-
25f9c1f4fb Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2023-12-28 22:08:05 +01:00
hexcoder-
934a02f7f6 fix for issue #1916, iLLVM crash in split-floatingpoint-compares 2023-12-28 21:53:40 +01:00
vanhauser-thc
98a2a334de inject docs 2023-12-27 13:58:25 +01:00
vanhauser-thc
1fc1b32db2 initial simple injection detection support 2023-12-27 13:53:11 +01:00
van Hauser
b01ef97569
Merge pull request #1942 from Xeonacid/patch-1
Fix custom_send link
2023-12-25 15:07:22 +01:00
Xeonacid
c3197dfeb7
Use ../ instead 2023-12-25 18:30:46 +08:00
Xeonacid
a9e6998b82
Fix custom_send link
Add a leading '/' to walk in the repo root instead of current dir.
2023-12-25 13:50:32 +08:00
van Hauser
dcb5bc3fa5
Merge pull request #1941 from AFLplusplus/dev
push to stable
2023-12-24 11:08:26 +01:00
vanhauser-thc
daaefcddc0 code format 2023-12-24 10:35:02 +01:00
van Hauser
3c0cfd82bc
Merge pull request #1940 from devnexen/llvm_18_build_fix
llvm 18 build fixes.
2023-12-23 22:07:32 +01:00
David Carlier
df0638ab87 llvm 18 build fixes. 2023-12-23 19:32:19 +00:00
van Hauser
27d05f3c21
Merge pull request #1939 from bet4it/docs
Improve binary-only related docs
2023-12-22 09:19:13 +01:00
Bet4
86d76b52ac Improve binary-only related docs 2023-12-21 23:48:43 +08:00
vanhauser-thc
c38dedbecd update nyx 2023-12-21 08:31:16 +01:00
vanhauser-thc
2f74feaf99 remove afl-network-client on uninstall 2023-12-19 11:19:33 +01:00
vanhauser-thc
806a76afae fix bad fix for MUT_STRATEGY_ARRAY_SIZE 2023-12-19 11:15:33 +01:00
vanhauser-thc
f822cdeb74 fix MUT_STRATEGY_ARRAY_SIZE 2023-12-19 09:29:12 +01:00