The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions | Variables
fuzzer.c File Reference

Functions to fuzz protocol decoding. More...

#include <freeradius-devel/util/dl.h>
#include <freeradius-devel/util/conf.h>
#include <freeradius-devel/util/dict.h>
#include <freeradius-devel/util/atexit.h>
#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/util/strerror.h>
#include <freeradius-devel/io/test_point.h>
+ Include dependency graph for fuzzer.c:

Go to the source code of this file.

Functions

static void exitHandler (void)
 
static fr_dict_protocol_tfuzzer_dict_init (void *dl_handle, char const *proto)
 
int LLVMFuzzerInitialize (int *argc, char ***argv)
 
int LLVMFuzzerTestOneInput (const uint8_t *buf, size_t len)
 

Variables

static fr_dict_tdict = NULL
 
static dl_tdl = NULL
 
static dl_loader_tdl_loader
 
static fr_dict_protocol_tdl_proto
 
static bool init = false
 
fr_test_point_proto_decode_t XX_PROTOCOL_XX_tp_decode_proto
 

Detailed Description

Functions to fuzz protocol decoding.

Id
0baa119684f866010d15ae1a0c487a5d6f263c2f

Definition in file fuzzer.c.

Function Documentation

◆ exitHandler()

static void exitHandler ( void  )
static

Definition at line 53 of file fuzzer.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fuzzer_dict_init()

static fr_dict_protocol_t* fuzzer_dict_init ( void *  dl_handle,
char const *  proto 
)
inlinestatic

Definition at line 73 of file fuzzer.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LLVMFuzzerInitialize()

int LLVMFuzzerInitialize ( int *  argc,
char ***  argv 
)

Definition at line 89 of file fuzzer.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t buf,
size_t  len 
)

Definition at line 244 of file fuzzer.c.

+ Here is the call graph for this function:

Variable Documentation

◆ dict

fr_dict_t* dict = NULL
static

Definition at line 46 of file fuzzer.c.

◆ dl

dl_t* dl = NULL
static

Definition at line 42 of file fuzzer.c.

◆ dl_loader

dl_loader_t* dl_loader
static

Definition at line 43 of file fuzzer.c.

◆ dl_proto

fr_dict_protocol_t* dl_proto
static

Definition at line 44 of file fuzzer.c.

◆ init

bool init = false
static

Definition at line 41 of file fuzzer.c.

◆ XX_PROTOCOL_XX_tp_decode_proto

fr_test_point_proto_decode_t XX_PROTOCOL_XX_tp_decode_proto
extern