MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / LLVMFuzzerTestOneInput

Function LLVMFuzzerTestOneInput

fuzzers/fuzz_csv_encoder.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace jsoncons::csv;
7
8extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, std::size_t size)
9{
10 std::string s(reinterpret_cast<const char*>(data), size);
11 std::istringstream is(s);
12
13 std::string s2;
14 csv_string_encoder visitor(s2);
15 csv_stream_reader reader(is, visitor);
16 std::error_code ec;
17 reader.read(ec);
18
19 return 0;
20}

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected