| 8 | using namespace ubjson; |
| 9 | |
| 10 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, std::size_t size) |
| 11 | { |
| 12 | std::string s(reinterpret_cast<const char*>(data), size); |
| 13 | std::istringstream is(s); |
| 14 | |
| 15 | default_json_visitor visitor; |
| 16 | |
| 17 | ubjson_stream_reader reader(is, visitor); |
| 18 | std::error_code ec; |
| 19 | reader.read(ec); |
| 20 | |
| 21 | return 0; |
| 22 | } |