528 Commits

Author SHA1 Message Date
vanhauser-thc
dbfa23b40a fixes 2023-02-06 16:38:52 +01:00
vanhauser-thc
53c19a807c code indent 2023-02-04 14:09:50 +01:00
vanhauser-thc
25b4b32627 small fix to compiler rt 2023-02-02 12:13:48 +01:00
vanhauser-thc
4946e9cc3a small fix to compiler rt 2023-02-02 12:08:45 +01:00
vanhauser-thc
c5a84a124c fixes 2023-01-25 13:33:17 +01:00
van Hauser
16f71bfa24
Merge pull request #1621 from devnexen/llvm_16_upd
LLVM plugin 16+ support proposal.
2023-01-25 10:26:16 +01:00
vanhauser-thc
0251b9bfd8 llvm15 pcguard_init earlier constructor 2023-01-24 14:56:14 +01:00
David Carlier
5837322310 erase the switch instruction from the current parent 2023-01-23 22:56:04 +00:00
David Carlier
afd2ea90df LLVM plugin 16+ support proposal.
- Lifting the standard to C++17.
- Beyond the cosmetic changes, it boils down to BasicBlock::getInstList being
  no longer available (and reading the header it is no accident).
2023-01-20 22:12:35 +00:00
vanhauser-thc
35f09e11a4 welcome 2023 2023-01-03 09:38:07 +01:00
vanhauser-thc
2323952d62 update for llvm16 compile instructions 2022-11-10 15:06:02 +01:00
vanhauser-thc
dfc6d0fbf7 nits 2022-11-10 14:49:14 +01:00
van Hauser
c24939e812
Merge pull request #1576 from AFLplusplus/persistent_mode_always
Persistent mode always
2022-11-10 14:46:01 +01:00
Dominik Maier
d65cf10bad Always enable persistent mode, no env/bincheck needed 2022-11-09 03:28:06 +01:00
vanhauser-thc
05e0825d66 changelog update 2022-10-24 20:06:57 +02:00
Nils Bars
f84ea69660 Fix child reaping on fuzzer termination
This commit contains the following changes:
    - Call `waitpid()` on the child and the fork server when terminating the
      fuzzer; thus, we do not end up with zombies.
    - Rename `fsrv.kill_signal` to `fsrv.child_kill_signal`, since the
      documentation states that the signal is used to terminate the *child*.
    - Use SIGTERM instead of fsrv.(child)_kill_signal, thus the fork server
      can always reap the child.
2022-10-20 18:08:07 +02:00
vanhauser-thc
e6e82948bf fastexit + code format 2022-10-11 08:53:49 +02:00
van Hauser
2107ece114
auto shmem fuzzing (#1541)
* auto shmem fuzzing

* print warning when forcing shmem fuzzing

* typos

* Shmem always

* typo fix

* fixes

Co-authored-by: Dominik Maier <dmnk@google.com>
2022-10-07 15:40:04 +02:00
cl3nn0
586aec7116
Fixed typo in README.llvm.md (#1538)
Co-authored-by: van Hauser <vh@thc.org>
2022-09-29 12:42:04 +02:00
vanhauser-thc
3c21e9f0d1 another attempt at stand-alone map fix 2022-09-27 15:51:16 +02:00
vanhauser-thc
1ce0dcac3f fix standalone running with shared libs 2022-09-26 11:55:03 +02:00
hexcoder-
ed54532f29 make gcc_plugin compilable for gcc 3.6.0 2022-09-23 23:19:10 +02:00
van Hauser
061bd75953
Merge pull request #1518 from nikic/fix-lto
Fix LTO with LLVM 15
2022-09-15 09:58:03 +02:00
Nikita Popov
b27a4a3689 Fix loading and registeration of LTO pass for new pass manager 2022-09-14 15:54:29 +02:00
13579and2468
a194a82bcd
Fixed typo in README.lto.md (#1517)
typo fixed
2022-09-14 15:05:30 +02:00
Nikita Popov
5452d4652b Fix naming clash between AFL's sancov LTO pass and upstream sancov pass
There was some confusion here due to name reuse. The
initializeModuleSanitizerCoverageLegacyPassPass() function was
actually calling the initialization of the upstream pass (which
no longer supports legacy PM and thus fails to build on LLVM 15).
The intention was to call the LTO initialization here.

Fix this by renaming symbols to avoid collision.
2022-09-14 11:36:05 +02:00
Nikita Popov
36c46b9579 Fix LLVM 15 build
By removing ModuleSanitizerCoverageLegacyPass, which is completely
unused.

There was some confusing between the initialization function for
the upstream sancov pass and AFLs own implementation.
2022-09-14 10:58:22 +02:00
vanhauser-thc
2775271b17 pcguard off-by-one fix 2022-08-26 18:27:38 +02:00
vanhauser-thc
ba14c353c0 get map size from binaries within afl-cmin* 2022-08-15 18:31:45 +02:00
vanhauser-thc
6056d4b140 fix pcguard vector select instrumentation 2022-08-03 10:06:52 +02:00
vanhauser-thc
7b7914e1d6 code format 2022-07-25 09:09:29 +02:00
hexcoder-
42c677aa7b fix compilation for llvm 10.0 2022-07-19 23:03:20 +02:00
vanhauser-thc
b847e0f414 clang format 14 2022-07-12 09:04:54 +02:00
vanhauser-thc
05080f32ee fixes 2022-07-07 11:10:12 +02:00
vanhauser-thc
e6f27c2645 add missing laf compare split predicates 2022-07-07 00:34:30 +02:00
vanhauser-thc
fc520a2bde fix 2022-07-04 21:57:42 +02:00
vanhauser-thc
24458ae285 nits 2022-07-04 18:13:21 +02:00
vanhauser-thc
1334851e7c cmplog support for gcc_plugin by adacore 2022-07-04 09:59:47 +02:00
vanhauser-thc
48c2d51689 nits 2022-06-27 08:31:03 +02:00
vanhauser-thc
35d49c7c5c fix 2022-06-08 12:46:08 +02:00
vanhauser-thc
83f32c5248 honor AFL_MAP_SIZE well outside of afl++ 2022-06-08 10:56:11 +02:00
vanhauser-thc
942b85bb77 clarify gpl3 2022-05-31 11:10:37 +02:00
vanhauser-thc
13e0fd3e1a pcguard fix for most current llvm 15 changes 2022-05-03 13:01:48 +02:00
vanhauser-thc
4f42ecd815 remove WIP code 2022-04-18 13:16:10 +02:00
vanhauser-thc
1d00bde6c5 code format 2022-04-18 13:14:20 +02:00
vanhauser-thc
b1da7500b2 fix msg 2022-04-18 13:14:20 +02:00
Marc Poulhiès
396de6fc9c Fix GCC plugin crash when using deny/allow list
The provided function declaration F may not have valid location
information. Return an empty string in this case as the two callers are
already using this convention to filter out functions from being
instrumented when deny/allow list are used.
2022-04-08 09:50:08 +02:00
vanhauser-thc
0e9d0ebbfe fix cmplog! 2022-04-06 09:36:57 +02:00
Dominik Maier
285a5cb38b Some scan-build fixes 2022-03-31 15:36:26 +00:00
vanhauser-thc
fa2b040476 fix LTO with cmplog and laf 2022-03-18 15:00:24 +01:00