better replay mode error handling, added replay mode documentation, code formatting

This commit is contained in:
Davide Quarta
2024-02-05 18:26:46 +01:00
parent 8fedf49984
commit 023fc19ce0
7 changed files with 183 additions and 82 deletions

View File

@ -31,8 +31,8 @@
/* this lets the source compile without afl-clang-fast/lto */
#ifndef __AFL_FUZZ_TESTCASE_LEN
#define AFL_COMPAT
#include "persistent_replay.h"
#define AFL_COMPAT
#include "persistent_replay.h"
#endif
__AFL_FUZZ_INIT();
@ -86,8 +86,6 @@ int main(int argc, char **argv) {
if (buf[5] == '!') {
printf("six\n");
char *nullo = NULL+1;
*nullo = 'p';
abort();
}