Coverage Report

Created: 2026-06-07 06:33

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/poco/JSON/fuzzing/JsonParse.cpp
Line
Count
Source
1
#include "Poco/JSON/Parser.h"
2
3
using namespace Poco;
4
using namespace Poco::JSON;
5
6
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
7
4.23k
{
8
4.23k
  std::string json(reinterpret_cast<const char*>(data), size);
9
4.23k
  Parser parser;
10
4.23k
  Dynamic::Var result;
11
12
4.23k
  try
13
4.23k
  {
14
4.23k
    result = parser.parse(json);
15
4.23k
  }
16
4.23k
  catch (Exception& e)
17
4.23k
  {
18
4.16k
    return 0;
19
4.16k
  }
20
4.23k
  catch (const std::exception& e)
21
4.23k
  {
22
0
    return 0;
23
0
  }
24
25
78
  return 0;
26
4.23k
}