| 66 | } |
| 67 | |
| 68 | DEFINE_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 | } |
nothing calls this directly
no test coverage detected