Coverage Report

Created: 2026-01-17 06:22

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/jsoncons/fuzzers/fuzz_msgpack_parser_max.cpp
Line
Count
Source
1
#include <jsoncons_ext/msgpack/msgpack.hpp>
2
#include <jsoncons_ext/msgpack/msgpack_reader.hpp>
3
4
#include <jsoncons/json.hpp>
5
6
#include <sstream>
7
8
using namespace jsoncons;
9
using namespace msgpack;
10
11
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, std::size_t size)
12
34.6k
{
13
34.6k
    std::string s(reinterpret_cast<const char*>(data), size);
14
34.6k
    std::istringstream is(s);
15
16
34.6k
    default_json_visitor visitor;
17
18
34.6k
    msgpack_stream_reader reader(is, visitor);
19
34.6k
    std::error_code ec;
20
34.6k
    reader.read(ec);
21
22
34.6k
    return 0;
23
34.6k
}