aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-run.c6
-rw-r--r--src/afl-fuzz-state.c13
2 files changed, 11 insertions, 8 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c
index 09e773f0..5703a66a 100644
--- a/src/afl-fuzz-run.c
+++ b/src/afl-fuzz-run.c
@@ -130,11 +130,7 @@ write_to_testcase(afl_state_t *afl, void **mem, u32 len, u32 fix) {
}
- if (new_mem != *mem) {
-
- *mem = new_mem;
-
- }
+ if (new_mem != *mem) { *mem = new_mem; }
/* everything as planned. use the potentially new data. */
afl_fsrv_write_to_testcase(&afl->fsrv, *mem, new_size);
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c
index cbe32c75..8334af75 100644
--- a/src/afl-fuzz-state.c
+++ b/src/afl-fuzz-state.c
@@ -526,11 +526,18 @@ void read_afl_environment(afl_state_t *afl, char **envp) {
int time = atoi((u8 *)get_afl_env(afl_environment_variables[i]));
if (time > 0) {
- afl->sync_time = time * (60 * 1000LL);
+
+ afl->sync_time = time * (60 * 1000LL);
+
} else {
- WARNF("incorrect value for AFL_SYNC_TIME environment variable, "
- "used default value %lld instead.", afl->sync_time / 60 / 1000);
+
+ WARNF(
+ "incorrect value for AFL_SYNC_TIME environment variable, "
+ "used default value %lld instead.",
+ afl->sync_time / 60 / 1000);
+
}
+
}
} else {