suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "app-layer-detect-proto.h"
#include "flow-util.h"
#include "app-layer-parser.h"
#include "util-unittest-helper.h"
#include "util-byte.h"
#include "conf-yaml-loader.h"
#include "util-conf.h"
#include "rust.h"
Go to the source code of this file.
Macros | |
#define | HEADER_LEN 6 |
Functions | |
int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
int | LLVMFuzzerInitialize (int *argc, char ***argv) |
SC_ATOMIC_EXTERN (unsigned int, engine_stage) | |
Variables | |
AppLayerParserThreadCtx * | alp_tctx = NULL |
const char * | configNoChecksum |
const uint8_t | separator [] = {0x01, 0xD5, 0xCA, 0x7A} |
SCInstance | surifuzz |
AppProto | forceLayer = 0 |
char * | target_suffix = NULL |
Definition in file fuzz_applayerparserparse.c.
#define HEADER_LEN 6 |
Definition at line 18 of file fuzz_applayerparserparse.c.
int LLVMFuzzerInitialize | ( | int * | argc, |
char *** | argv | ||
) |
Definition at line 43 of file fuzz_applayerparserparse.c.
References target_suffix.
int LLVMFuzzerTestOneInput | ( | const uint8_t * | data, |
size_t | size | ||
) |
Definition at line 53 of file fuzz_applayerparserparse.c.
References alp_tctx, Flow_::alparser, Flow_::alproto, ALPROTO_HTTP, ALPROTO_HTTP1, ALPROTO_UNKNOWN, APP_LAYER_PARSER_EOF_TC, APP_LAYER_PARSER_EOF_TS, AppLayerParserParse(), AppLayerParserThreadCtxAlloc(), AppLayerParserTransactionsCleanup(), AppProtoToString(), configNoChecksum, ConfigSetLogDirectory(), Flow_::dp, Flow_::dst, flags, Flow_::flags, FLOW_IPV4, FLOW_SGH_TOCLIENT, FLOW_SGH_TOSERVER, FlowAlloc(), FlowChangeProto(), FlowFree(), FlowGetProtoMapping(), FLOWLOCK_UNLOCK, FLOWLOCK_WRLOCK, forceLayer, g_alproto_max, GlobalsInitPreConfig(), HEADER_LEN, InitGlobal(), PostConfLoadedSetup(), Flow_::proto, Flow_::protoctx, Flow_::protomap, RUNMODE_PCAP_FILE, SC_ATOMIC_SET, SCAppLayerParserStateIssetFlag(), SCConfYamlLoadString(), SCRunmodeSet(), separator, setenv(), Flow_::sp, Flow_::src, StringToAppProto(), SURICATA_RUNTIME, surifuzz, and target_suffix.
SC_ATOMIC_EXTERN | ( | unsigned int | , |
engine_stage | |||
) |
AppLayerParserThreadCtx* alp_tctx = NULL |
Definition at line 23 of file fuzz_applayerparserparse.c.
Referenced by AppLayerParserParse(), and LLVMFuzzerTestOneInput().
|
extern |
Definition at line 1 of file confyaml.c.
Referenced by LLVMFuzzerTestOneInput().
AppProto forceLayer = 0 |
Definition at line 39 of file fuzz_applayerparserparse.c.
Referenced by LLVMFuzzerTestOneInput().
const uint8_t separator[] = {0x01, 0xD5, 0xCA, 0x7A} |
Definition at line 37 of file fuzz_applayerparserparse.c.
Referenced by LLVMFuzzerTestOneInput().
SCInstance surifuzz |
Definition at line 38 of file fuzz_applayerparserparse.c.
Referenced by LLVMFuzzerTestOneInput().
char* target_suffix = NULL |
Definition at line 40 of file fuzz_applayerparserparse.c.
Referenced by LLVMFuzzerInitialize(), and LLVMFuzzerTestOneInput().