diff options
-rw-r--r-- | fuzz.c | 6 | ||||
-rw-r--r-- | input.c | 2 | ||||
-rw-r--r-- | subproc.c | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -124,7 +124,7 @@ static void fuzz_addFileToFileQ(honggfuzz_t* hfuzz, const uint8_t* data, size_t hfuzz->dynfileqCnt++; if (hfuzz->socketFuzzer) { - /* Dont add coverage data to files in socketFuzzer mode */ + /* Don't add coverage data to files in socketFuzzer mode */ return; } @@ -545,7 +545,7 @@ static void* fuzz_threadNew(void* arg) { .linux.attachedPid = 0, }; - // Do not try to handle input files with socketfuzzer + /* Do not try to handle input files with socketfuzzer */ if (!hfuzz->socketFuzzer) { if (!(run.dynamicFile = files_mapSharedMem( hfuzz->maxFileSz, &run.dynamicFileFd, run.global->io.workDir))) { @@ -630,7 +630,7 @@ void fuzz_threadsStart(honggfuzz_t* hfuzz, pthread_t* threads) { } if (hfuzz->socketFuzzer) { - /* Dont do dry run */ + /* Don't do dry run with socketFuzzer */ LOG_I("Entering phase - Feedback Driven Mode (SocketFuzzer)"); hfuzz->state = _HF_STATE_DYNAMIC_MAIN; } else if (hfuzz->useSanCov || hfuzz->dynFileMethod != _HF_DYNFILE_NONE) { @@ -283,7 +283,7 @@ bool input_parseBlacklist(honggfuzz_t* hfuzz) { hfuzz->blacklist[hfuzz->blacklistCnt] = strtoull(lineptr, 0, 16); LOG_D("Blacklist: loaded %'" PRIu64 "'", hfuzz->blacklist[hfuzz->blacklistCnt]); - // Verify entries are sorted so we can use interpolation search + /* Verify entries are sorted so we can use interpolation search */ if (hfuzz->blacklistCnt > 1) { if (hfuzz->blacklist[hfuzz->blacklistCnt - 1] > hfuzz->blacklist[hfuzz->blacklistCnt]) { LOG_F( @@ -310,11 +310,11 @@ static bool subproc_New(run_t* run) { /* Parent */ LOG_D("Launched new process, PID: %d, thread: %" PRId32 " (concurrency: %zd)", run->pid, run->fuzzNo, run->global->threads.threadsMax); + if (run->global->socketFuzzer) { - // Dont know why, but this is important + /* (dobin): Don't know why, but this is important */ run->persistentPid = run->pid; } - if (run->global->exe.persistent) { close(sv[1]); LOG_I("Persistent mode: Launched new persistent PID: %d", (int)run->pid); |