Project: libtorrent

Language c++
OSS-Fuzz project link
Project repository link
Build status: Fuzzers succeeding: Build log
Build status: Code coverage succeeding: Build log
Build status: Fuzz Introspector succeeding: Build log
Fuzzer count 13
Lines of code 62393
Lines covered 20220
Code coverage 32.41%
Code coverage report Report link
Static reachability 2.89%
Fuzz Introspector report Report link (from 2025-06-16)
Fuzzer Code coverage (lines) Latest Report Comments
add_torrent (plot) 11.66% (avg: 11.66%, max: 11.66%) 2025-06-16
bdecode_node (plot) 29.29% (avg: 29.29%, max: 29.29%) 2025-06-16
dht_node (plot) 2.73% (avg: 2.78%, max: 3.0%) 2025-06-16
file_storage_add_file (plot) 6.18% (avg: 6.18%, max: 6.18%) 2025-06-16
http_parser (plot) 21.42% (avg: 21.42%, max: 21.42%) 2025-06-16
http_tracker (plot) 1.16% (avg: 1.16%, max: 1.16%) 2025-06-16
peer_conn (plot) 23.45% (avg: 23.45%, max: 23.64%) 2025-06-16
resume_data (plot) 2.69% (avg: 2.69%, max: 2.69%) 2025-06-16
sanitize_path (plot) 0.29% (avg: 0.29%, max: 0.29%) 2025-06-16
session_params (plot) 1.73% (avg: 1.73%, max: 1.73%) 2025-06-16
torrent_info (plot) 4.19% (avg: 4.19%, max: 4.19%) 2025-06-16
upnp (plot) 0.33% (avg: 0.33%, max: 0.33%) 2025-06-16
utp (plot) 1.65% (avg: 1.65%, max: 1.65%) 2025-06-16

Historical Progression

Per Fuzzer Progression

This section shows graphs for the coverage results per fuzz target over the past 30 days. Included are the coverage percentage, total number of lines, covered number of lines, and the number of coverage inputs.

Functions of interest to fuzz

This section outlines functions that may be of interest to fuzz. They are based on ranking functions that have a lot of complexity but currently exhibit low code coverage. The complexity is calculated based on the function itself as well as the functions called by the given function, i.e. the tree of code that the function triggers.


This is only a minor amount of introspection information available for this project. Please consult the Fuzz Introspector report for more information, e.g. the introspection table of all functions in the target project available here.

Function name Function source file Accumulated cyclomatic complexity Code coverage
torrent::attach_peer /src/libtorrent/src/torrent.cpp 1160 0.0%
torrent::start /src/libtorrent/src/torrent.cpp 1136 0.0%
torrent::tracker_response /src/libtorrent/src/torrent.cpp 1094 0.0%
torrent::set_flags /src/libtorrent/src/torrent.cpp 1083 0.0%
torrent::set_piece_deadline /src/libtorrent/src/torrent.cpp 1059 0.0%
torrent::set_metadata /src/libtorrent/src/torrent.cpp 1059 0.0%
torrent::set_file_priority /src/libtorrent/src/torrent.cpp 1053 0.0%
torrent::set_share_mode /src/libtorrent/src/torrent.cpp 1047 0.0%
torrent::on_file_priority /src/libtorrent/src/torrent.cpp 1045 0.0%
torrent::prioritize_files /src/libtorrent/src/torrent.cpp 1045 0.0%