Skip to content

Commit

Permalink
Fix fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
clementperon committed Oct 5, 2024
1 parent c5dfc41 commit 3589f65
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions Tests/Fuzzers/FuzzTarget.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <PcapFileDevice.h>
#include <Packet.h>
#include <Logger.h>
#include <pcapplusplus/PcapFileDevice.h>
#include <pcapplusplus/Packet.h>
#include <pcapplusplus/Logger.h>
#include "DumpToFile.h"
#include "ReadParsedPacket.h"

Expand Down
6 changes: 3 additions & 3 deletions Tests/Fuzzers/FuzzWriter.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <functional>
#include <Packet.h>
#include <PcapFileDevice.h>
#include <pcapplusplus/Logger.h>
#include <pcapplusplus/Packet.h>
#include <pcapplusplus/PcapFileDevice.h>

#include "Logger.h"
#include "DumpToFile.h"

static std::string tmpName;
Expand Down
38 changes: 19 additions & 19 deletions Tests/Fuzzers/ReadParsedPacket.h
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#pragma once

#include <Packet.h>
#include <IPv4Layer.h>
#include <TelnetLayer.h>
#include <BgpLayer.h>
#include <DhcpLayer.h>
#include <DhcpV6Layer.h>
#include <DnsLayer.h>
#include <IcmpLayer.h>
#include <NtpLayer.h>
#include <SSLLayer.h>
#include <SSLHandshake.h>
#include <TcpLayer.h>
#include <SdpLayer.h>
#include <VrrpLayer.h>
#include <Sll2Layer.h>
#include <FtpLayer.h>
#include <GreLayer.h>
#include <GtpLayer.h>
#include <SomeIpSdLayer.h>
#include <pcapplusplus/Packet.h>
#include <pcapplusplus/IPv4Layer.h>
#include <pcapplusplus/TelnetLayer.h>
#include <pcapplusplus/BgpLayer.h>
#include <pcapplusplus/DhcpLayer.h>
#include <pcapplusplus/DhcpV6Layer.h>
#include <pcapplusplus/DnsLayer.h>
#include <pcapplusplus/IcmpLayer.h>
#include <pcapplusplus/NtpLayer.h>
#include <pcapplusplus/SSLLayer.h>
#include <pcapplusplus/SSLHandshake.h>
#include <pcapplusplus/TcpLayer.h>
#include <pcapplusplus/SdpLayer.h>
#include <pcapplusplus/VrrpLayer.h>
#include <pcapplusplus/Sll2Layer.h>
#include <pcapplusplus/FtpLayer.h>
#include <pcapplusplus/GreLayer.h>
#include <pcapplusplus/GtpLayer.h>
#include <pcapplusplus/SomeIpSdLayer.h>

// Call some pcpp::Packet methods that are not invoked from general virtual methods
// as `pcpp::Packet::toString` or `pcpp::Packet::computeCalculateFields` to trigger possible crashes.
Expand Down

0 comments on commit 3589f65

Please sign in to comment.