suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "app-layer-detect-proto.h"
#include "defrag.h"
#include "tm-modules.h"
#include "tm-threads.h"
#include "source-pcap-file.h"
#include "util-unittest-helper.h"
#include "conf-yaml-loader.h"
#include "util-time.h"
#include "util-conf.h"
Go to the source code of this file.
Functions | |
int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
SC_ATOMIC_EXTERN (unsigned int, engine_stage) | |
Variables | |
SCInstance | surifuzz |
const char | configNoChecksum [] |
ThreadVars * | tv |
DecodeThreadVars * | dtv |
Definition in file fuzz_decodepcapfile.c.
int LLVMFuzzerTestOneInput | ( | const uint8_t * | data, |
size_t | size | ||
) |
Definition at line 36 of file fuzz_decodepcapfile.c.
References configNoChecksum, ConfigSetLogDirectory(), dtv, InitGlobal(), max_pending_packets, PacketPoolInit(), PcapFileGlobalInit(), TmModule_::PktAcqLoop, PostConfLoadedSetup(), RUNMODE_PCAP_FILE, RunModeInitializeThreadSettings(), SC_ATOMIC_SET, SCConfYamlLoadString(), SCRunmodeSet(), setenv(), TmSlot_::slot_next, suricata_ctl_flags, SURICATA_RUNTIME, surifuzz, TestHelperBufferToFile(), TmModule_::ThreadDeinit, TmModule_::ThreadInit, TimeModeSetOffline(), TM_ECODE_OK, ThreadVars_::tm_slots, TMM_DECODEPCAPFILE, tmm_modules, TMM_RECEIVEPCAPFILE, TmModuleGetByName(), TmSlotSetFuncAppend(), TmThreadCreatePacketHandler(), and tv.
SC_ATOMIC_EXTERN | ( | unsigned int | , |
engine_stage | |||
) |
const char configNoChecksum[] |
Definition at line 24 of file fuzz_decodepcapfile.c.
Referenced by LLVMFuzzerTestOneInput().
DecodeThreadVars* dtv |
Definition at line 33 of file fuzz_decodepcapfile.c.
Referenced by __attribute__(), DecodeARP(), DecodeCHDLC(), DecodeErfDag(), DecodeErfDagThreadInit(), DecodeERSPAN(), DecodeERSPANTypeI(), DecodeESP(), DecodeEthernet(), DecodeGeneve(), DecodeGRE(), DecodeICMPV4(), DecodeICMPV6(), DecodeIPV4(), DecodeIPV6(), DecodeMPLS(), DecodeNSH(), DecodeNull(), DecodePPP(), DecodePPPOEDiscovery(), DecodePPPOESession(), DecodeRaw(), DecodeRegisterPerfCounters(), DecodeSCTP(), DecodeSll(), DecodeSll2(), DecodeTCP(), DecodeTEMPLATE(), DecodeTeredo(), DecodeThreadVarsAlloc(), DecodeThreadVarsFree(), DecodeUDP(), DecodeUpdatePacketCounters(), DecodeVNTag(), DecodeVXLAN(), Defrag(), DefragGetTrackerFromHash(), FlowHandlePacketUpdate(), LLVMFuzzerTestOneInput(), PacketDecodeFinalize(), PacketTunnelPktSetup(), PacketUpdateEngineEventCounters(), ReceiveErfDagLoop(), UTHBuildPacketFromEth(), UTHMatchPackets(), UTHMatchPacketsWithResults(), UTHPacketMatchSig(), and UTHPacketMatchSigMpm().
SCInstance surifuzz |
Definition at line 22 of file fuzz_decodepcapfile.c.
Referenced by LLVMFuzzerTestOneInput().
ThreadVars* tv |
Definition at line 32 of file fuzz_decodepcapfile.c.
Referenced by __attribute__(), AffinityGetNextCPU(), AppLayerHandleTCPData(), AppLayerHandleUdp(), AppLayerIncAllocErrorCounter(), AppLayerIncGapErrorCounter(), AppLayerIncInternalErrorCounter(), AppLayerIncParserErrorCounter(), AppLayerIncTxCounter(), AppLayerParserParse(), AppLayerRegisterThreadCounters(), CaptureStatsSetup(), CaptureStatsUpdate(), DecodeARP(), DecodeCHDLC(), DecodeErfDag(), DecodeErfDagThreadDeinit(), DecodeErfDagThreadInit(), DecodeERSPAN(), DecodeERSPANTypeI(), DecodeESP(), DecodeEthernet(), DecodeGeneve(), DecodeGRE(), DecodeICMPV4(), DecodeICMPV6(), DecodeIPV4(), DecodeIPV6(), DecodeMPLS(), DecodeNSH(), DecodeNull(), DecodePPP(), DecodePPPOEDiscovery(), DecodePPPOESession(), DecodeRaw(), DecodeRegisterPerfCounters(), DecodeSCTP(), DecodeSll(), DecodeSll2(), DecodeTCP(), DecodeTEMPLATE(), DecodeTeredo(), DecodeThreadVarsAlloc(), DecodeThreadVarsFree(), DecodeUDP(), DecodeUpdatePacketCounters(), DecodeVNTag(), DecodeVXLAN(), Defrag(), DefragGetTrackerFromHash(), Detect(), DetectEngineThreadCtxInit(), DetectEngineThreadCtxInitForReload(), DetectPreFlow(), DetectPreStream(), ExceptionPolicySetStatsCounters(), FlowDisableFlowManagerThread(), FlowDisableFlowRecyclerThread(), FlowGetFlowFromHash(), FlowHandlePacket(), FlowHandlePacketUpdate(), FlowInit(), IPOnlyMatchPacket(), LLVMFuzzerTestOneInput(), LogHttpLogger(), LogTcpDataLogger(), LuaStateGetThreadVars(), LuaStateSetThreadVars(), MacSetAddWithCtr(), main(), NoAFXDPSupportExit(), NoDPDKSupportExit(), NoNFLOGSupportExit(), NoWinDivertSupportExit(), OutputFiledataLogFfc(), OutputFiledataLogThreadDeinit(), OutputFiledataLogThreadInit(), OutputFileLogFfc(), OutputFileLogThreadDeinit(), OutputFileLogThreadInit(), OutputFlowLog(), OutputFlowLogThreadDeinit(), OutputFlowLogThreadInit(), OutputJsonBuilderBuffer(), OutputJsonLogFlush(), OutputLoggerFlush(), OutputLoggerLog(), OutputLoggerThreadDeinit(), OutputLoggerThreadInit(), OutputStatsLog(), PacketDecodeFinalize(), PacketTunnelPktSetup(), PacketUpdateEngineEventCounters(), ReceiveErfDagLoop(), ReceiveErfDagThreadExitStats(), ReceiveErfDagThreadInit(), ReceiveErfFileLoop(), ReceiveErfFileThreadInit(), RejectSendIPv4ICMP(), RejectSendIPv4TCP(), RejectSendIPv6ICMP(), RejectSendIPv6TCP(), RunModeErfFileAutoFp(), RunModeErfFileSingle(), RunModeFilePcapSingle(), RunModeSetIPSWorker(), SCEveRunCallbacks(), SCFlowRunFinishCallbacks(), SCFlowRunInitCallbacks(), SCFlowRunUpdateCallbacks(), SCRunModeLibCreateThreadVars(), SCRunModeLibSpawnWorker(), SCThreadRunInitCallbacks(), SigMatchSignatures(), StatsAddUI64(), StatsDecr(), StatsGetLocalCounterValue(), StatsIncr(), StatsRegisterAvgCounter(), StatsRegisterCounter(), StatsRegisterMaxCounter(), StatsSetUI64(), StatsSetupPrivate(), StatsSyncCounters(), StatsSyncCountersIfSignalled(), StatsThreadCleanup(), StreamTcp(), StreamTcpDetectLogFlush(), StreamTcpGetSegment(), StreamTcpPacket(), StreamTcpReassembleAppLayer(), StreamTcpReassembleHandleSegment(), StreamTcpReassembleHandleSegmentHandleData(), StreamTcpReassembleInsertSegment(), StreamTcpThreadInit(), StreamTcpUTAddPayload(), StreamTcpUTAddSegmentWithByte(), StreamTcpUTAddSegmentWithPayload(), ThreadAllocStorageById(), ThreadFreeStorage(), ThreadFreeStorageById(), ThreadGetStorageById(), ThreadSetStorageById(), TimeGet(), TimeSetByThread(), TimeSetToCurrentTime(), TmqhInputFlow(), TmqhInputSimpleShutdownHandler(), TmqhOutputFlowHash(), TmqhOutputFlowIPPair(), TmThreadContinueDetectLoaderThreads(), and UTHBuildPacketOfFlows().