aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-05-25 09:22:50 +0200
committervanhauser-thc <vh@thc.org>2021-05-25 09:22:50 +0200
commit8e75adfee5574d6d0dd7fd73e9c0899f3162c964 (patch)
treef94dd4a28d6a315c810f594533c5ce780922bd5f /src
parent109383f43830010c36b704c682ee537e6474d25a (diff)
downloadafl++-8e75adfee5574d6d0dd7fd73e9c0899f3162c964.tar.gz
AFL_SKIP_CRASHES is obsolete since 3.0
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-init.c30
-rw-r--r--src/afl-fuzz-state.c3
-rw-r--r--src/afl-fuzz.c2
3 files changed, 5 insertions, 30 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index b277802b..f2d1fb9b 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -823,7 +823,6 @@ void perform_dry_run(afl_state_t *afl) {
struct queue_entry *q;
u32 cal_failures = 0, idx;
- u8 * skip_crashes = afl->afl_env.afl_skip_crashes;
u8 * use_mem;
for (idx = 0; idx < afl->queued_paths; idx++) {
@@ -923,27 +922,6 @@ void perform_dry_run(afl_state_t *afl) {
if (afl->crash_mode) { break; }
- if (skip_crashes) {
-
- if (afl->fsrv.uses_crash_exitcode) {
-
- WARNF(
- "Test case results in a crash or AFL_CRASH_EXITCODE %d "
- "(skipping)",
- (int)(s8)afl->fsrv.crash_exitcode);
-
- } else {
-
- WARNF("Test case results in a crash (skipping)");
-
- }
-
- q->cal_failed = CAL_CHANCES;
- ++cal_failures;
- break;
-
- }
-
if (afl->fsrv.mem_limit) {
u8 val_buf[STRINGIFY_VAL_SIZE_MAX];
@@ -1117,14 +1095,12 @@ void perform_dry_run(afl_state_t *afl) {
if (cal_failures == afl->queued_paths) {
- FATAL("All test cases time out%s, giving up!",
- skip_crashes ? " or crash" : "");
+ FATAL("All test cases time out or crash, giving up!");
}
- WARNF("Skipped %u test cases (%0.02f%%) due to timeouts%s.", cal_failures,
- ((double)cal_failures) * 100 / afl->queued_paths,
- skip_crashes ? " or crashes" : "");
+ WARNF("Skipped %u test cases (%0.02f%%) due to timeouts or crashes.",
+ cal_failures, ((double)cal_failures) * 100 / afl->queued_paths);
if (cal_failures * 5 > afl->queued_paths) {
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c
index c886cb28..046d17d6 100644
--- a/src/afl-fuzz-state.c
+++ b/src/afl-fuzz-state.c
@@ -206,8 +206,7 @@ void read_afl_environment(afl_state_t *afl, char **envp) {
afl_environment_variable_len)) {
- afl->afl_env.afl_skip_crashes =
- (u8 *)get_afl_env(afl_environment_variables[i]);
+ // we should mark this obsolete in a few versions
} else if (!strncmp(env, "AFL_HANG_TMOUT",
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 35fb2d04..3b6ac5e2 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -240,7 +240,7 @@ static void usage(u8 *argv0, int more_help) {
"AFL_SHUFFLE_QUEUE: reorder the input queue randomly on startup\n"
"AFL_SKIP_BIN_CHECK: skip afl compatibility checks, also disables auto map size\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_SKIP_CRASHES: during initial dry run do not terminate for crashing inputs\n"
"AFL_STATSD: enables StatsD metrics collection\n"
"AFL_STATSD_HOST: change default statsd host (default 127.0.0.1)\n"
"AFL_STATSD_PORT: change default statsd port (default: 8125)\n"