| 7 | |
| 8 | using namespace jsoncons; |
| 9 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, std::size_t size) |
| 10 | { |
| 11 | std::string input(reinterpret_cast<const char*>(data), size); |
| 12 | json_decoder<ojson> decoder; |
| 13 | auto options = csv::csv_options{} |
| 14 | .assume_header(true) |
| 15 | .mapping_kind(csv::csv_mapping_kind::n_rows); |
| 16 | try { |
| 17 | csv::csv_string_reader reader1(input, decoder, options); |
| 18 | reader1.read(); |
| 19 | } |
| 20 | catch (jsoncons::ser_error e) {} |
| 21 | catch (jsoncons::json_runtime_error<std::runtime_error> e) {} |
| 22 | catch (json_runtime_error<std::invalid_argument> e3) {} |
| 23 | return 0; |
| 24 | } |
nothing calls this directly
no test coverage detected