honggfuzz  2.2
About: honggfuzz is a security oriented, feedback-driven, evolutionary, easy-to-use fuzzer with powerful analysis options.
  Fossies Dox: honggfuzz-2.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

fuzz.c File Reference
#include "fuzz.h"
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <libgen.h>
#include <math.h>
#include <pthread.h>
#include <signal.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include "arch.h"
#include "honggfuzz.h"
#include "input.h"
#include "libhfcommon/common.h"
#include "libhfcommon/files.h"
#include "libhfcommon/log.h"
#include "libhfcommon/util.h"
#include "mangle.h"
#include "report.h"
#include "sanitizers.h"
#include "socketfuzzer.h"
#include "subproc.h"
Include dependency graph for fuzz.c:

Go to the source code of this file.

Functions

bool fuzz_isTerminating (void)
 
void fuzz_setTerminating (void)
 
bool fuzz_shouldTerminate ()
 
fuzzState_t fuzz_getState (honggfuzz_t *hfuzz)
 
static void fuzz_setDynamicMainState (run_t *run)
 
static void fuzz_minimizeRemoveFiles (run_t *run)
 
static void fuzz_perfFeedback (run_t *run)
 
static bool fuzz_runVerifier (run_t *run)
 
static bool fuzz_fetchInput (run_t *run)
 
static void fuzz_fuzzLoop (run_t *run)
 
static void fuzz_fuzzLoopSocket (run_t *run)
 
static void * fuzz_threadNew (void *arg)
 
void fuzz_threadsStart (honggfuzz_t *hfuzz)
 

Variables

static time_t termTimeStamp = 0
 

Function Documentation

◆ fuzz_fetchInput()

◆ fuzz_fuzzLoop()

◆ fuzz_fuzzLoopSocket()

◆ fuzz_getState()

◆ fuzz_isTerminating()

bool fuzz_isTerminating ( void  )

◆ fuzz_minimizeRemoveFiles()

static void fuzz_minimizeRemoveFiles ( run_t run)
static

◆ fuzz_perfFeedback()

◆ fuzz_runVerifier()

◆ fuzz_setDynamicMainState()

◆ fuzz_setTerminating()

void fuzz_setTerminating ( void  )

Definition at line 69 of file fuzz.c.

References ATOMIC_GET, ATOMIC_SET, and termTimeStamp.

Referenced by fuzz_fuzzLoop(), fuzz_threadNew(), and mainThreadLoop().

◆ fuzz_shouldTerminate()

bool fuzz_shouldTerminate ( )

Definition at line 76 of file fuzz.c.

References ATOMIC_GET, and termTimeStamp.

Referenced by sigHandler().

◆ fuzz_threadNew()

◆ fuzz_threadsStart()

Variable Documentation

◆ termTimeStamp

time_t termTimeStamp = 0
static

Definition at line 60 of file fuzz.c.

Referenced by fuzz_isTerminating(), fuzz_setTerminating(), and fuzz_shouldTerminate().