summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fuzz.c6
-rw-r--r--input.c2
-rw-r--r--subproc.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/fuzz.c b/fuzz.c
index 3b0cf6d5..d5dc63b1 100644
--- a/fuzz.c
+++ b/fuzz.c
@@ -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) {
diff --git a/input.c b/input.c
index 7f4bb443..2e683521 100644
--- a/input.c
+++ b/input.c
@@ -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(
diff --git a/subproc.c b/subproc.c
index 4c41f6de..d31de94c 100644
--- a/subproc.c
+++ b/subproc.c
@@ -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);