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

Function LLVMFuzzerTestOneInput

fuzzers/fuzz_json_encoder.cpp:6–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected