Ticket #6177: top_offenders.txt

File top_offenders.txt, 6.5 KB (added by nickm, 8 years ago)

cyclomatic complexity >= 20, acccording to cyclo-2.0

Line 
1src/common/address.c tor_addr_parse_PTR_name    20
2src/common/compat.c switch_id   20
3src/common/util.c tor_vsscanf   20
4src/or/buffers.c parse_socks_client     20
5src/or/circuitlist.c circuit_purpose_to_controller_hs_state_string      20
6src/or/circuitlist.c circuit_purpose_to_controller_string       20
7src/or/circuitlist.c circuit_purpose_to_string  20
8src/or/config.c options_init_from_torrc 20
9src/or/dirserv.c routerstatus_format_entry      20
10src/or/dns.c dns_resolve_impl   20
11src/or/hibernate.c accounting_parse_options     20
12src/or/main.c do_main_loop      20
13src/or/reasons.c stream_end_reason_to_socks5_response   20
14src/or/circuituse.c circuit_detach_stream       21
15src/or/config.c option_clear    21
16src/or/config.c or_state_load   21
17src/or/connection_edge.c connection_ap_handshake_socks_resolved 21
18src/or/dirvote.c format_networkstatus_vote      21
19src/or/eventdns.c evdns_set_option      21
20src/or/relay.c connection_or_flush_from_first_active_circuit    21
21src/common/container.c smartlist_split_string   22
22src/common/tortls.c tor_tls_create_certificate  22
23src/or/circuitbuild.c warn_if_last_router_excluded      22
24src/or/circuitlist.c assert_circuit_ok  22
25src/or/circuitlist.c circuit_dump_by_conn       22
26src/or/circuituse.c circuit_expire_old_circuits_clientside      22
27src/or/command.c command_process_netinfo_cell   22
28src/or/config.c getinfo_helper_config   22
29src/or/config.c options_act_reversible  22
30src/or/connection.c connection_handle_listener_read     22
31src/or/connection.c _connection_write_to_buf_impl       22
32src/or/connection_edge.c connection_edge_compatible_with_circuit        22
33src/or/control.c getinfo_helper_misc    22
34src/or/directory.c directory_handle_command_post        22
35src/or/directory.c directory_initiate_command_rend      22
36src/or/dirvote.c networkstatus_check_weights    22
37src/or/reasons.c errno_to_stream_end_reason     22
38src/or/router.c router_rebuild_descriptor       22
39src/tools/tor-fw-helper/tor-fw-helper.c main    22
40src/common/address.c tor_addr_compare_masked    23
41src/or/command.c command_process_auth_challenge_cell    23
42src/or/config.c resolve_my_address      23
43src/or/networkstatus.c routerstatus_has_changed 23
44src/or/relay.c relay_command_to_string  23
45src/or/rendcommon.c rend_encode_v2_descriptors  23
46src/or/rendcommon.c rend_process_relay_cell     23
47src/or/router.c extrainfo_dump_to_string        23
48src/or/eventdns.c evdns_server_request_format_response  24
49src/or/main.c conn_close_if_marked      24
50src/or/relay.c connection_edge_package_raw_inbuf        24
51src/or/routerparse.c extrainfo_parse_entry_from_string  24
52src/or/transports.c handle_proxy_line   24
53src/tools/tor-resolve.c do_resolve      24
54src/common/torgzip.c tor_gzip_uncompress        25
55src/or/circuitbuild.c circuit_send_next_onion_skin      25
56src/or/circuituse.c circuit_predict_and_launch_new      25
57src/or/routerlist.c router_pick_directory_server_impl   25
58src/or/routerparse.c rend_parse_v2_service_descriptor   25
59src/common/address.c tor_addr_is_internal       26
60src/or/connection_or.c connection_or_group_set_badness  26
61src/or/routerparse.c tor_version_parse  26
62src/or/circuitbuild.c entry_guards_parse_state  27
63src/or/dirvote.c networkstatus_compute_bw_weights_v10   27
64src/or/networkstatus.c router_set_networkstatus_v2      27
65src/or/routerlist.c smartlist_choose_node_by_bandwidth_weights  27
66src/common/util.c unescape_string       28
67src/or/circuitlist.c circuit_find_to_cannibalize        28
68src/or/config.c options_init_logs       28
69src/or/config.c parse_dir_server_line   28
70src/or/directory.c directory_send_command       28
71src/or/router.c router_dump_router_to_string    28
72src/or/routerlist.c routerlist_remove_old_routers       28
73src/or/routerparse.c networkstatus_v2_parse_from_string 28
74src/tools/tor-resolve.c main    28
75src/or/connection_edge.c connection_exit_begin_conn     29
76src/or/eventdns.c request_parse 29
77src/or/main.c run_connection_housekeeping       29
78src/or/relay.c circuit_resume_edge_reading_helper       29
79src/or/routerparse.c authority_cert_parse_from_string   29
80src/tools/tor-gencert.c parse_commandline       29
81src/common/compat.c tor_inet_ntop       30
82src/or/circuitlist.c _circuit_mark_for_close    30
83src/or/command.c command_process_versions_cell  30
84src/or/connection.c connection_listener_new     30
85src/or/control.c handle_control_authenticate    30
86src/or/routerparse.c get_next_token     30
87src/or/routerparse.c tokenize_string    30
88src/or/config.c get_assigned_option     31
89src/or/circuituse.c connection_ap_handshake_attach_circuit      32
90src/or/connection.c _connection_free    32
91src/or/control.c handle_control_attachstream    32
92src/or/dirserv.c dirserv_get_status_impl        32
93src/or/rendservice.c rend_config_services       32
94src/or/routerlist.c smartlist_choose_node_by_bandwidth  32
95src/or/relay.c connection_ap_process_end_not_open       33
96src/or/relay.c connection_edge_process_relay_cell_not_open      34
97src/or/routerlist.c router_differences_are_cosmetic     34
98src/common/compat.c tor_inet_pton       35
99src/or/connection.c connection_handle_read_impl 35
100src/common/tortls.c tor_tls_context_new 36
101src/or/config.c config_assign_value     36
102src/or/connection.c connection_read_to_buf      36
103src/common/address.c tor_addr_parse_mask_ports  37
104src/or/command.c command_process_authenticate_cell      37
105src/or/directory.c directory_get_from_dirserver 38
106src/or/control.c control_event_stream_status    39
107src/or/routerlist.c router_add_to_routerlist    40
108src/or/control.c getinfo_helper_dir     41
109src/or/connection.c connection_handle_write_impl        44
110src/or/dirvote.c networkstatus_compute_bw_weights_v9    44
111src/or/config.c parse_port_config       45
112src/or/connection.c conn_state_to_string        45
113src/or/control.c getinfo_helper_events  45
114src/or/rephist.c rep_hist_load_mtbf_data        45
115src/common/util.c parse_config_line_from_str    46
116src/or/router.c init_keys       46
117src/or/circuituse.c circuit_is_acceptable       47
118src/or/rendservice.c rend_service_introduce     48
119src/or/routerparse.c networkstatus_verify_bw_weights    49
120src/or/connection.c assert_connection_ok        51
121src/or/networkstatus.c networkstatus_set_current_consensus      52
122src/or/circuituse.c circuit_get_open_circ_or_launch     54
123src/or/eventdns.c reply_parse   54
124src/or/command.c command_process_certs_cell     55
125src/or/routerparse.c routerstatus_parse_entry_from_string       57
126src/or/buffers.c parse_socks    60
127src/or/routerparse.c router_parse_entry_from_string     61
128src/or/circuituse.c circuit_expire_building     62
129src/or/relay.c connection_edge_process_relay_cell       71
130src/or/connection_edge.c connection_ap_handshake_rewrite_and_attach     72
131src/or/dirvote.c networkstatus_compute_consensus        72
132src/or/control.c connection_control_process_inbuf       73
133src/or/main.c run_scheduled_events      96
134src/or/routerparse.c networkstatus_parse_vote_from_string       96
135src/or/directory.c directory_handle_command_get 103
136src/or/directory.c connection_dir_client_reached_eof    111
137src/or/config.c options_act     148
138src/or/config.c options_validate        258