Coverage Report

Created: 2025-12-29 07:00

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/mosquitto/fuzzing/broker/broker_fuzz_read_handle.cpp
Line
Count
Source
1
/*
2
Copyright (c) 2023 Cedalo GmbH
3
4
All rights reserved. This program and the accompanying materials
5
are made available under the terms of the Eclipse Public License 2.0
6
and Eclipse Distribution License v1.0 which accompany this distribution.
7
8
The Eclipse Public License is available at
9
   https://www.eclipse.org/legal/epl-2.0/
10
and the Eclipse Distribution License is available at
11
  http://www.eclipse.org/org/documents/edl-v10.php.
12
13
SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
14
15
Contributors:
16
   Roger Light - initial implementation and documentation.
17
*/
18
19
#include "fuzz_packet_read_base.h"
20
21
22
extern "C" int fuzz_packet_read_init(struct mosquitto *context)
23
3.19k
{
24
3.19k
  return 0;
25
3.19k
}
26
27
28
extern "C" void fuzz_packet_read_cleanup(struct mosquitto *context)
29
10.7k
{
30
10.7k
}
31
32
33
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
34
11.4k
{
35
11.4k
  return fuzz_packet_read_base(data, size, handle__packet);
36
11.4k
}