suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "app-layer-detect-proto.h"
#include "flow-util.h"
#include "app-layer.h"
#include "util-unittest-helper.h"
#include "conf-yaml-loader.h"
Go to the source code of this file.
Macros | |
#define | HEADER_LEN 6 |
#define | PROTO_DETECT_MAX_LEN 1024 |
Functions | |
int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
SC_ATOMIC_EXTERN (unsigned int, engine_stage) | |
Variables | |
const char * | configNoChecksum |
AppLayerProtoDetectThreadCtx * | alpd_tctx = NULL |
Definition in file fuzz_applayerprotodetectgetproto.c.
#define HEADER_LEN 6 |
Definition at line 17 of file fuzz_applayerprotodetectgetproto.c.
#define PROTO_DETECT_MAX_LEN 1024 |
Definition at line 20 of file fuzz_applayerprotodetectgetproto.c.
int LLVMFuzzerTestOneInput | ( | const uint8_t * | data, |
size_t | size | ||
) |
Definition at line 28 of file fuzz_applayerprotodetectgetproto.c.
References alpd_tctx, AppLayerProtoDetectGetCtxThread(), AppLayerProtoDetectGetProto(), AppLayerSetup(), configNoChecksum, ConfYamlLoadString(), EngineModeSetIDS(), flags, FlowFree(), FlowGetProtoMapping(), HEADER_LEN, InitGlobal(), MpmTableSetup(), Flow_::proto, Flow_::protoctx, Flow_::protomap, RUNMODE_UNITTEST, SC_ATOMIC_SET, SCRunmodeSet(), SpmTableSetup(), SURICATA_RUNTIME, and TestHelperBuildFlow().
SC_ATOMIC_EXTERN | ( | unsigned int | , |
engine_stage | |||
) |
AppLayerProtoDetectThreadCtx* alpd_tctx = NULL |
Definition at line 25 of file fuzz_applayerprotodetectgetproto.c.
Referenced by AppLayerProtoDetectGetCtxThread(), and LLVMFuzzerTestOneInput().
const char* configNoChecksum |
Definition at line 1 of file confyaml.c.
Referenced by LLVMFuzzerTestOneInput().