| 7 | using namespace jsoncons::bson; |
| 8 | |
| 9 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, std::size_t size) |
| 10 | { |
| 11 | std::string s(reinterpret_cast<const char*>(data), size); |
| 12 | std::istringstream is(s); |
| 13 | std::vector<uint8_t> s1; |
| 14 | bson_bytes_encoder encoder(s1); |
| 15 | bson_stream_reader reader(is, encoder); |
| 16 | |
| 17 | std::error_code ec; |
| 18 | reader.read(ec); |
| 19 | |
| 20 | return 0; |
| 21 | } |