Commit beb7a4e9 authored by root's avatar root
Browse files

AFL instrumentation

parent 5428fa2a
Loading
Loading
Loading
Loading
+3
Changes for src/main.c: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1118,6 +1118,9 @@ main_scan(struct Masscan *masscan)
     * hundreds of subranges. This scans through them faster. */
    picker = rangelist_pick2_create(&masscan->targets);

#ifdef __AFL_HAVE_MANUAL_CONTROL
  __AFL_INIT();
#endif

    /*
     * Start scanning threats for each adapter
+3 −3
Changes for src/pixie-threads.c: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -183,13 +183,13 @@ pixie_begin_thread(
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__kFreeBSD__) || defined(__OpenBSD__)

    typedef void *(*PTHREADFUNC)(void*);
    pthread_t thread_id;
    return (size_t)pthread_create(
    pthread_t thread_id = 0;
    (size_t)pthread_create(
                          &thread_id,
                          NULL,
                          (PTHREADFUNC)worker_thread,
                          worker_data);

    return (size_t)thread_id;
#else
#error pixie_begin_thread undefined
#endif