fuzz.c (honggfuzz-2.4) | : | fuzz.c (honggfuzz-2.5) | ||
---|---|---|---|---|
skipping to change at line 478 | skipping to change at line 478 | |||
} | } | |||
report_saveReport(run); | report_saveReport(run); | |||
} | } | |||
static void* fuzz_threadNew(void* arg) { | static void* fuzz_threadNew(void* arg) { | |||
honggfuzz_t* hfuzz = (honggfuzz_t*)arg; | honggfuzz_t* hfuzz = (honggfuzz_t*)arg; | |||
unsigned int fuzzNo = ATOMIC_POST_INC(hfuzz->threads.threadsActiveCnt); | unsigned int fuzzNo = ATOMIC_POST_INC(hfuzz->threads.threadsActiveCnt); | |||
LOG_I("Launched new fuzzing thread, no. #%u", fuzzNo); | LOG_I("Launched new fuzzing thread, no. #%u", fuzzNo); | |||
if (!util_PinThreadToCPUs(fuzzNo, hfuzz->threads.pinThreadToCPUs)) { | ||||
PLOG_W("Pinning thread #%u to %" PRIu32 " CPUs failed", fuzzNo, | ||||
hfuzz->threads.pinThreadToCPUs); | ||||
} | ||||
run_t run = { | run_t run = { | |||
.global = hfuzz, | .global = hfuzz, | |||
.pid = 0, | .pid = 0, | |||
.dynfile = (dynfile_t*)util_Calloc(sizeof(dynfile_t) + hfuzz->io. maxFileSz), | .dynfile = (dynfile_t*)util_Calloc(sizeof(dynfile_t) + hfuzz->io. maxFileSz), | |||
.fuzzNo = fuzzNo, | .fuzzNo = fuzzNo, | |||
.persistentSock = -1, | .persistentSock = -1, | |||
.tmOutSignaled = false, | .tmOutSignaled = false, | |||
}; | }; | |||
/* Do not try to handle input files with socketfuzzer */ | /* Do not try to handle input files with socketfuzzer */ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 5 lines changed or added |