MCPcopy Create free account
hub / github.com/catboost/catboost / DEFINE_BINARY_PROTO_FUZZER

Function DEFINE_BINARY_PROTO_FUZZER

library/cpp/blockcodecs/fuzz/main.cpp:68–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68DEFINE_BINARY_PROTO_FUZZER(const TPackUnpackCase& case_) {
69 try {
70 if (!case_.GetCodecName()) {
71 DoOnlyDecode(case_);
72 return;
73 }
74
75 ValidateBufferSize(case_.GetBufferLength());
76 if (case_.GetPacked()) {
77 DoDecodeEncode(case_);
78 } else {
79 DoEncodeDecode(case_);
80 }
81 } catch (const std::exception&) {
82 }
83}

Callers

nothing calls this directly

Calls 4

DoOnlyDecodeFunction · 0.85
ValidateBufferSizeFunction · 0.85
DoDecodeEncodeFunction · 0.85
DoEncodeDecodeFunction · 0.85

Tested by

no test coverage detected