code format and changelog

This commit is contained in:
vanhauser-thc
2024-06-18 15:42:34 +02:00
parent 3ebf41ba34
commit b8568034f0
4 changed files with 54 additions and 44 deletions

View File

@ -4,6 +4,11 @@
release of the tool. See README.md for the general instruction manual. release of the tool. See README.md for the general instruction manual.
### Version ++4.22a (dev) ### Version ++4.22a (dev)
- afl-fuzz:
- fastresume feature added. if you abort fuzzing and resume fuzzing
with `-i -` or `AFL_AUTORESUME=1` and the target binary has not changed
then a dump will be loaded and the calibration phase skipped.
to disable this feature set `AFL_NO_FASTRESUME=1`
- frida_mode: - frida_mode:
- AFL_FRIDA_PERSISTENT_ADDR can now be be any reachable address not just - AFL_FRIDA_PERSISTENT_ADDR can now be be any reachable address not just
a function entry a function entry

View File

@ -115,7 +115,8 @@ static char *afl_environment_variables[] = {
"AFL_TRACE_PC", "AFL_USE_ASAN", "AFL_USE_MSAN", "AFL_USE_TRACE_PC", "AFL_TRACE_PC", "AFL_USE_ASAN", "AFL_USE_MSAN", "AFL_USE_TRACE_PC",
"AFL_USE_UBSAN", "AFL_USE_TSAN", "AFL_USE_CFISAN", "AFL_USE_LSAN", "AFL_USE_UBSAN", "AFL_USE_TSAN", "AFL_USE_CFISAN", "AFL_USE_LSAN",
"AFL_WINE_PATH", "AFL_NO_SNAPSHOT", "AFL_EXPAND_HAVOC_NOW", "AFL_USE_FASAN", "AFL_WINE_PATH", "AFL_NO_SNAPSHOT", "AFL_EXPAND_HAVOC_NOW", "AFL_USE_FASAN",
"AFL_USE_QASAN", "AFL_PRINT_FILENAMES", "AFL_PIZZA_MODE", "AFL_NO_FASTRESUME", NULL "AFL_USE_QASAN", "AFL_PRINT_FILENAMES", "AFL_PIZZA_MODE",
"AFL_NO_FASTRESUME", NULL
}; };

View File

@ -401,7 +401,9 @@ void mark_as_redundant(afl_state_t *afl, struct queue_entry *q, u8 state) {
} else { } else {
if (unlink(fn)) { /*PFATAL("Unable to remove '%s'", fn);*/ } if (unlink(fn)) { /*PFATAL("Unable to remove '%s'", fn);*/
}
} }

View File

@ -3214,6 +3214,7 @@ stop_fuzzing:
#endif #endif
if (!afl->afl_env.afl_no_fastresume) { if (!afl->afl_env.afl_no_fastresume) {
/* create fastresume.bin */ /* create fastresume.bin */
u8 fr[PATH_MAX]; u8 fr[PATH_MAX];
snprintf(fr, PATH_MAX, "%s/fastresume.bin", afl->out_dir); snprintf(fr, PATH_MAX, "%s/fastresume.bin", afl->out_dir);
@ -3271,6 +3272,7 @@ stop_fuzzing:
WARNF("Could not create fastresume.bin"); WARNF("Could not create fastresume.bin");
} }
} }
destroy_queue(afl); destroy_queue(afl);