mirror of
https://github.com/google/honggfuzz.git
synced 2026-10-12 02:14:31 +00:00
make indent
This commit is contained in:
@@ -295,8 +295,8 @@ static void fuzz_perfFeedback(run_t* run) {
|
||||
LOG_D("Removing useless imported file: %s", run->dynfile->path);
|
||||
char fname[PATH_MAX];
|
||||
snprintf(fname, PATH_MAX, "%s/%s",
|
||||
run->global->io.outputDir ? run->global->io.outputDir : run->global->io.inputDir,
|
||||
run->dynfile->path);
|
||||
run->global->io.outputDir ? run->global->io.outputDir : run->global->io.inputDir,
|
||||
run->dynfile->path);
|
||||
unlink(fname);
|
||||
}
|
||||
}
|
||||
|
||||
+4
-4
@@ -267,8 +267,7 @@ static uint8_t mainThreadLoop(honggfuzz_t* hfuzz) {
|
||||
|
||||
uint64_t dynamicQueuePollTime = time(NULL);
|
||||
for (;;) {
|
||||
if (hfuzz->io.dynamicInputDir &&
|
||||
time(NULL) - dynamicQueuePollTime > _HF_SYNC_TIME) {
|
||||
if (hfuzz->io.dynamicInputDir && time(NULL) - dynamicQueuePollTime > _HF_SYNC_TIME) {
|
||||
LOG_D("Loading files from the dynamic input queue...");
|
||||
input_enqueueDynamicInputs(hfuzz);
|
||||
dynamicQueuePollTime = time(NULL);
|
||||
@@ -427,8 +426,9 @@ int main(int argc, char** argv) {
|
||||
if (hfuzz.io.statsFileFd == -1) {
|
||||
PLOG_F("Couldn't open statsfile open('%s')", hfuzz.io.statsFileName);
|
||||
} else {
|
||||
dprintf(hfuzz.io.statsFileFd, "# unix_time, last_cov_update, total_exec, exec_per_sec, "
|
||||
"crashes, unique_crashes, hangs, edge_cov, block_cov, corpus_count\n");
|
||||
dprintf(hfuzz.io.statsFileFd,
|
||||
"# unix_time, last_cov_update, total_exec, exec_per_sec, "
|
||||
"crashes, unique_crashes, hangs, edge_cov, block_cov, corpus_count\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -43,9 +43,9 @@
|
||||
#endif
|
||||
#if defined(__APPLE__)
|
||||
#include <spawn.h>
|
||||
extern char **environ;
|
||||
extern char** environ;
|
||||
#ifndef _POSIX_SPAWN_DISABLE_ASLR
|
||||
# define _POSIX_SPAWN_DISABLE_ASLR 0x0100
|
||||
#define _POSIX_SPAWN_DISABLE_ASLR 0x0100
|
||||
#endif
|
||||
#endif
|
||||
#include <sys/resource.h>
|
||||
|
||||
Reference in New Issue
Block a user