Coverage Report

Created: 2025-10-10 07:03

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/jsoncons/fuzzers/fuzz_parse.cpp
Line
Count
Source
1
#include <jsoncons/json_parser.hpp>
2
#include <jsoncons/json.hpp>
3
4
using namespace jsoncons;
5
6
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, std::size_t size) 
7
17.1k
{
8
17.1k
  std::string input(reinterpret_cast<const char*>(data), size);
9
17.1k
  try{
10
17.1k
    json val = json::parse(input);
11
17.1k
  }
12
17.1k
  catch(const jsoncons::ser_error&) {}
13
14
17.1k
  return 0;
15
17.1k
}