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 20222
Code coverage 32.41%
Code coverage report Report link
Static reachability 2.86%
Fuzz Introspector report Report link (from 2025-06-12)
Fuzzer Code coverage (lines) Latest Report Comments
add_torrent 11.66% (avg: 11.66%, max: 11.66%) 2025-06-12
bdecode_node 29.29% (avg: 29.29%, max: 29.29%) 2025-06-12
dht_node 2.74% (avg: 2.82%, max: 3.02%) 2025-06-12
file_storage_add_file 6.18% (avg: 6.18%, max: 6.18%) 2025-06-12
http_parser 21.42% (avg: 21.42%, max: 21.42%) 2025-06-12
http_tracker 1.16% (avg: 1.16%, max: 1.16%) 2025-06-12
peer_conn 23.44% (avg: 23.4%, max: 23.64%) 2025-06-12
resume_data 2.69% (avg: 2.69%, max: 2.69%) 2025-06-12
sanitize_path 0.29% (avg: 0.29%, max: 0.29%) 2025-06-12
session_params 1.73% (avg: 1.73%, max: 1.73%) 2025-06-12
torrent_info 4.19% (avg: 4.19%, max: 4.19%) 2025-06-12
upnp 0.33% (avg: 0.33%, max: 0.33%) 2025-06-12
utp 1.65% (avg: 1.65%, max: 1.65%) 2025-06-12

Historical Progression

Per Fuzzer Progression

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 1104 0.0%
torrent::start /src/libtorrent/src/torrent.cpp 1084 0.0%
torrent::tracker_response /src/libtorrent/src/torrent.cpp 1027 0.0%
torrent::set_flags /src/libtorrent/src/torrent.cpp 1017 0.0%
torrent::set_metadata /src/libtorrent/src/torrent.cpp 994 0.0%
torrent::set_piece_deadline /src/libtorrent/src/torrent.cpp 993 0.0%
torrent::set_file_priority /src/libtorrent/src/torrent.cpp 987 0.0%
torrent::set_share_mode /src/libtorrent/src/torrent.cpp 981 0.0%
torrent::on_file_priority /src/libtorrent/src/torrent.cpp 979 0.0%
torrent::prioritize_files /src/libtorrent/src/torrent.cpp 979 0.0%