]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - fuzzterm.c
fuzzterm: Try enabling deferred implementation under afl-clang-fast
[PuTTY.git] / 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);