tidied up env suggestions

This commit is contained in:
Dominik Maier
2021-02-24 18:07:08 +01:00
parent 564f491566
commit cc7c651dc9
2 changed files with 6 additions and 1 deletions

View File

@ -36,6 +36,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
- switched to an even faster RNG - switched to an even faster RNG
- added hghwng's patch for faster trace map analysis - added hghwng's patch for faster trace map analysis
- added minimum SYNC_TIME to include/config.h (30 minutes default) - added minimum SYNC_TIME to include/config.h (30 minutes default)
- printing suggestions for mistyped `AFL_` env variables
- afl-cc - afl-cc
- allow instrumenting LLVMFuzzerTestOneInput - allow instrumenting LLVMFuzzerTestOneInput
- fixed endless loop for allow/blocklist lines starting with a - fixed endless loop for allow/blocklist lines starting with a
@ -68,7 +69,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
- set AFL_IGNORE_UNKNOWN_ENVS to not warn on unknown AFL_... env vars. - set AFL_IGNORE_UNKNOWN_ENVS to not warn on unknown AFL_... env vars.
- added dummy Makefile to instrumentation/ - added dummy Makefile to instrumentation/
- Updated utils/afl_frida to be 5% faster, 7% on x86_x64 - Updated utils/afl_frida to be 5% faster, 7% on x86_x64
- Added AFL_KILL_SIGNAL env variable (thanks @v-p-b) - Added `AFL_KILL_SIGNAL` env variable (thanks @v-p-b)
- @Edznux added a nice documentation on how to use rpc.statsd with - @Edznux added a nice documentation on how to use rpc.statsd with
afl++ in docs/rpc_statsd.md, thanks! afl++ in docs/rpc_statsd.md, thanks!

View File

@ -529,6 +529,8 @@ static int string_distance_levenshtein(char *s1, char *s2) {
s1len = strlen(s1); s1len = strlen(s1);
s2len = strlen(s2); s2len = strlen(s2);
unsigned int column[s1len + 1]; unsigned int column[s1len + 1];
column[s1len] = 1;
for (y = 1; y <= s1len; y++) for (y = 1; y <= s1len; y++)
column[y] = y; column[y] = y;
for (x = 1; x <= s2len; x++) { for (x = 1; x <= s2len; x++) {
@ -608,6 +610,8 @@ void print_suggested_envs(char *mispelled_env) {
}; };
ck_free(reduced);
} }
if (found) goto cleanup; if (found) goto cleanup;