48 Commits

Author SHA1 Message Date
van Hauser
a5ef93c83a fix cmplog for llvm 11-dev 2020-05-22 11:42:04 +02:00
van Hauser
7b40d7b942 new code formatting + applied 2020-05-12 11:12:25 +02:00
van Hauser
41f6aa7940 bigger initial map when LTO 2020-05-11 10:45:20 +02:00
van Hauser
30bfd44dfd indenting preprocessor directives breaks compilation and cant be fixed, reverting ... :-( 2020-05-10 12:09:37 +02:00
van Hauser
26f8708fed fix warning, code format 2020-05-10 11:35:31 +02:00
van Hauser
6e45e55d82 fix crash in AFL_LLVM_LAF_TRANSFORM_COMPARES 2020-05-05 10:38:44 +02:00
van Hauser
9d03763d94 at some point we have to do a rewrite of llvm_mode/GNUmakefile 2020-05-01 00:57:20 +02:00
van Hauser
766085293d variable map size fix, error reporting through forkserver, code format 2020-04-24 12:09:25 +02:00
van Hauser
cce8c4dbae fixed map location support for LTO 2020-04-23 08:56:06 +02:00
Dominik Maier
f4436f118c fixed #317 2020-04-14 17:21:15 +02:00
Andrea Fioraldi
0d0338012b one byte cmp in cmplog 2020-04-14 13:02:49 +02:00
van Hauser
68f269437d
Autodictionary (#309)
* lto module clean-up

* step 1/3

* step 1/3 completed

* if tmp is ever made non-static

* parts 2 and 3 - autodictionary is complete

* variable map_size support

* variable map size: changed overlooked functions

* remove debug for autodict

* 64 bit alignment of map size

* fix review comments

* force 64 bit alignment on both sides

* typo

* better map transfer, display snapshot in UI

* update readme
2020-04-11 07:32:42 +02:00
van Hauser
3a509c6168
LTO optimization, variable map size, autodictionary (#307)
* lto module clean-up

* step 1/3

* step 1/3 completed

* if tmp is ever made non-static

* parts 2 and 3 - autodictionary is complete

* variable map_size support

* variable map size: changed overlooked functions

* remove debug for autodict

* 64 bit alignment of map size

* fix review comments

* force 64 bit alignment on both sides

* typo
2020-04-10 22:33:11 +02:00
van Hauser
698caed9c0 llvm_mode ctx: move function terminator instrumentation before skipping blocks 2020-04-09 10:23:37 +02:00
van Hauser
d397bba6b2 llvm_mode android fix 2020-04-09 10:23:37 +02:00
van Hauser
1d1f575b5c add missing piece for CTX coverage 2020-04-09 10:23:37 +02:00
hexcoder
84a4fd40a0 fix travis 2020-04-09 10:23:37 +02:00
van Hauser
314debb799 ctx done 2020-04-09 10:23:37 +02:00
Andrea Fioraldi
41225b53fa small fixes 2020-04-09 10:23:37 +02:00
Andrea Fioraldi
5efd306f7b snapshot() in llvm mode 2020-04-09 10:23:37 +02:00
van Hauser
ccbcb5c8d3 added AFL_LLVM_INSTRUMENT, made USE_TRACE_PC obselete and llvm_mode Makefile fix, fixed for FUSELD (for LTO) 2020-04-09 10:23:37 +02:00
van Hauser
5a74cffa0f added llvm_mode ngram coverage 2020-03-20 17:10:44 +01:00
van Hauser
684f4dd1c4 honor afl_quiet on env var checks + code-format 2020-03-11 11:42:57 +01:00
Dominik Maier
cc1d6b33b1 unified pointer placement 2020-03-10 22:04:05 +01:00
van Hauser
dcf7d85cba honor no_quiet for missing llvm_mode output, also print to stderr with afl-*-rt.o.c instead of stdout for errors plus two potential bad free() fixes 2020-03-09 10:56:53 +01:00
Andrea Fioraldi
27d6d35893 small fix to run cmplog binaries outside afl-fuzz 2020-03-06 21:23:47 +01:00
van Hauser
05a3418f86 added __afl_final_loc to all compile RTs 2020-03-04 01:51:41 +01:00
van Hauser
4e37e12c06 code-format 2020-02-28 00:19:36 +01:00
Andrea Fioraldi
3712a70115 bye bye SanCov for CmpLog 2020-02-27 16:04:07 +01:00
hexcoder-
891b568678 fix references to README docs 2020-02-25 08:34:44 +01:00
van Hauser
f807d7cefb important InsTrim fixes! 2020-02-24 02:45:17 +01:00
Andrea Fioraldi
eb05cb4d11 ooops, I forgot to merge thsi part :( 2020-02-21 19:51:19 +01:00
Andrea Fioraldi
7323833888 block the usage of mopt with optionals mutators (redqueen/radamsa/etc...) 2020-02-21 16:50:06 +01:00
Andrea Fioraldi
0fce34ec16 merge afl-llvm-cmplog-rt into afl-llvm-rt 2020-02-19 20:45:45 +01:00
Andrea Fioraldi
95a98fb3e8 cmplog runtime for LLVM 2020-01-30 22:40:09 +01:00
Andrea Fioraldi
b6c5974b37 format 2020-01-17 16:41:30 +01:00
Andrea Fioraldi
55e9297202 first experiment cmplog 2020-01-17 16:39:05 +01:00
Andrea Fioraldi
69b4977036 2020 copyright note 2020-01-06 16:04:35 +01:00
Andrea Fioraldi
67cbeeb395 added ++ to copyright notes 2020-01-06 11:46:14 +01:00
hexcoder-
c83e8e1e62 Remove lcamtuf's old email from Google (not valid anymore), also remove maintainance from him. 2019-10-19 18:23:01 +02:00
Andrea Fioraldi
e1f18f6212 fix typo in custom format 2019-09-04 10:03:51 +02:00
Andrea Fioraldi
7151651ea9 remove macro indentation from code-format 2019-09-03 20:43:11 +02:00
Andrea Fioraldi
b24639d011 run code formatter 2019-09-02 18:49:43 +02:00
Andrea Fioraldi
5036cb54cc update with changes from master 2019-08-30 12:13:51 +02:00
Andrea Fioraldi
bae398a9a4 -I include in makefiles 2019-08-27 19:22:53 +02:00
Joey Jiao
742aed4f2e Add support for Android 2019-08-19 19:43:58 +08:00
Heiko Eißfeldt
d9ff84e39e Refactor to use an alternative method for shared memory.
If USEMMAP is defined, the shared memory segment is created/attached etc.
now by shm_open() and mmap().
This API is hopefully more often available (at least for iOS).

In order to reduce code duplication I have added new files
sharedmem.[ch] which now encapsulate the shared memory method.

This is based on the work of Proteas to support iOS fuzzing (thanks).
866af8ad1c

Currently this is in an experimental status yet. Please report
whether this variant works on 32 and 64 bit and on the supported platforms.

This branch enables USEMMAP and has been tested on Linux.
There is no auto detection for the mmap API yet.
2019-06-30 10:37:14 +02:00
van Hauser
f367728c44 afl++ 2.52c initial commit 2019-05-28 16:40:24 +02:00