diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-10-19 13:59:38 +0200 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-10-19 13:59:38 +0200 |
commit | 23e69f11075b20c4907ebe902af08dcbb13ec175 (patch) | |
tree | 9bd59c8786c8a81370373484778c0aeb1770d095 /src/afl-fuzz-init.c | |
parent | 77a63d8ccfd4b409c35227e174f1d6e809256e41 (diff) | |
parent | bb8a4d71da8f2b748a78ccc4416df6bffb393d80 (diff) | |
download | afl++-23e69f11075b20c4907ebe902af08dcbb13ec175.tar.gz |
Merge branch 'dev' of github.com:AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r-- | src/afl-fuzz-init.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 0fa8e6ec..f0e1a80d 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -2815,43 +2815,6 @@ void check_binary(afl_state_t *afl, u8 *fname) { } -/* Trim and possibly create a banner for the run. */ - -void fix_up_banner(afl_state_t *afl, u8 *name) { - - if (!afl->use_banner) { - - if (afl->sync_id) { - - afl->use_banner = afl->sync_id; - - } else { - - u8 *trim = strrchr(name, '/'); - if (!trim) { - - afl->use_banner = name; - - } else { - - afl->use_banner = trim + 1; - - } - - } - - } - - if (strlen(afl->use_banner) > 32) { - - u8 *tmp = ck_alloc(36); - sprintf(tmp, "%.32s...", afl->use_banner); - afl->use_banner = tmp; - - } - -} - /* Check if we're on TTY. */ void check_if_tty(afl_state_t *afl) { |