an efficient feature complete C++ bittorrent implementation
This report summarizes scanner evidence for arvidn/libtorrent, a C++ project with 6,090 GitHub stars. SynthScan examined 309,290 lines of code across 949 source files, recording 1416 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 5.1 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1271 finding(s).
Are imports declared and package/API names verified? 27 finding(s).
Are wrappers, guards, and repeated structures necessary? 282 finding(s).
Which changes need focused human review? 1416 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1416 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tox.ini | 1 | [tox] | COMMENT |
| LOW | tox.ini | 41 | # numerous DeprecationWarnings are fired from builtin code, especially | COMMENT |
| LOW | tools/parse_session_stats.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | tools/parse_session_stats.py | 21 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | COMMENT |
| LOW | tools/parse_session_stats.py | 621 | # ( | COMMENT |
| LOW | tools/parse_session_stats.py | 921 | "", | COMMENT |
| LOW | tools/run_benchmark.py | 861 | ) | COMMENT |
| LOW | tools/perf_call_tree.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | tools/perf_call_tree.py | 21 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | COMMENT |
| LOW | tools/perf_call_tree.py | 121 | # ffffffff8100a1b2 some_function+0x12 (/path/to/dso) | COMMENT |
| LOW | tools/checking_benchmark.cpp | 41 | #include <string> | COMMENT |
| LOW | tools/benchmark_load_torrent.py | 61 | COMMENT | |
| LOW | tools/gen_corpus.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | tools/gen_corpus.py | 21 | # | COMMENT |
| LOW | tools/gen_corpus.py | 641 | # share_mode (ext_id 8 == share_mode_msg): 1-byte boolean | COMMENT |
| LOW | tools/gen_corpus.py | 2861 | # | COMMENT |
| LOW | tools/gen_corpus.py | 2881 | # 6 bits : piece_priorities count | COMMENT |
| LOW | tools/bencher.cpp | 21 | "do_not_optimize() relies on GNU inline asm to act as a compiler optimization barrier, and is only supported on GCC and | COMMENT |
| LOW | tools/bencher.cpp | 41 | #include "libtorrent/aux_/piece_picker.hpp" | COMMENT |
| LOW | tools/gen_torture_torrent.cpp | 21 | #include <fstream> | COMMENT |
| LOW | tools/gen_torture_torrent.cpp | 61 | // takes the extension-pickup branch when added >= 240. | COMMENT |
| LOW | tools/gen_torture_torrent.cpp | 81 | std::string symlink_mode = "file"; | COMMENT |
| LOW | tools/benchmark_load_torrent.cpp | 1 | /* | COMMENT |
| LOW | tools/benchmark_load_torrent.cpp | 21 | // content printing (file list, trackers, info hash, web seeds, ...), no | COMMENT |
| LOW | tools/vmstat.py | 221 | # Private_Dirty: 11384 kB | COMMENT |
| LOW | test/setup_transfer.cpp | 21 | #include <future> | COMMENT |
| LOW | test/setup_transfer.cpp | 41 | #include "libtorrent/aux_/path.hpp" | COMMENT |
| LOW | test/setup_transfer.cpp | 661 | void native_close(native_handle const h) | COMMENT |
| LOW | test/test_receive_buffer.cpp | 221 | // previous packet | COMMENT |
| LOW | test/broadcast_socket.hpp | 101 | // and receive unicast responses | COMMENT |
| LOW | test/test_file.cpp | 21 | #include "libtorrent/aux_/storage_utils.hpp" | COMMENT |
| LOW | test/test_piece_picker.cpp | 721 | } | COMMENT |
| LOW | test/test_torrent.cpp | 21 | #include "libtorrent/write_resume_data.hpp" | COMMENT |
| LOW | test/test_storage.cpp | 21 | #include "libtorrent/aux_/mmap_storage.hpp" | COMMENT |
| LOW | test/test_storage.cpp | 41 | #include "libtorrent/pread_disk_io.hpp" | COMMENT |
| LOW | test/test_fast_extension.cpp | 21 | #include "libtorrent/time.hpp" | COMMENT |
| LOW | test/test_webtorrent_transfer.cpp | 121 | &ses1, &ses2, nullptr, true, use_metadata_transfer, false, suffix, piece_size, &atp); | COMMENT |
| LOW | test/test_tracker.cpp | 21 | #include "test_utils.hpp" | COMMENT |
| LOW | test/test_priority.cpp | 21 | #include "libtorrent/read_resume_data.hpp" | COMMENT |
| LOW | test/test_remap_files.cpp | 21 | #include "settings.hpp" | COMMENT |
| LOW | test/test_merkle.cpp | 1541 | ah, | COMMENT |
| LOW | test/test_ssl.cpp | 21 | COMMENT | |
| LOW | test/swarm_suite.cpp | 21 | #include <iostream> | COMMENT |
| LOW | test/test_dht_storage.cpp | 21 | #include "libtorrent/hex.hpp" // from_hex | COMMENT |
| LOW | test/test_file_storage.cpp | 1341 | rf.rename_file(fs, 1_file, "test\\bar"); | COMMENT |
| LOW | test/test_similar_torrent.cpp | 1 | /* | COMMENT |
| LOW | test/test_resume.cpp | 21 | #include "libtorrent/bencode.hpp" | COMMENT |
| LOW | test/test_disk_cache.cpp | 801 | f.flush_storage_for(); | COMMENT |
| LOW | test/test_create_torrent.cpp | 21 | #include "libtorrent/aux_/escape_string.hpp" // for convert_path_to_posix | COMMENT |
| LOW | test/test.hpp | 21 | #include <vector> | COMMENT |
| LOW | test/test_utils.cpp | 21 | #ifdef _WIN32 | COMMENT |
| LOW | test/test_rtc.cpp | 21 | COMMENT | |
| LOW | test/test_rtc.cpp | 341 | if (stream1) | COMMENT |
| LOW | test/test_copy_file.cpp | 21 | #include <iterator> | COMMENT |
| LOW | test/test_dht.cpp | 21 | #include "libtorrent/kademlia/msg.hpp" // for verify_message | COMMENT |
| LOW | test/test_disk_io.cpp | 1 | /* | COMMENT |
| LOW | test/test_disk_io.cpp | 21 | #include "libtorrent/session_params.hpp" // for disk_io_constructor_type | COMMENT |
| LOW | test/test_disk_io.cpp | 481 | { | COMMENT |
| LOW | test/test_disk_io.cpp | 701 | COMMENT | |
| LOW | test/web_seed_suite.cpp | 21 | #include "libtorrent/string_view.hpp" | COMMENT |
| 976 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/parse_session_stats.py | 118 | except Exception: | CODE |
| HIGH | tools/parse_session_stats.py | 136 | except Exception: | CODE |
| HIGH | tools/run_benchmark.py | 1263 | except Exception: | CODE |
| HIGH | tools/run_benchmark.py | 1268 | except Exception: | CODE |
| HIGH | tools/run_benchmark.py | 120 | except OSError: | CODE |
| HIGH | tools/gen_fwd.py | 111 | except FileNotFoundError: | CODE |
| HIGH | tools/parse_dht_log.py | 84 | except Exception: | CODE |
| HIGH | tools/parse_dht_log.py | 156 | except Exception: | CODE |
| HIGH | tools/perf_call_tree.py | 290 | except ValueError: | CODE |
| HIGH | tools/benchmark_checking.py | 62 | except Exception: | CODE |
| HIGH | tools/benchmark_checking.py | 111 | except Exception: | CODE |
| HIGH | tools/benchmark_checking.py | 116 | except Exception: | CODE |
| HIGH | tools/parse_lookup_log.py | 37 | except Exception: | CODE |
| HIGH | test/web_server.py | 24 | except Exception: | CODE |
| HIGH | test/web_server.py | 269 | except Exception: | CODE |
| HIGH | test/web_server.py | 214 | except Exception: | CODE |
| HIGH | test/web_server.py | 209 | except Exception: | CODE |
| HIGH | test/socks.py | 52 | except Exception: | CODE |
| HIGH | docs/gen_reference_doc.py | 823 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 94 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 116 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 146 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 150 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 299 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 393 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 103 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 167 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 172 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 254 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 375 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 266 | except Exception: | CODE |
| HIGH | examples/run_benchmarks.py | 220 | except Exception: | CODE |
| HIGH | bindings/python/client.py | 379 | except Exception: | CODE |
| HIGH | bindings/python/tests/alert_test.py | 1841 | except FileNotFoundError: | CODE |
| HIGH | bindings/python/tests/alert_test.py | 1852 | except PermissionError: | CODE |
| HIGH | bindings/python/tests/alert_test.py | 1905 | except PermissionError: | CODE |
| HIGH | bindings/python/tests/client_test.py | 117 | except FileNotFoundError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/run_benchmark.py | 203 | def _warn_if_ineffective_drop(path: Path) -> None: | CODE |
| LOW | tools/run_benchmark.py | 660 | def suggest_dirty_limit_if_high_ram() -> None: | CODE |
| LOW | tools/check_installed_headers.py | 20 | def check_no_vendored_headers(include_dir: str) -> None: | CODE |
| LOW | tools/check_installed_headers.py | 47 | def check_public_headers_compile(prefix: str) -> None: | CODE |
| LOW | tools/gen_corpus.py | 3262 | def generate_rtc_parse_endpoint(outdir: str) -> None: | CODE |
| LOW | tools/gen_corpus.py | 3305 | def generate_rtc_tracker_offer(outdir: str) -> None: | CODE |
| LOW | tools/gen_corpus.py | 3412 | def generate_dht_node_responses(outdir: str) -> None: | CODE |
| LOW | tools/gen_corpus.py | 3497 | def generate_dht_get_peers_reply(outdir: str) -> None: | CODE |
| LOW | tools/gen_corpus.py | 3536 | def generate_dht_get_item_reply(outdir: str) -> None: | CODE |
| LOW | tools/gen_corpus.py | 3570 | def generate_dht_sample_infohashes_reply(outdir: str) -> None: | CODE |
| LOW | tools/gen_corpus.py | 3613 | def generate_dht_put_item_request(outdir: str) -> None: | CODE |
| LOW | test/socks.py | 278 | def send_user_pass_auth_method(self): | CODE |
| LOW⚡ | examples/run_benchmarks.py | 109 | def build_utorrent_commandline(config, port): | CODE |
| LOW⚡ | examples/run_benchmarks.py | 157 | def build_rtorrent_commandline(config, port): | CODE |
| LOW⚡ | examples/run_benchmarks.py | 181 | def build_libtorrent_commandline(config, port): | CODE |
| LOW | bindings/python/tests/simple_client_test.py | 69 | def test_download_from_web_seed(self) -> None: | CODE |
| LOW | bindings/python/tests/sha256_hash_test.py | 18 | def test_init_long_buffer_deprecated(self) -> None: | CODE |
| LOW⚡ | bindings/python/tests/torrent_handle_test.py | 910 | def test_file_size_and_offset_match_file_storage(self) -> None: | CODE |
| LOW⚡ | bindings/python/tests/torrent_handle_test.py | 916 | def test_num_files_and_pieces_match_file_storage(self) -> None: | CODE |
| LOW⚡ | bindings/python/tests/torrent_handle_test.py | 923 | def test_file_flags_matches_file_storage(self) -> None: | CODE |
| LOW⚡ | bindings/python/tests/torrent_handle_test.py | 928 | def test_file_absolute_path_matches_file_storage(self) -> None: | CODE |
| LOW⚡ | bindings/python/tests/torrent_handle_test.py | 933 | def test_symlink_matches_file_storage(self) -> None: | CODE |
| LOW⚡ | bindings/python/tests/torrent_handle_test.py | 938 | def test_root_matches_file_storage(self) -> None: | CODE |
| LOW⚡ | bindings/python/tests/torrent_handle_test.py | 943 | def test_invalid_index_raises_index_error(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 35 | def test_deprecated_move_flags_t(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 80 | def test_file_open_mode_deprecated(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 84 | def test_file_progress_flags_t(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 156 | def test_connect_and_get_info(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 319 | def test_http_seeds_deprecated(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 565 | def test_renamed_files_round_trip(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 829 | def test_rename_file_and_export(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 841 | def test_file_path_with_save_path(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 876 | def test_import_then_export_roundtrip(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 888 | def test_file_path_unrenamed_falls_back_to_file_storage(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 899 | def test_file_name_unrenamed_falls_back_to_file_storage(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 964 | def test_outlives_original_python_references(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 977 | def test_custodian_and_ward_holds_references(self) -> None: | CODE |
| LOW | bindings/python/tests/torrent_handle_test.py | 1063 | def test_old_sequential_download(self) -> None: | CODE |
| LOW | bindings/python/tests/session_settings_test.py | 15 | def test_choking_algorithm_t_deprecated(self) -> None: | CODE |
| LOW | bindings/python/tests/session_settings_test.py | 22 | def test_seed_choking_algorithm_t(self) -> None: | CODE |
| LOW | bindings/python/tests/session_settings_test.py | 40 | def test_io_buffer_mode_t_deprecated(self) -> None: | CODE |
| LOW | bindings/python/tests/session_settings_test.py | 47 | def test_bandwidth_mixed_algo_t(self) -> None: | CODE |
| LOW | bindings/python/tests/session_settings_test.py | 61 | def test_enc_policy_deprecated(self) -> None: | CODE |
| LOW | bindings/python/tests/session_settings_test.py | 80 | def test_enc_level_deprecated(self) -> None: | CODE |
| LOW | bindings/python/tests/session_settings_test.py | 110 | def test_proxy_type_deprecated(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 24 | def test_file_storage_static_vars(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 36 | def test_create_torrent_static_vars(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 46 | def test_create_torrent_flags_t(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 403 | def test_set_hash_long_deprecated(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 419 | def test_set_file_hash_invalid(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 438 | def test_set_file_hash_long_deprecated(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 453 | def test_http_seed_deprecated(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 571 | def test_args_pred_positional(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 620 | def test_args_pred_positional(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 691 | def test_path_non_unicode_str(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 700 | def test_path_non_unicode_bytes(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 718 | def test_path_surrogate_bytes(self) -> None: | CODE |
| LOW | bindings/python/tests/create_torrent_test.py | 790 | def test_path_non_ascii_bytes(self) -> None: | CODE |
| LOW⚡ | bindings/python/tests/create_torrent_test.py | 810 | def test_path_surrogate_bytes(self) -> None: | CODE |
| LOW⚡ | bindings/python/tests/create_torrent_test.py | 820 | def test_path_non_unicode_str(self) -> None: | CODE |
| 101 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/parse_session_stats.py | 79 | except Exception as e: | CODE |
| LOW | tools/parse_session_stats.py | 118 | except Exception: | CODE |
| LOW | tools/parse_session_stats.py | 136 | except Exception: | CODE |
| LOW | tools/parse_session_stats.py | 155 | except Exception: | CODE |
| LOW | tools/parse_session_stats.py | 179 | except Exception: | CODE |
| LOW | tools/parse_session_stats.py | 205 | except Exception: | CODE |
| LOW | tools/parse_session_stats.py | 228 | except Exception: | CODE |
| LOW | tools/parse_session_stats.py | 968 | except Exception: | CODE |
| LOW | tools/run_benchmark.py | 1263 | except Exception: | CODE |
| LOW | tools/run_benchmark.py | 1268 | except Exception: | CODE |
| LOW | tools/parse_dht_log.py | 84 | except Exception: | CODE |
| LOW | tools/parse_dht_log.py | 156 | except Exception: | CODE |
| LOW | tools/parse_dht_log.py | 161 | except Exception as e: | CODE |
| LOW | tools/parse_sample.py | 30 | except Exception: | CODE |
| LOW | tools/clean.py | 78 | except Exception as e: | CODE |
| LOW | tools/clean.py | 83 | except Exception as e: | CODE |
| LOW | tools/test_filesystems.py | 110 | except Exception: | CODE |
| LOW | tools/parse_utp_log.py | 30 | except Exception: | CODE |
| LOW | tools/parse_utp_log.py | 146 | except Exception: | CODE |
| LOW | tools/parse_utp_log.py | 220 | except Exception: | CODE |
| LOW | tools/benchmark_checking.py | 62 | except Exception: | CODE |
| LOW | tools/benchmark_checking.py | 111 | except Exception: | CODE |
| LOW | tools/benchmark_checking.py | 116 | except Exception: | CODE |
| LOW | tools/parse_lookup_log.py | 37 | except Exception: | CODE |
| MEDIUM | tools/parse_lookup_log.py | 33 | def plot_nodes(nodes, frame): | CODE |
| LOW | tools/vmstat.py | 148 | except Exception: | CODE |
| LOW | tools/vmstat.py | 245 | except Exception: | CODE |
| LOW | test/http_proxy.py | 273 | except Exception: | CODE |
| LOW | test/http_proxy.py | 286 | except Exception: | CODE |
| LOW | test/http_proxy.py | 472 | except Exception: | CODE |
| LOW | test/http_proxy.py | 481 | except Exception: | CODE |
| LOW | test/websocket_server.py | 61 | except Exception as e: | CODE |
| LOW | test/web_server.py | 24 | except Exception: | CODE |
| LOW | test/web_server.py | 59 | except Exception: | CODE |
| LOW⚡ | test/web_server.py | 201 | except Exception as e: | CODE |
| LOW⚡ | test/web_server.py | 209 | except Exception: | CODE |
| LOW⚡ | test/web_server.py | 214 | except Exception: | CODE |
| LOW⚡ | test/web_server.py | 224 | except Exception: | CODE |
| LOW | test/web_server.py | 261 | except Exception as e: | CODE |
| LOW | test/web_server.py | 269 | except Exception: | CODE |
| MEDIUM | test/web_server.py | 56 | def do_GET(self): | CODE |
| MEDIUM | test/web_server.py | 221 | def do_POST(self): | CODE |
| LOW | test/socks.py | 52 | except Exception: | CODE |
| LOW | test/socks.py | 103 | except Exception: | CODE |
| LOW | test/socks.py | 219 | except Exception as e: | CODE |
| LOW | test/socks.py | 232 | except Exception as e: | CODE |
| LOW | test/socks.py | 245 | except Exception as e: | CODE |
| MEDIUM | test/socks.py | 100 | def handle(self): | CODE |
| LOW | docs/gen_reference_doc.py | 823 | except Exception: | CODE |
| LOW⚡ | examples/run_benchmarks.py | 94 | except Exception: | CODE |
| LOW⚡ | examples/run_benchmarks.py | 103 | except Exception: | CODE |
| LOW⚡ | examples/run_benchmarks.py | 116 | except Exception: | CODE |
| LOW⚡ | examples/run_benchmarks.py | 146 | except Exception: | CODE |
| LOW⚡ | examples/run_benchmarks.py | 150 | except Exception: | CODE |
| LOW⚡ | examples/run_benchmarks.py | 167 | except Exception: | CODE |
| LOW⚡ | examples/run_benchmarks.py | 172 | except Exception: | CODE |
| LOW⚡ | examples/run_benchmarks.py | 213 | except Exception: | CODE |
| LOW⚡ | examples/run_benchmarks.py | 216 | except Exception: | CODE |
| LOW⚡ | examples/run_benchmarks.py | 220 | except Exception: | CODE |
| LOW | examples/run_benchmarks.py | 60 | except Exception: | CODE |
| 9 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/perf_call_tree.py | 572 | var selected = null; | CODE |
| HIGH⚡ | tools/perf_call_tree.py | 605 | if (!ul) return null; | CODE |
| HIGH⚡ | tools/perf_call_tree.py | 607 | return li ? li.querySelector(':scope > .node') : null; | CODE |
| HIGH⚡ | tools/perf_call_tree.py | 612 | if (!ul || !ul.classList.contains('children')) return null; | CODE |
| HIGH⚡ | tools/perf_call_tree.py | 620 | while (el && el.parentNode) { | CODE |
| HIGH⚡ | tools/perf_call_tree.py | 622 | if (ul.classList && ul.classList.contains('children') && ul.hidden) | CODE |
| HIGH⚡ | tools/perf_call_tree.py | 624 | el = ul.closest ? ul.closest('li') : null; | CODE |
| HIGH | tools/perf_call_tree.py | 648 | if (next >= 0 && next < vis.length) select(vis[next]); | CODE |
| HIGH | tools/gen_corpus.py | 2223 | # not a dict: dict_find_dict() returns null, piece layers skipped | COMMENT |
| HIGH | tools/benchmark_checking.py | 20 | ret = os.system(f"cd ../examples && b2 release {args.toolset} stage_client_test stage_connection_tester") | CODE |
| HIGH | docs/gen_todo.py | 16 | os.system('(cd .. ; ctags %s 2>/dev/null)' % ' '.join(paths)) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/benchmark_load_torrent.py | 62 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/benchmark_load_torrent.py | 64 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/benchmark_load_torrent.py | 312 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/benchmark_load_torrent.py | 314 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/benchmark_load_torrent.py | 334 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/benchmark_load_torrent.py | 336 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/benchmark_load_torrent.py | 617 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/benchmark_load_torrent.py | 619 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/benchmark_load_torrent.py | 824 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/benchmark_load_torrent.py | 826 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/gen_reference_doc.py | 1131 | # ==================================================================== | COMMENT |
| MEDIUM | docs/gen_reference_doc.py | 1135 | # ==================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/parse_session_stats.py | 94 | CODE | |
| LOW | tools/update_copyright.py | 9 | CODE | |
| LOW | tools/run_benchmark.py | 85 | CODE | |
| LOW | tools/run_benchmark.py | 169 | CODE | |
| LOW | tools/run_benchmark.py | 259 | CODE | |
| LOW | tools/run_benchmark.py | 660 | CODE | |
| LOW | tools/run_benchmark.py | 725 | CODE | |
| LOW | tools/run_benchmark.py | 963 | CODE | |
| LOW | tools/copyright.py | 70 | CODE | |
| LOW | tools/clean.py | 9 | CODE | |
| LOW | tools/disk_latency.py | 91 | CODE | |
| LOW | tools/perf_call_tree.py | 145 | CODE | |
| LOW | tools/perf_call_tree.py | 219 | CODE | |
| LOW | tools/set_version.py | 31 | CODE | |
| LOW | tools/vmstat.py | 310 | CODE | |
| LOW | tools/vmstat.py | 137 | CODE | |
| LOW | tools/libtorrent_lldb.py | 161 | CODE | |
| LOW | test/http_proxy.py | 44 | CODE | |
| LOW | test/http_proxy.py | 63 | CODE | |
| LOW | test/http_proxy.py | 292 | CODE | |
| LOW | test/web_server.py | 64 | CODE | |
| LOW | docs/gen_reference_doc.py | 353 | CODE | |
| LOW | docs/gen_reference_doc.py | 453 | CODE | |
| LOW | docs/gen_reference_doc.py | 533 | CODE | |
| LOW | docs/gen_reference_doc.py | 762 | CODE | |
| LOW | docs/gen_todo.py | 32 | CODE | |
| LOW | examples/run_benchmarks.py | 208 | CODE | |
| LOW | examples/run_benchmarks.py | 259 | CODE | |
| LOW | bindings/python/client.py | 126 | CODE | |
| LOW | bindings/python/client.py | 168 | CODE | |
| LOW | bindings/python/client.py | 214 | CODE | |
| LOW | bindings/python/setup.py | 383 | CODE | |
| LOW | bindings/python/tests/tdummy.py | 126 | CODE | |
| LOW | bindings/python/tests/alert_test.py | 1829 | CODE | |
| LOW | bindings/python/tests/client_test.py | 92 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/http_proxy.py | 436 | # through. Use this "hack" to pass through the encoding, and just use | COMMENT |
| MEDIUM | include/libtorrent/torrent_flags.hpp | 152 | // The behavior is more robust when setting this flag as part of adding | COMMENT |
| MEDIUM | include/libtorrent/alert_types.hpp | 745 | // This alert is generated when a peer is un-snubbed. Essentially when it was snubbed for stalling | COMMENT |
| MEDIUM | include/libtorrent/settings_pack.hpp | 498 | // likely to utilize all available bandwidth, and avoid having | COMMENT |
| MEDIUM | include/libtorrent/settings_pack.hpp | 1150 | // time from this peer. The benefit of this is to better utilize disk | COMMENT |
| MEDIUM | simulation/test_http_connection.cpp | 262 | // it has robust retry behavior (which the simple test proxy that comes with | COMMENT |
| MEDIUM | bindings/python/setup.py | 122 | # robust, and we trust it more. In case distutils gives empty results, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_slow_hash.cpp | 90 | // Step 1: pre-create the file so the retried hash job can read block 1. | COMMENT |
| LOW | test/test_slow_hash.cpp | 128 | // Step 2: issue async_hash before inserting any block. | COMMENT |
| LOW⚡ | test/test_slow_hash.cpp | 141 | // Step 3: write block 0 without flush_piece so its buffer stays in cache. | COMMENT |
| LOW⚡ | test/test_slow_hash.cpp | 151 | // Step 4: wake hash thread B so it can pick up the hash job and park it. | COMMENT |
| LOW | include/libtorrent/aux_/receive_buffer.hpp | 83 | // the purpose of this function is to free up and cut off all messages | COMMENT |
| LOW | fuzzers/src/pe_conn.cpp | 136 | // Step 1: send our DH public key + PadA. | COMMENT |
| LOW | fuzzers/src/pe_conn.cpp | 149 | // Step 2: read the server's DH public key (first 96 bytes). | COMMENT |
| LOW | fuzzers/src/pe_conn.cpp | 170 | // Step 3: compute sync hash and obfuscated SKEY hash. | COMMENT |
| LOW | src/posix_storage.cpp | 360 | // if some files have priority 0, we need to check if they exist on the | COMMENT |
| LOW | src/receive_buffer.cpp | 149 | // the purpose of this function is to free up and cut off all messages | COMMENT |
| LOW | src/pread_storage.cpp | 247 | // if some files have priority 0, we need to check if they exist on the | COMMENT |
| LOW | src/mmap_storage.cpp | 348 | // if some files have priority 0, we need to check if they exist on the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/parse_dht_log.py | 4 | CODE | |
| LOW | tools/parse_utp_log.py | 4 | CODE | |
| LOW | tools/parse_lookup_log.py | 5 | CODE | |
| LOW | tools/parse_peer_log.py | 4 | CODE | |
| LOW | tools/parse_dht_rtt.py | 4 | CODE | |
| LOW | docs/gen_reference_doc.py | 3 | CODE | |
| LOW | docs/gen_stats_doc.py | 2 | CODE | |
| LOW | examples/run_benchmarks.py | 3 | CODE | |
| LOW | bindings/python/client.py | 2 | CODE | |
| LOW | bindings/python/simple_client.py | 5 | CODE | |
| LOW | bindings/python/tests/simple_client_test.py | 20 | CODE | |
| LOW | bindings/python/tests/torrent_handle_test.py | 1 | CODE | |
| LOW | bindings/python/tests/create_torrent_test.py | 18 | CODE | |
| LOW | bindings/python/tests/alert_test.py | 29 | CODE | |
| LOW | bindings/python/tests/client_test.py | 22 | CODE | |
| LOW | bindings/python/tests/session_test.py | 19 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_slow_hash.cpp | 90 | // Step 1: pre-create the file so the retried hash job can read block 1. | COMMENT |
| LOW | test/test_slow_hash.cpp | 128 | // Step 2: issue async_hash before inserting any block. | COMMENT |
| LOW⚡ | test/test_slow_hash.cpp | 141 | // Step 3: write block 0 without flush_piece so its buffer stays in cache. | COMMENT |
| LOW⚡ | test/test_slow_hash.cpp | 151 | // Step 4: wake hash thread B so it can pick up the hash job and park it. | COMMENT |
| LOW | fuzzers/src/pe_conn.cpp | 136 | // Step 1: send our DH public key + PadA. | COMMENT |
| LOW | fuzzers/src/pe_conn.cpp | 149 | // Step 2: read the server's DH public key (first 96 bytes). | COMMENT |
| LOW | fuzzers/src/pe_conn.cpp | 170 | // Step 3: compute sync hash and obfuscated SKEY hash. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bindings/python/tests/torrent_handle_test.py | 115 | # Create a session and add a handle | COMMENT |
| MEDIUM | bindings/python/tests/torrent_handle_test.py | 157 | # Create a peer, to ensure get_peer_info returns something | COMMENT |
| MEDIUM | bindings/python/tests/torrent_handle_test.py | 566 | # Create a multi-file torrent named "test" so that renaming with the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/test_piece_picker.cpp | 144 | // trying to mark a block as requested after it has been completed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/http_proxy.py | 45 | Reads a chunked-encoded stream from a file-like object. This will read up to the end of the chunked encoding, inclu | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/http_proxy.py | 209 | # Check if Host header is present (useful for debugging libtorrent | COMMENT |
| LOW | test/http_proxy.py | 215 | # Check if Host header matches CONNECT target | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/gen_corpus.py | 1088 | CODE | |
| LOW | tools/gen_corpus.py | 2980 | CODE | |
| LOW | examples/run_benchmarks.py | 224 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/check_installed_headers.py | 9 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | include/libtorrent/aux_/torrent.hpp | 1408 | // member functions. Don't forget to also call peers_erased() | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/kademlia/item.cpp | 133 | // TODO: implement ctor for entry from bdecode_node? | COMMENT |