aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-08-31 12:26:41 +0200
committerDominik Maier <domenukk@gmail.com>2020-08-31 12:26:41 +0200
commit4697e4a5a519043b5727202c39a5e13c277e1cae (patch)
tree5efe49aa07c4b4aaf8604db88905bdd688f9859c /src
parent92b1f9cf36e7df8ce4b957e503cffca7296da048 (diff)
parentbbf00204eacfd0444257e81397f2e76ab90be41d (diff)
downloadafl++-4697e4a5a519043b5727202c39a5e13c277e1cae.tar.gz
description for AFL_MAX_DET_EXTRAS added
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-init.c11
-rw-r--r--src/afl-fuzz-one.c20
-rw-r--r--src/afl-fuzz.c2
3 files changed, 21 insertions, 12 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index 7b7ba006..852fc3fb 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -1843,7 +1843,8 @@ void setup_stdio_file(afl_state_t *afl) {
if (afl->file_extension) {
- afl->fsrv.out_file = alloc_printf("%s/.cur_input.%s", afl->tmp_dir, afl->file_extension);
+ afl->fsrv.out_file =
+ alloc_printf("%s/.cur_input.%s", afl->tmp_dir, afl->file_extension);
} else {
@@ -1851,11 +1852,15 @@ void setup_stdio_file(afl_state_t *afl) {
}
- unlink(afl->fsrv.out_file); /* Ignore errors */
+ unlink(afl->fsrv.out_file); /* Ignore errors */
afl->fsrv.out_fd = open(afl->fsrv.out_file, O_RDWR | O_CREAT | O_EXCL, 0600);
- if (afl->fsrv.out_fd < 0) { PFATAL("Unable to create '%s'", afl->fsrv.out_file); }
+ if (afl->fsrv.out_fd < 0) {
+
+ PFATAL("Unable to create '%s'", afl->fsrv.out_file);
+
+ }
}
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c
index 03c0d3a1..bf568c38 100644
--- a/src/afl-fuzz-one.c
+++ b/src/afl-fuzz-one.c
@@ -1767,19 +1767,23 @@ custom_mutator_stage:
}
- /* If we're finding new stuff, let's run for a bit longer, limits
- permitting. */
+ if (!el->afl_custom_fuzz_count) {
- if (afl->queued_paths != havoc_queued) {
+ /* If we're finding new stuff, let's run for a bit longer, limits
+ permitting. */
- if (perf_score <= afl->havoc_max_mult * 100) {
+ if (afl->queued_paths != havoc_queued) {
- afl->stage_max *= 2;
- perf_score *= 2;
+ if (perf_score <= afl->havoc_max_mult * 100) {
- }
+ afl->stage_max *= 2;
+ perf_score *= 2;
+
+ }
- havoc_queued = afl->queued_paths;
+ havoc_queued = afl->queued_paths;
+
+ }
}
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 1abd49d8..5ad2ace9 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -191,7 +191,7 @@ static void usage(u8 *argv0, int more_help) {
"AFL_QUIET: suppress forkserver status messages\n"
"AFL_PRELOAD: LD_PRELOAD / DYLD_INSERT_LIBRARIES settings for target\n"
"AFL_SHUFFLE_QUEUE: reorder the input queue randomly on startup\n"
- "AFL_SKIP_BIN_CHECK: skip the check, if the target is an excutable\n"
+ "AFL_SKIP_BIN_CHECK: skip the check, if the target is an executable\n"
"AFL_SKIP_CPUFREQ: do not warn about variable cpu clocking\n"
"AFL_SKIP_CRASHES: during initial dry run do not terminate for crashing inputs\n"
"AFL_TMPDIR: directory to use for input file generation (ramdisk recommended)\n"