vanhauser-thc
07c3e47e6b
fixes
2021-06-01 11:19:49 +02:00
vanhauser-thc
17e904eedf
fix afl_custom_post_process with multiple custom mutators
2021-06-01 10:40:34 +02:00
vanhauser-thc
109383f438
less executions on variable paths
2021-05-25 09:08: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
vanhauser-thc
86452cc959
fix stdin trimming
2021-04-30 23:41:06 +02:00
Dominik Maier
e9d2f72382
fixed potential double free in custom trim ( #881 )
2021-04-30 13:37:59 +02:00
vanhauser-thc
7ca51fab19
ensure one fuzzer sync per cycle, cycle introspection
2021-03-27 12:53:09 +01:00
vanhauser-thc
70c1de5d64
better forkserver error help and code format
2021-03-24 11:12:44 +01:00
vanhauser-thc
dfe6f7f8c9
make setting different file permissions easy via config.h
2021-03-23 20:21:08 +01:00
vanhauser-thc
fb2a6b6941
minimum sync time
2021-02-22 16:56:35 +01:00
Adrian Panasiuk
d046b28f2f
Fix "src" attribute in sync stage filenames ( #703 )
2021-01-27 03:04:06 +00:00
van Hauser
e91f3b0de6
codeql fix
2021-01-19 10:41:42 +01:00
van Hauser
b9ba2805e5
minor changes
2021-01-12 17:31:29 +01:00
van Hauser
efd8042431
fix lto cmplog instability
2021-01-12 13:42:00 +01:00
Dominik Maier
3d1a25ce4e
added check to silence scan-build
2021-01-08 11:54:35 +01: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
van Hauser
688f4ffb89
added corpus introspection
2020-12-28 14:01:48 +01:00
van Hauser
03849d147a
warn on _AFL and __AFL env vars
2020-12-23 17:56:39 +01:00
hexcoder-
9a5ea5b5c2
workaround for Solaris: NAME_MAX is not defined
2020-12-22 20:33:06 +01:00
van Hauser
d07b0169cb
skim import
2020-12-17 10:55:33 +01:00
hexcoder-
befb1a2f39
remove stray debugging fprintf
2020-12-12 16:40:13 +01:00
hexcoder-
fd30a4184a
typo
2020-12-12 16:37:23 +01:00
Dominik Maier
609f3d0265
fixed gcc analyzer warnings
2020-12-11 13:29:45 +01:00
Dominik Maier
1dbefc14ea
fixed bugs in custom_describe, reported by wizche
2020-12-04 14:26:48 +01:00
hexcoder-
ed2f82eaf4
fix compiler warning turned error on NetBSD
2020-11-24 16:13:58 +01:00
Dominik Maier
f80f62f14b
renamed env var to AFL_DEBUG_CHILD
2020-11-18 03:02:13 +01:00
van Hauser
c06b5a1564
fix sync issue
2020-11-17 17:02:33 +01:00
van Hauser
3cfc0174f7
fix -N for forkserver
2020-11-03 16:00:29 +01:00
van Hauser
b5686eb63e
fixes two huge bugs
2020-10-29 00:05:28 +01:00
van Hauser
f41aafa4f7
retake from mem if possible
2020-10-15 15:48:39 +02:00
van Hauser
56ac3fcdc5
configurable testcache with malloc ( #581 )
...
* cache item number to cache memory size
* reload testcase if trimming changed the size
* fix splicing selection
* slim splicing
* import sync fix
* write testcache stats to fuzzer_stats
* fix new seed selection algo
* malloc+read instead of mmap
* fix
* testcache is configurable now and no reference counts
* fixes compilation, test script
* fixes
* switch TEST_CC to afl-cc in makefile
* code format
* fix
* fix crash
* fix crash
* fix env help output
* remove unnecessary pointer resets
* fix endless loop bug
* actually use the cache if set
* one more fix
* increase default cache entries, add default cache size value to config.h
Co-authored-by: hexcoder- <heiko@hexco.de>
2020-10-14 15:30:30 +02:00
van Hauser
c39a552cc0
ignore unstable
2020-09-02 20:30:26 +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
root
af14acf2c1
Revert "Merge branch 'debug' into dev"
...
This reverts commit a7537b5511ad767d2240cf2dc6d3e261daa676f9, reversing
changes made to 15e799f7ae666418e75c6a79db833c5316b21f97.
2020-08-14 14:35:05 +02:00
van Hauser
a7537b5511
Merge branch 'debug' into dev
2020-08-14 13:23:14 +02:00
van Hauser
7a6867e2f8
split up __afl_manual_init, added internal AFL_DISABLE_LLVM_INSTRUMENTATION, skipping ctor+ifunc functions for all llvm, code-format
2020-08-12 16:06:30 +02:00
van Hauser
b38837f4ff
setting attribute hot intelligently gives 0.5% speed
2020-08-12 14:14:44 +02:00
van Hauser
220dc4a43d
review done, pray
2020-08-11 16:25:35 +02:00
van Hauser
457f627101
move taint_mode var
2020-08-11 15:10:18 +02:00
van Hauser
3ec1b23743
cleanup minor issues
2020-08-11 10:36:34 +02:00
van Hauser
67dac15226
Merge branch 'debug' into taint
2020-08-11 03:40:12 +02:00
Dominik Maier
a422fcaa40
fixed minor inconsistencies, reenabled warnings
2020-08-10 19:04:51 +02:00
van Hauser
3ecafde29d
increase stack size
2020-08-10 13:59:30 +02:00
van Hauser
8428b18d2a
fix another segfault
2020-08-10 13:30:25 +02:00
van Hauser
9ec223c844
final touches for first testing
2020-08-09 23:47:51 +02:00
van Hauser
e99d7e9730
integration in fuzz_one
2020-08-09 20:24:56 +02:00
van Hauser
b60663c031
taint integration done
2020-08-09 18:48:12 +02:00
van Hauser
32db31b555
fixes
2020-08-09 12:35:52 +02:00
van Hauser
a1129b67c2
changes
2020-08-09 12:15:36 +02:00