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