code-format, changelog
MODIFY
docs/Changelog.md
docs/Changelog.md
@@ -22,6 +22,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
- expanded havoc mode added, on no cycle finds add extra splicing and
MOpt into the mix
- fixed a bug in redqueen for strings and made deterministic with -s
+ - Compiletime autodictionary fixes
- llvm_mode:
- now supports llvm 12!
- support for AFL_LLVM_ALLOWLIST/AFL_LLVM_DENYLIST (previous

MODIFY
src/afl-fuzz-extras.c
src/afl-fuzz-extras.c
@@ -227,12 +227,12 @@ void load_extras_file(afl_state_t *afl, u8 *fname, u32 *min_len, u32 *max_len,
}
-static void extras_check_and_sort(afl_state_t *afl, u32 min_len, u32 max_len, u8 *dir) {
+static void extras_check_and_sort(afl_state_t *afl, u32 min_len, u32 max_len,
+ u8 *dir) {
u8 val_bufs[2][STRINGIFY_VAL_SIZE_MAX];
- if (!afl->extras_cnt) {
- FATAL("No usable files in '%s'", dir); }
+ if (!afl->extras_cnt) { FATAL("No usable files in '%s'", dir); }
qsort(afl->extras, afl->extras_cnt, sizeof(struct extra_data),
compare_extras_len);
@@ -257,8 +257,6 @@ static void extras_check_and_sort(afl_state_t *afl, u32 min_len, u32 max_len, u8
}
-
-
/* Read extras from the extras directory and sort them by size. */
void load_extras(afl_state_t *afl, u8 *dir) {
@@ -379,21 +377,17 @@ void add_extra(afl_state_t *afl, u8 *mem, u32 len) {
if (len > MAX_DICT_FILE) {
- FATAL(
- "Extra '%.*s' is too big (%s, limit is %s)", (int)len, mem,
+ FATAL("Extra '%.*s' is too big (%s, limit is %s)", (int)len, mem,
stringify_mem_size(val_bufs[0], sizeof(val_bufs[0]), len),
stringify_mem_size(val_bufs[1], sizeof(val_bufs[1]), MAX_DICT_FILE));
} else if (len > 32) {
- WARNF(
- "Extra '%.*s' is pretty large, consider trimming.", (int)len, mem
- );
+ WARNF("Extra '%.*s' is pretty large, consider trimming.", (int)len, mem);
}
- afl->extras =
- afl_realloc((void **)&afl->extras,
+ afl->extras = afl_realloc((void **)&afl->extras,
(afl->extras_cnt + 1) * sizeof(struct extra_data));
if (unlikely(!afl->extras)) { PFATAL("alloc"); }

code-format, changelog