Apache HTTPD
Macros | Functions | Variables
xml_parse_fuzzer.c File Reference
#include <assert.h>
#include <stdint.h>
#include "expat.h"
#include "siphash.h"

Go to the source code of this file.

Macros

#define xstr(s)   str(s)
 
#define str(s)   #s
 

Functions

static void XMLCALL start (void *userData, const XML_Char *name, const XML_Char **atts)
 
static void XMLCALL end (void *userData, const XML_Char *name)
 
static void XMLCALL may_stop_character_handler (void *userData, const XML_Char *s, int len)
 
static void ParseOneInput (XML_Parser p, const uint8_t *data, size_t size)
 
int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 

Variables

static unsigned char hash_key [16] = "FUZZING IS FUN!"
 

Macro Definition Documentation

◆ str

#define str (   s)    #s

Definition at line 26 of file xml_parse_fuzzer.c.

◆ xstr

#define xstr (   s)    str(s)

Definition at line 25 of file xml_parse_fuzzer.c.

Function Documentation

◆ end()

static void XMLCALL end ( void *  userData,
const XML_Char name 
)
static

Definition at line 45 of file xml_parse_fuzzer.c.

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t data,
size_t  size 
)

Definition at line 79 of file xml_parse_fuzzer.c.

◆ may_stop_character_handler()

static void XMLCALL may_stop_character_handler ( void *  userData,
const XML_Char s,
int  len 
)
static

Definition at line 51 of file xml_parse_fuzzer.c.

◆ ParseOneInput()

static void ParseOneInput ( XML_Parser  p,
const uint8_t data,
size_t  size 
)
static

Definition at line 59 of file xml_parse_fuzzer.c.

◆ start()

static void XMLCALL start ( void *  userData,
const XML_Char name,
const XML_Char **  atts 
)
static

Definition at line 39 of file xml_parse_fuzzer.c.

Variable Documentation

◆ hash_key

unsigned char hash_key[16] = "FUZZING IS FUN!"
static

Definition at line 36 of file xml_parse_fuzzer.c.