]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
fuzzterm: Try enabling deferred implementation under afl-clang-fast
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 11 Oct 2015 08:49:38 +0000 (09:49 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Wed, 28 Oct 2015 22:08:32 +0000 (22:08 +0000)
fuzzterm.c

index f1dcb1ab698700f44465ffdfe6fa0ffccaa687dc..a4755d8f30633ecebed5a46d2691b22887655508 100644 (file)
@@ -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);