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

Function LLVMFuzzerTestOneInput

fuzzers/fuzz_msgpack_encoder.cpp:10–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected