From 19d1ad3887feb53e7b03e46c011322353f939eb7 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 11 Oct 2015 09:49:38 +0100 Subject: [PATCH] fuzzterm: Try enabling deferred implementation under afl-clang-fast --- fuzzterm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fuzzterm.c b/fuzzterm.c index f1dcb1ab..a4755d8f 100644 --- a/fuzzterm.c +++ b/fuzzterm.c @@ -23,6 +23,10 @@ int main(int argc, char **argv) term = term_init(conf, &ucsdata, NULL); term_size(term, 24, 80, 10000); term->ldisc = NULL; + /* Tell american fuzzy lop that this is a good place to fork. */ +#ifdef __AFL_HAVE_MANUAL_CONTROL + __AFL_INIT(); +#endif while (!feof(stdin)) { len = fread(blk, 1, sizeof(blk), stdin); term_data(term, 0, blk, len); -- 2.45.2