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.

◆ 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(), DecodeCHDLC(), DecodeErfDag(), DecodeErfDagThreadDeinit(), DecodeErfDagThreadInit(), DecodeERSPAN(), DecodeERSPANTypeI(), DecodeESP(), DecodeEthernet(), DecodeGRE(), DecodeICMPV4(), DecodeICMPV6(), DecodeIPV4(), DecodeIPV6(), DecodeMPLS(), DecodeNSH(), DecodeNull(), DecodePfring(), DecodePfringThreadDeinit(), DecodePfringThreadInit(), DecodePPP(), DecodePPPOEDiscovery(), DecodePPPOESession(), DecodeRaw(), DecodeRegisterPerfCounters(), DecodeSCTP(), DecodeSll(), DecodeTCP(), DecodeThreadVarsAlloc(), DecodeThreadVarsFree(), DecodeUDP(), DecodeUpdatePacketCounters(), DecodeVLAN(), DecodeVNTag(), Defrag(), DetectEngineThreadCtxInit(), DetectEngineThreadCtxInitForReload(), ExceptionPolicySetStatsCounters(), FlowDisableFlowManagerThread(), FlowHandlePacket(), NapatechDecode(), NapatechDecodeThreadDeinit(), NapatechDecodeThreadInit(), NapatechStreamThreadInit(), NoAFXDPSupportExit(), NoDPDKSupportExit(), NoNFLOGSupportExit(), NoWinDivertSupportExit(), PacketDecodeFinalize(), PacketUpdateEngineEventCounters(), ReceiveErfDagLoop(), ReceiveErfDagThreadExitStats(), ReceiveErfDagThreadInit(), ReceiveErfFileLoop(), ReceiveErfFileThreadInit(), ReceivePfringLoop(), RejectSendIPv4ICMP(), RejectSendIPv4TCP(), RejectSendIPv6ICMP(), RejectSendIPv6TCP(), RunModeErfFileAutoFp(), RunModeErfFileSingle(), RunModeFilePcapSingle(), RunModeSetIPSWorker(), StatsAddUI64(), StatsDecr(), StatsGetLocalCounterValue(), StatsIncr(), StatsSetUI64(), StatsSyncCounters(), StatsSyncCountersIfSignalled(), StreamTcpGetSegment(), StreamTcpReassembleAppLayer(), StreamTcpReassembleInitThreadCtx(), StreamTcpThreadInit(), StreamTcpUTAddPayload(), StreamTcpUTAddSegmentWithByte(), StreamTcpUTAddSegmentWithPayload(), 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(), TmThreadTestThreadUnPaused(), TmThreadWaitForFlag(), TmThreadWaitOnThreadInit(), and TmThreadWaitOnThreadRunning().