Coverage Report

Created: 2026-07-30 07:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libtorrent/fuzzers/src/resume_data.cpp
Line
Count
Source
1
/*
2
3
Copyright (c) 2019-2020, Arvid Norberg
4
All rights reserved.
5
6
You may use, distribute and modify this code under the terms of the BSD license,
7
see LICENSE file.
8
*/
9
10
#include <cstdint>
11
#include "libtorrent/read_resume_data.hpp"
12
#include "libtorrent/write_resume_data.hpp"
13
#include "libtorrent/add_torrent_params.hpp"
14
15
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
16
18.0k
{
17
18.0k
  lt::error_code ec;
18
18.0k
  auto ret = lt::read_resume_data({reinterpret_cast<char const*>(data), int(size)}, ec);
19
18.0k
  auto buf = write_resume_data_buf(ret);
20
18.0k
  return 0;
21
18.0k
}
22