MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetFormat

Method GetFormat

apps/fuzzers/Fuzzer/fuzz_decode_msg.cpp:31–38  ·  view source on GitHub ↗

Match the server's wire-type validation, including the negative-type guard.

Source from the content-addressed store, hash-verified

29
30 // Match the server's wire-type validation, including the negative-type guard.
31 NetworkMessageFormatBase* GetFormat(int type) override
32 {
33 if (type < 0 || type >= NMTN)
34 {
35 return nullptr;
36 }
37 return GMsgFormats[type];
38 }
39
40 // Parser-only harness: accept and drop decoded messages, never dispatch.
41 void OnMessage(int from, NetworkMessage* msg, NetworkMessageType type) override {}

Callers 2

LLVMFuzzerTestOneInputFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected