landsandboat/tools/fuzzer.cpp

19 lines
466 B
C++
Raw Permalink Normal View History

2022-03-27 12:20:43 +03:00
#include <cstddef>
2025-03-16 13:39:22 +00:00
#include <cstdint>
2022-03-27 12:20:43 +03:00
// https://llvm.org/docs/LibFuzzer.html
// https://github.com/google/fuzzing/blob/master/docs/structure-aware-fuzzing.md
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size)
{
// TODO:
2025-03-16 13:39:22 +00:00
// MapSession map_session_data;
// CCharEntity CChar;
2022-03-27 12:20:43 +03:00
2025-03-16 13:39:22 +00:00
// auto packet = CBasicPacket(reinterpret_cast<uint8*>(Data));
2022-03-27 12:20:43 +03:00
2025-03-16 13:39:22 +00:00
// PacketParser[SmallPD_Type](&map_session_data, &CChar, packet);
2022-03-27 12:20:43 +03:00
return 0;
}