96 Commits

Author SHA1 Message Date
vanhauser-thc
4ff2673895 fix update_bitmap_score when no current trace is present 2025-04-09 14:21:42 +02:00
David Robillard
7765d4ac33
Fix various spelling errors (#2293)
* Fix spelling errors in log messages

* Fix doc comment syntax

* Fix spelling errors in Markdown documentation

* Fix spelling errors in comments
2025-02-10 00:32:42 +01:00
vanhauser-thc
476aca5b67 nits 2024-04-19 15:45:00 +02:00
vanhauser-thc
ed1a6f8a57 2024 v4.10c release 2024-02-03 11:01:31 +01:00
yangzao
770e868d04 add custom_post_run.c 2023-11-24 11:06:06 -07:00
vanhauser-thc
75d7a09469 show custom mutator name in UI 2023-04-08 13:48:07 +02:00
van Hauser
c33f8751e3
Merge pull request #1651 from AFLplusplus/dev
Dev
2023-02-21 01:11:00 +01:00
vanhauser-thc
a7c43484e1 bettern custom mut warning 2023-02-15 07:45:45 +01:00
vanhauser-thc
14d8eb9e40 autotoken: splicing; splice_optout 2023-01-18 22:17:14 +01:00
vanhauser-thc
35f09e11a4 welcome 2023 2023-01-03 09:38:07 +01:00
vanhauser-thc
4a7cd53f64 custom_send example 2022-11-14 21:26:17 +01:00
vanhauser-thc
c5f8869778 afl_custom_fuzz_send added 2022-11-11 10:46:45 +01:00
vanhauser-thc
ca4a8c0f92 post_process 0/NULL return support 2022-07-19 12:24:03 +02:00
vanhauser-thc
b847e0f414 clang format 14 2022-07-12 09:04:54 +02:00
vanhauser-thc
7c8246f18f fix 2022-05-09 14:30:40 +02:00
vanhauser-thc
51942b605d support post_process's own return buffer 2022-05-09 13:18:14 +02:00
vanhauser-thc
d5b9cd4b73 add afl-fuzz -y fuzz length support 2022-02-05 08:27:17 +01:00
vanhauser-thc
e1082f2548 welcome 2022 2022-01-01 00:49:17 +01:00
van Hauser
ce0edcff2e
Merge pull request #1186 from eternalsakura/stable
[fix] Fix custom mutator trim bug
2021-11-29 11:44:16 +01:00
eternalsakura
655b63d2b2 [fix] Custom mutator does not implement all three trim APIs, standard trimming will be used, but now the actual implementation does not match the description, fix this problem 2021-11-28 22:28:38 +08:00
vanhauser-thc
9325a4fcbb http->https 2021-11-06 10:28:22 +01:00
van Hauser
fff8c49f7c
Merge pull request #1034 from AFLplusplus/grammatron
Grammatron
2021-07-20 08:57:37 +02:00
vanhauser-thc
b5422c1a52 fix custom trimming 2021-07-15 16:05:38 +02:00
vanhauser-thc
8d873357a3 fix "fix" 2021-07-15 15:53:22 +02:00
vanhauser-thc
37fff16a36 update custom trim 2021-07-11 17:26:39 +02:00
vanhauser-thc
d354ec2586 more fixes 2021-07-09 11:39:25 +02:00
vanhauser-thc
50af4654e3 code-format 2021-05-10 13:46:31 +02:00
realmadsci
1d9a3d955c
Fix memory errors when trim causes testcase growth (#881) (#903)
* Revert "fixed potential double free in custom trim (#881)"

This reverts commit e9d2f72382cab75832721d859c3e731da071435d.

* Revert "fix custom trim for increasing data"

This reverts commit 86a8ef168dda766d2f25f15c15c4d3ecf21d0667.

* Fix memory errors when trim causes testcase growth

Modify trim_case_custom to avoid writing into in_buf because
some custom mutators can cause the testcase to grow rather than
shrink.

Instead of modifying in_buf directly, we write the update out
to the disk when trimming is complete, and then the caller is
responsible for refreshing the in-memory buffer from the file.

This is still a bit sketchy because it does need to modify q->len in
order to notify the upper layers that something changed, and it could
end up telling upper layer code that the q->len is *bigger* than
the buffer (q->testcase_buf) that contains it, which is asking
for trouble down the line somewhere...

* Fix an unlikely situation

Put back some `unlikely()` calls that were in
the e9d2f72382cab75832721d859c3e731da071435d commit that was
reverted.
2021-05-07 00:14:16 +02:00
Dominik Maier
e9d2f72382 fixed potential double free in custom trim (#881) 2021-04-30 13:37:59 +02:00
vanhauser-thc
86a8ef168d fix custom trim for increasing data 2021-04-19 11:05:49 +02:00
vanhauser-thc
dfe6f7f8c9 make setting different file permissions easy via config.h 2021-03-23 20:21:08 +01:00
Joey Jiao
ac1117ffae android: Fix runtime for mutator 2021-01-20 15:46:41 +08:00
van Hauser
6c095b3937 code format 2021-01-04 23:13:56 +01:00
hexcoder-
c6e038fe25 code cleanups (shadowed vars, (un)signed type mismatches, format types, etc.) 2021-01-04 20:40:53 +01:00
Dominik Maier
a19b3022d9 afl_custom_describe api added 2020-12-04 14:26:47 +01:00
van Hauser
8e1047f5ef support custom mutator introspection 2020-11-10 14:08:21 +01:00
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