"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "report.c" between
honggfuzz-2.1.tar.gz and honggfuzz-2.2.tar.gz

About: honggfuzz is a security oriented, feedback-driven, evolutionary, easy-to-use fuzzer with powerful analysis options.

report.c  (honggfuzz-2.1):report.c  (honggfuzz-2.2)
skipping to change at line 114 skipping to change at line 114
" ignoreAddr : %p\n" " ignoreAddr : %p\n"
#endif #endif
" ASLimit : %" PRIu64 " (MiB)\n" " ASLimit : %" PRIu64 " (MiB)\n"
" RSSLimit : %" PRIu64 " (MiB)\n" " RSSLimit : %" PRIu64 " (MiB)\n"
" DATALimit : %" PRIu64 " (MiB)\n" " DATALimit : %" PRIu64 " (MiB)\n"
" wordlistFile : %s\n", " wordlistFile : %s\n",
localtmstr, run->global->mutate.mutationsPerRun, localtmstr, run->global->mutate.mutationsPerRun,
run->global->exe.externalCommand == NULL ? "NULL" : run->global->exe.ext ernalCommand, run->global->exe.externalCommand == NULL ? "NULL" : run->global->exe.ext ernalCommand,
run->global->exe.fuzzStdin ? "TRUE" : "FALSE", run->global->timing.tmOut , run->global->exe.fuzzStdin ? "TRUE" : "FALSE", run->global->timing.tmOut ,
#if defined(_HF_ARCH_LINUX) #if defined(_HF_ARCH_LINUX)
run->global->linux.ignoreAddr, run->global->arch_linux.ignoreAddr,
#elif defined(_HF_ARCH_NETBSD) #elif defined(_HF_ARCH_NETBSD)
run->global->netbsd.ignoreAddr, run->global->arch_netbsd.ignoreAddr,
#endif #endif
run->global->exe.asLimit, run->global->exe.rssLimit, run->global->exe.da taLimit, run->global->exe.asLimit, run->global->exe.rssLimit, run->global->exe.da taLimit,
run->global->mutate.dictionaryFile == NULL ? "NULL" : run->global->mutat e.dictionaryFile); run->global->mutate.dictionaryFile == NULL ? "NULL" : run->global->mutat e.dictionaryFile);
#if defined(_HF_ARCH_LINUX) #if defined(_HF_ARCH_LINUX)
report_printdynFileMethod(run); report_printdynFileMethod(run);
#endif #endif
report_printTargetCmd(run); report_printTargetCmd(run);
dprintf(reportFD, dprintf(reportFD,
"%s" "%s"
"=====================================================================\n ", "=====================================================================\n ",
run->report); run->report);
} }
void report_appendReport(pid_t pid, run_t* run, funcs_t* funcs, size_t funcCnt, uint64_t pc, void report_appendReport(pid_t pid, run_t* run, funcs_t* funcs, size_t funcCnt, uint64_t pc,
uint64_t crashAddr, int signo, const char* instr, const char description[HF_ STR_LEN]) { uint64_t crashAddr, int signo, const char* instr, const char description[HF_ STR_LEN]) {
util_ssnprintf(run->report, sizeof(run->report), "CRASH:\n"); util_ssnprintf(run->report, sizeof(run->report), "CRASH:\n");
util_ssnprintf(run->report, sizeof(run->report), "DESCRIPTION: %s\n", descri ption); util_ssnprintf(run->report, sizeof(run->report), "DESCRIPTION: %s\n", descri ption);
util_ssnprintf(run->report, sizeof(run->report), "ORIG_FNAME: %s\n", run->or igFileName); util_ssnprintf(run->report, sizeof(run->report), "ORIG_FNAME: %s\n", run->dy nfile->path);
util_ssnprintf(run->report, sizeof(run->report), "FUZZ_FNAME: %s\n", run->cr ashFileName); util_ssnprintf(run->report, sizeof(run->report), "FUZZ_FNAME: %s\n", run->cr ashFileName);
util_ssnprintf(run->report, sizeof(run->report), "PID: %d\n", pid); util_ssnprintf(run->report, sizeof(run->report), "PID: %d\n", pid);
util_ssnprintf( util_ssnprintf(
run->report, sizeof(run->report), "SIGNAL: %s (%d)\n", util_sigName(sign o), signo); run->report, sizeof(run->report), "SIGNAL: %s (%d)\n", util_sigName(sign o), signo);
util_ssnprintf(run->report, sizeof(run->report), "PC: 0x%" PRIx64 "\n", pc); util_ssnprintf(run->report, sizeof(run->report), "PC: 0x%" PRIx64 "\n", pc);
util_ssnprintf(run->report, sizeof(run->report), "FAULT ADDRESS: 0x%" PRIx64 "\n", crashAddr); util_ssnprintf(run->report, sizeof(run->report), "FAULT ADDRESS: 0x%" PRIx64 "\n", crashAddr);
util_ssnprintf(run->report, sizeof(run->report), "INSTRUCTION: %s\n", instr) ; util_ssnprintf(run->report, sizeof(run->report), "INSTRUCTION: %s\n", instr) ;
util_ssnprintf( util_ssnprintf(
run->report, sizeof(run->report), "STACK HASH: %016" PRIx64 "\n", run->b acktrace); run->report, sizeof(run->report), "STACK HASH: %016" PRIx64 "\n", run->b acktrace);
util_ssnprintf(run->report, sizeof(run->report), "STACK:\n"); util_ssnprintf(run->report, sizeof(run->report), "STACK:\n");
for (size_t i = 0; i < funcCnt; i++) { for (size_t i = 0; i < funcCnt; i++) {
util_ssnprintf( util_ssnprintf(run->report, sizeof(run->report), " <0x%016tx> ", (uintpt
run->report, sizeof(run->report), " <0x%016" PRIx64 "> ", (uint64_t) r_t)funcs[i].pc);
funcs[i].pc);
util_ssnprintf(run->report, sizeof(run->report), "[func:%s file:%s line: %zu module:%s]\n", util_ssnprintf(run->report, sizeof(run->report), "[func:%s file:%s line: %zu module:%s]\n",
funcs[i].func, funcs[i].file, funcs[i].line, funcs[i].module); funcs[i].func, funcs[i].file, funcs[i].line, funcs[i].module);
} }
// libunwind is not working for 32bit targets in 64bit systems // libunwind is not working for 32bit targets in 64bit systems
#if defined(__aarch64__) #if defined(__aarch64__)
if (funcCnt == 0) { if (funcCnt == 0) {
util_ssnprintf(run->report, sizeof(run->report), util_ssnprintf(run->report, sizeof(run->report),
" !ERROR: If 32bit fuzz target" " !ERROR: If 32bit fuzz target"
" in aarch64 system, try ARM 32bit build\n"); " in aarch64 system, try ARM 32bit build\n");
 End of changes. 4 change blocks. 
6 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)