suricata
fuzz_decodepcapfile.c File Reference
#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"
Include dependency graph for fuzz_decodepcapfile.c:

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 []
 
ThreadVarstv
 
DecodeThreadVarsdtv
 

Detailed Description

Author
Philippe Antoine conta.nosp@m.ct@c.nosp@m.atena.nosp@m.cybe.nosp@m.r.fr fuzz target for TMM_DECODEPCAPFILE

Definition in file fuzz_decodepcapfile.c.

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t *  data,
size_t  size 
)

Definition at line 36 of file fuzz_decodepcapfile.c.

◆ SC_ATOMIC_EXTERN()

SC_ATOMIC_EXTERN ( unsigned int  ,
engine_stage   
)

Variable Documentation

◆ configNoChecksum

const char configNoChecksum[]
Initial value:
= "\
%YAML 1.1\n\
---\n\
pcap-file:\n\
\n\
checksum-checks: no\n\
"

Definition at line 24 of file fuzz_decodepcapfile.c.

Referenced by LLVMFuzzerTestOneInput().

◆ dtv

◆ surifuzz

SCInstance surifuzz

Definition at line 22 of file fuzz_decodepcapfile.c.

◆ tv

Definition at line 32 of file fuzz_decodepcapfile.c.

Referenced by AppLayerIncAllocErrorCounter(), AppLayerIncGapErrorCounter(), AppLayerIncInternalErrorCounter(), AppLayerIncParserErrorCounter(), AppLayerIncTxCounter(), CaptureStatsSetup(), CaptureStatsUpdate(), DecodeARP(), DecodeCHDLC(), DecodeErfDag(), DecodeErfDagThreadDeinit(), DecodeErfDagThreadInit(), DecodeERSPAN(), DecodeERSPANTypeI(), DecodeESP(), DecodeEthernet(), DecodeGRE(), DecodeICMPV4(), DecodeIPV4(), DecodeIPV6(), DecodeMPLS(), DecodeNSH(), DecodeNull(), DecodePPP(), DecodePPPOEDiscovery(), DecodePPPOESession(), DecodeRaw(), DecodeRegisterPerfCounters(), DecodeSCTP(), DecodeSll(), DecodeTCP(), DecodeThreadVarsAlloc(), DecodeThreadVarsFree(), DecodeUDP(), DecodeUpdatePacketCounters(), DecodeVLAN(), DecodeVNTag(), DetectEngineThreadCtxInit(), DetectEngineThreadCtxInitForReload(), ExceptionPolicySetStatsCounters(), FlowDisableFlowManagerThread(), FlowHandlePacket(), LuaStateGetThreadVars(), LuaStateSetThreadVars(), NoAFXDPSupportExit(), NoDPDKSupportExit(), NoNFLOGSupportExit(), NoWinDivertSupportExit(), OutputJsonBuilderBuffer(), PacketDecodeFinalize(), PacketUpdateEngineEventCounters(), ReceiveErfDagLoop(), ReceiveErfDagThreadExitStats(), ReceiveErfDagThreadInit(), ReceiveErfFileLoop(), ReceiveErfFileThreadInit(), RejectSendIPv4ICMP(), RejectSendIPv4TCP(), RejectSendIPv6ICMP(), RejectSendIPv6TCP(), RunModeErfFileAutoFp(), RunModeErfFileSingle(), RunModeFilePcapSingle(), RunModeSetIPSWorker(), StatsAddUI64(), StatsDecr(), StatsGetLocalCounterValue(), StatsIncr(), StatsSetUI64(), StatsSyncCounters(), StatsSyncCountersIfSignalled(), StreamTcpGetSegment(), StreamTcpReassembleAppLayer(), StreamTcpThreadInit(), StreamTcpUTAddPayload(), StreamTcpUTAddSegmentWithByte(), StreamTcpUTAddSegmentWithPayload(), ThreadAllocStorageById(), ThreadFreeStorage(), ThreadFreeStorageById(), ThreadGetStorageById(), ThreadSetStorageById(), TimeGet(), TimeSetToCurrentTime(), TmqhInputFlow(), TmqhInputSimpleShutdownHandler(), TmqhOutputFlowHash(), TmqhOutputFlowIPPair(), TmSlotSetFuncAppend(), TmThreadAppend(), TmThreadCheckThreadState(), TmThreadClearThreadsFamily(), TmThreadContinue(), TmThreadContinueDetectLoaderThreads(), TmThreadContinueThreads(), TmThreadCountThreadsByTmmFlags(), TmThreadCreate(), TmThreadCreateCmdThreadByName(), TmThreadCreateMgmtThread(), TmThreadCreateMgmtThreadByName(), TmThreadCreatePacketHandler(), TmThreadDisableReceiveThreads(), TmThreadInitMC(), TmThreadKillThreadsFamily(), TmThreadsCheckFlag(), TmThreadSetCPU(), TmThreadSetCPUAffinity(), TmThreadSetGroupName(), TmThreadSetPrio(), TmThreadSetThreadPriority(), TmThreadSetupOptions(), TmThreadSpawn(), TmThreadsSetFlag(), TmThreadsSlotVarRun(), TmThreadsUnsetFlag(), TmThreadsWaitForUnpause(), TmThreadWaitForFlag(), and TmThreadWaitOnThreadInit().