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

Function LLVMFuzzerTestOneInput

fuzzers/fuzz_cbor_parser_max.cpp:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace cbor;
10
11extern "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
16 default_json_visitor visitor;
17
18 cbor_stream_reader reader(is, visitor);
19 std::error_code ec;
20 reader.read(ec);
21
22 return 0;
23}

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected