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 62345
Lines covered 19818
Code coverage 31.79%
Code coverage report Report link
Static reachability 2.86%
Fuzz Introspector report Report link (from 2025-03-14)
Fuzzer Code coverage (lines) Latest Report Comments
add_torrent 11.66% (avg: 11.66%, max: 11.66%) 2025-03-14
bdecode_node 29.29% (avg: 29.29%, max: 29.29%) 2025-03-14
dht_node 2.74% (avg: 2.8%, max: 3.01%) 2025-03-14
file_storage_add_file 6.19% (avg: 6.19%, max: 6.19%) 2025-03-14
http_parser 21.42% (avg: 21.42%, max: 21.42%) 2025-03-14
http_tracker 1.16% (avg: 1.16%, max: 1.16%) 2025-03-14
peer_conn 23.3% (avg: 23.28%, max: 23.42%) 2025-03-14
resume_data 2.7% (avg: 2.7%, max: 2.7%) 2025-03-14
sanitize_path 0.29% (avg: 0.29%, max: 0.29%) 2025-03-14
session_params 1.73% (avg: 1.73%, max: 1.73%) 2025-03-14
torrent_info 3.36% (avg: 3.35%, max: 3.36%) 2025-03-14
upnp 0.33% (avg: 0.33%, max: 0.33%) 2025-03-14
utp 1.65% (avg: 1.65%, max: 1.65%) 2025-03-14

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 1103 0.0%
torrent::start /src/libtorrent/src/torrent.cpp 1083 0.0%
torrent::tracker_response /src/libtorrent/src/torrent.cpp 1026 0.0%
torrent::set_flags /src/libtorrent/src/torrent.cpp 1016 0.0%
torrent::set_metadata /src/libtorrent/src/torrent.cpp 993 0.0%
torrent::set_piece_deadline /src/libtorrent/src/torrent.cpp 992 0.0%
torrent::set_file_priority /src/libtorrent/src/torrent.cpp 986 0.0%
torrent::set_share_mode /src/libtorrent/src/torrent.cpp 980 0.0%
torrent::on_file_priority /src/libtorrent/src/torrent.cpp 978 0.0%
torrent::prioritize_files /src/libtorrent/src/torrent.cpp 978 0.0%