| 22 | #define kMaxInputLength 1024 |
| 23 | |
| 24 | extern "C" int |
| 25 | LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) |
| 26 | { |
| 27 | if (size < kMinInputLength || size > kMaxInputLength){ |
| 28 | return 1; |
| 29 | } |
| 30 | |
| 31 | std::string error; |
| 32 | JsonContextBody jsondata; |
| 33 | std::string input_data((char *)data,size); |
| 34 | json2pb::JsonToProtoMessage(input_data, &jsondata, &error); |
| 35 | |
| 36 | return 0; |
| 37 | } |
nothing calls this directly
no test coverage detected