Coverage Report

Created: 2025-11-06 06:54

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
6.13k
{
8
6.13k
  std::string json(reinterpret_cast<const char*>(data), size);
9
6.13k
  Parser parser;
10
6.13k
  Dynamic::Var result;
11
12
6.13k
  try
13
6.13k
  {
14
6.13k
    result = parser.parse(json);
15
6.13k
  }
16
6.13k
  catch (Exception& e)
17
6.13k
  {
18
6.05k
    return 0;
19
6.05k
  }
20
6.13k
  catch (const std::exception& e)
21
6.13k
  {
22
0
    return 0;
23
0
  }
24
25
79
  return 0;
26
6.13k
}