60 Commits

Author SHA1 Message Date
van Hauser
2802245da7 update instrumenation/README.instrument_file.md for gcc_plugin 2020-09-08 17:15:32 +02:00
van Hauser
c7f0d30668 added afl_custom_fuzz_count 2020-08-24 17:32:41 +02:00
Dominik Maier
7470b475a9
Reworked maybe_grow to take a single ptr, renamed to afl_realloc (#505)
* maybe_grow takes a single ptr

* fixed use_deflate

* reworked maybe_grow_bufsize

* helper to access underlying buf

* remove redundant realloc_block

* code format

* fixes

* added unit tests

* renamed maybe_grow to afl_realloc

* BUF_PARAMS -> AFL_BUF_PARAM
2020-08-18 00:50:52 +02:00
murx-
9a1d526ed4 Add support for specific custom mutator name 2020-08-08 18:34:54 +02:00
Dominik Maier
630d2a934b less gotos 2020-07-31 14:36:58 +02:00
Andrea Fioraldi
952e5b47eb allow custom mut with mopt if -L is -1 2020-07-28 16:02:15 +02:00
van Hauser
16e362d2b9 add last 60s exec/s stat 2020-07-26 15:55:03 +02:00
HAPPY
7e4703c328
Fix typo for afl_custom_deinit (#470) 2020-07-26 14:10:24 +02:00
Shengtuo Hu
d90328f6be
Allow the custom mutator to generate larger trimmed data (#463) 2020-07-22 00:00:21 +02:00
van Hauser
6c163910ee debug test for rng 2020-07-20 12:08:31 +02:00
h1994st
67d2e6319b Skip the empty test case generated by the custom trimming 2020-07-18 23:20:32 -04:00
van Hauser
8178f4dfdd remove radamsa, add radamsa custom mutator 2020-06-25 16:51:29 +02:00
van Hauser
a632c00b0d switch to faster and better hash + random 2020-06-12 16:08:49 +02:00
van Hauser
57637ba0b0 removed overlooked post_lib references, added post_lib examples to examples/custom_mutators 2020-05-15 13:39:42 +02:00
van Hauser
60a5df5262 code-format and slight -S/-M modifications 2020-05-13 16:49:00 +02:00
rish9101
9627458ecc Add post library API as custom mutator and rename pre_save 2020-05-13 18:59:12 +05:30
van Hauser
060f4ea320 enforce mandatary custom functions 2020-05-12 17:05:12 +02:00
van Hauser
6177954773 fix custom mutators and add real test cases 2020-05-12 16:32:40 +02:00
van Hauser
fa84e52af0 custom mutator code enhancements and code-format 2020-05-09 11:35:54 +02:00
Rishi Ranjan
190f3024da
Support multiple custom mutators (#282)
* Make a list of custom mutators using env variable

* Set up multiple custom mutators

* Add destroy custom mutator and changes to load_custom_mutator

* Use array instead of list, make changes to afl-fuzz-one for multiple mutators

* Make change to fuzz-one custom_queue_get to support multiple mutators

* Modify custom python mutator support

* Fix bug

* Fix missing afl->mutator->data

* Revert to list with max count

* Change custom_pre_save hook and code format

* Free custom_mutator struct in the list

* Add testcase for multiple custom mutators

* Resolve merge conflict
2020-05-08 20:08:27 +02:00
Dominik Maier
ce15937717 code format 2020-04-20 21:54:55 +02:00
Dominik Maier
8197e9b2e4
clang-tidy readability-braces (#323) 2020-04-19 16:42:40 +02:00
Dominik Maier
1ee224652c libradamsa fix 2020-04-16 16:05:39 +02:00
Dominik Maier
b10007a7b5 renamed duplicated func names 2020-04-16 15:32:04 +02:00
Dominik Maier
6dc36f1e6e unified forkservered run_target, fixes #308 2020-04-14 19:27:25 +02:00
van Hauser
32ba60185e more refactoring and update changelog 2020-04-11 08:02:54 +02:00
Dominik Maier
29ee3a1ffc refactored cmplog 2020-04-11 01:09:07 +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
Dominik Maier
508230e91b code format 2020-04-01 13:10:07 +02:00
Dominik Maier
1e290542bb rebase 2020-04-01 13:10:06 +02:00
Dominik Maier
98545f30aa code format 2020-04-01 13:10:06 +02:00
Dominik Maier
81873d97f8 error handling for custom mutators 2020-04-01 13:10:06 +02:00
Dominik Maier
ab5e0703da tiny changes in custom mut api 2020-04-01 13:10:06 +02:00
Dominik Maier
9785b15ed2 more custom mutator remodelling 2020-04-01 13:10:05 +02:00
Dominik Maier
8c94a3d177 added nullptr fix by h1994st 2020-04-01 13:10:05 +02:00
Dominik Maier
d6a7630fe2 more api 2020-03-27 11:06:06 +01:00
Dominik Maier
e9c7610cb7 edited custom mutator pre_save api 2020-03-27 11:06:06 +01:00
Dominik Maier
6d3dc83c5d code format 2020-03-27 11:06:06 +01:00
Dominik Maier
89512d4e05 fixed call of custom mutators 2020-03-27 11:06:06 +01:00
Dominik Maier
77b81e7361 custom mutators might work again like this 2020-03-23 18:18:54 +01:00
Dominik Maier
83f925ccc9 unsafer 2020-03-23 15:02:26 +01:00
Dominik Maier
cbde30e9d4 less branches, cleanup 2020-03-23 00:14:03 +01:00
Dominik Maier
f08a3fedf6 renamed UB to rand_below 2020-03-21 22:26:13 +01:00
Dominik Maier
54d01fec43 moved string formatting to header 2020-03-21 21:48:52 +01:00
Dominik Maier
5b9d306cdf no more (?) statics 2020-03-19 22:54:09 +01:00
Dominik Maier
b6fa63abdf code format 2020-03-19 19:23:58 +01:00
Dominik Maier
51a346bcbe 50% less globals 2020-03-19 19:22:57 +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
Dominik Maier
782cffb130 fixed numerous leaks 2020-03-09 19:30:26 +01:00