Coverage Report

Created: 2026-12-01 06:32

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
32.9k
{
8
32.9k
  std::string input(reinterpret_cast<const char*>(data), size);
9
32.9k
  try{
10
32.9k
    json val = json::parse(input);
11
32.9k
  }
12
32.9k
  catch(const jsoncons::ser_error&) {}
13
14
32.9k
  return 0;
15
32.9k
}