Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Fuzzer details

Fuzzer: Fuzz_json

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 47 23.6%
gold [1:9] 30 15.0%
yellow [10:29] 6 3.01%
greenyellow [30:49] 1 0.50%
lawngreen 50+ 115 57.7%
All colors 199 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
133 136 2 :

['nxt_process_arguments', 'nxt_log_start']

133 136 nxt_lib_start call site: 00064 /src/unit/src/nxt_lib.c:113
25 39 2 :

['nxt_free', 'nxt_rbtree_delete']

25 39 nxt_mp_chunk_free call site: 00000 /src/unit/src/nxt_mp.c:899
6 6 3 :

['open64', 'close', 'read']

8 15 nxt_random_stir call site: 00058 /src/unit/src/nxt_random.c:85
6 6 3 :

['open64', 'dup2', 'close']

6 6 nxt_stderr_start call site: 00003 /src/unit/src/nxt_file.c:611
5 5 1 :

['nxt_thread_time_shared']

5 5 nxt_thread_time_update call site: 00015 /src/unit/src/nxt_thread_time.c:52
2 7 2 :

['nxt_thread_tid', 'gettimeofday']

2 9 nxt_random_stir call site: 00059 /src/unit/src/nxt_random.c:94
0 142 1 :

['nxt_mp_alloc_large']

0 142 nxt_mp_align call site: 00000 /src/unit/src/nxt_mp.c:445
0 0 None 16 43 nxt_vsprintf call site: 00000 /src/unit/src/nxt_sprintf.c:302
0 0 None 16 43 nxt_vsprintf call site: 00000 /src/unit/src/nxt_sprintf.c:310
0 0 None 16 43 nxt_vsprintf call site: 00000 /src/unit/src/nxt_sprintf.c:316
0 0 None 16 43 nxt_vsprintf call site: 00000 /src/unit/src/nxt_sprintf.c:543
0 0 None 14 128 nxt_strerror_start call site: 00021 /src/unit/src/nxt_errno.c:71

Runtime coverage analysis

Covered functions
78
Functions that are reachable but not covered
41
Reachable functions
96
Percentage of reachable functions covered
57.29%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
fuzzer/Fuzz_json.c 1
src/nxt_lib.c 1
src/nxt_file.c 1
src/nxt_log.c 1
src/nxt_thread_time.c 4
src/nxt_time.c 2
src/nxt_errno.c 2
src/nxt_malloc.c 5
src/nxt_log_moderation.c 2
src/nxt_spinlock.c 3
src/nxt_timer.c 3
src/nxt_rbtree.c 6
src/nxt_random.c 3
src/nxt_thread.c 1
src/nxt_process_title.c 1
src/nxt_mp.c 9
src/nxt_conf.c 10
src/nxt_utf8.c 1
src/nxt_djb_hash.c 1
src/nxt_lvlhsh.c 11
src/nxt_list.c 2

Fuzzer: Fuzz_http

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 52 32.2%
gold [1:9] 40 24.8%
yellow [10:29] 3 1.86%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 66 40.9%
All colors 161 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
133 136 2 :

['nxt_process_arguments', 'nxt_log_start']

133 136 nxt_lib_start call site: 00064 /src/unit/src/nxt_lib.c:113
48 48 1 :

['nxt_lvlhsh_bucket_convertion_insert']

48 48 nxt_lvlhsh_level_convertion_insert call site: 00077 /src/unit/src/nxt_lvlhsh.c:526
6 6 3 :

['open64', 'close', 'read']

8 15 nxt_random_stir call site: 00058 /src/unit/src/nxt_random.c:85
6 6 3 :

['open64', 'dup2', 'close']

6 6 nxt_stderr_start call site: 00003 /src/unit/src/nxt_file.c:611
5 5 1 :

['nxt_thread_time_shared']

5 5 nxt_thread_time_update call site: 00015 /src/unit/src/nxt_thread_time.c:52
2 7 2 :

['nxt_thread_tid', 'gettimeofday']

2 9 nxt_random_stir call site: 00059 /src/unit/src/nxt_random.c:94
0 142 1 :

['nxt_mp_alloc_large']

0 142 nxt_mp_get call site: 00099 /src/unit/src/nxt_mp.c:1005
0 0 None 16 43 nxt_vsprintf call site: 00000 /src/unit/src/nxt_sprintf.c:302
0 0 None 16 43 nxt_vsprintf call site: 00000 /src/unit/src/nxt_sprintf.c:310
0 0 None 16 43 nxt_vsprintf call site: 00000 /src/unit/src/nxt_sprintf.c:316
0 0 None 16 43 nxt_vsprintf call site: 00000 /src/unit/src/nxt_sprintf.c:543
0 0 None 14 128 nxt_strerror_start call site: 00021 /src/unit/src/nxt_errno.c:71

Runtime coverage analysis

Covered functions
76
Functions that are reachable but not covered
42
Reachable functions
96
Percentage of reachable functions covered
56.25%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
fuzzer/Fuzz_http.c 2
src/nxt_lib.c 1
src/nxt_file.c 1
src/nxt_log.c 1
src/nxt_thread_time.c 4
src/nxt_time.c 2
src/nxt_errno.c 2
src/nxt_malloc.c 5
src/nxt_log_moderation.c 2
src/nxt_spinlock.c 3
src/nxt_timer.c 3
src/nxt_rbtree.c 6
src/nxt_random.c 3
src/nxt_thread.c 1
src/nxt_process_title.c 1
src/nxt_http_parse.c 11
src/nxt_lvlhsh.c 11
src/nxt_mp.c 10
src/nxt_list.c 2

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
nxt_router_conf_data_handler /src/unit/src/nxt_router.c 2 ['struct.nxt_task_s *', 'struct.nxt_port_recv_msg_s *'] 36 0 396 41 13 609 0 4002 3493
nxt_runtime_create /src/unit/src/nxt_runtime.c 1 ['struct.nxt_task_s *'] 32 0 288 35 17 434 0 2410 830
nxt_controller_process_config /src/unit/src/nxt_controller.c 3 ['struct.nxt_task_s *', 'struct.nxt_controller_request_t *', 'struct.nxt_str_t *'] 29 0 776 94 34 269 14 1782 324
nxt_isolation_main_prefork /src/unit/src/nxt_isolation.c 3 ['struct.nxt_task_s *', 'struct.nxt_process_s *', 'struct.nxt_mp_s *'] 17 0 396 51 18 88 0 614 182
nxt_h1p_request_header_send /src/unit/src/nxt_h1proto.c 4 ['struct.nxt_task_s *', 'struct.nxt_http_request_s *', 'func_type *', 'char *'] 20 0 1072 137 44 120 0 791 179
nxt_port_queue_read_handler /src/unit/src/nxt_port_socket.c 3 ['struct.nxt_task_s *', 'char *', 'char *'] 16 0 1383 173 55 136 0 839 142
nxt_proto_setup /src/unit/src/nxt_application.c 2 ['struct.nxt_task_s.2204 *', 'struct.nxt_process_s.2183 *'] 10 0 382 54 18 62 0 330 137
nxt_h1p_request_close /src/unit/src/nxt_h1proto.c 3 ['struct.nxt_task_s *', 'char *', 'struct.nxt_socket_conf_joint_t *'] 23 0 139 14 5 232 0 1618 85
nxt_epoll_edge_conn_io_connect /src/unit/src/nxt_epoll_engine.c 3 ['struct.nxt_task_s.4685 *', 'char *', 'char *'] 12 0 120 9 10 40 0 215 79
nxt_h1p_peer_header_read_done /src/unit/src/nxt_h1proto.c 3 ['struct.nxt_task_s *', 'char *', 'char *'] 18 0 490 53 14 70 0 448 71

Implementing fuzzers that target the above functions will improve reachability such that it becomes:

Functions statically reachable by fuzzers
65.0%
814 / 1257
Cyclomatic complexity statically reachable by fuzzers
70.0%
6006 / 8593

All functions overview

If you implement fuzzers for these functions, the status of all functions in the project will be:

Func name Functions filename Args Function call depth Reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Files and Directories in report

This section shows which files and directories are considered in this report. The main reason for showing this is fuzz introspector may include more code in the reasoning than is desired. This section helps identify if too many files/directories are included, e.g. third party code, which may be irrelevant for the threat model. In the event too much is included, fuzz introspector supports a configuration file that can exclude data from the report. See the following link for more information on how to create a config file: link

Files in report

Source file Reached by Covered by
[] []
/src/unit/src/nxt_log.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_sha1.c [] []
/src/unit/src/nxt_http_error.c [] []
/src/unit/src/nxt_runtime.c [] []
/src/unit/src/nxt_router_access_log.c [] []
/src/unit/src/nxt_recvbuf.c [] []
/src/unit/src/nxt_lib.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_signal_handlers.c [] []
/src/unit/src/nxt_port_hash.c [] []
/src/unit/src/nxt_poll_engine.c [] []
/src/unit/src/nxt_thread_pool.c [] []
/src/unit/src/nxt_utf8.c ['Fuzz_json'] ['Fuzz_json']
/src/unit/fuzzer/../src/nxt_h1proto.c [] []
/src/unit/src/nxt_main_process.c [] []
/src/unit/src/nxt_buf.h [] []
/src/unit/src/nxt_sendbuf.c [] []
/src/unit/src/nxt_linux_sendfile.c [] []
/src/unit/src/nxt_parse.c [] []
/src/unit/src/nxt_app_nncq.h [] []
/src/unit/src/nxt_http_proxy.c [] []
/src/unit/src/nxt_router.c [] []
/src/unit/src/nxt_external.c [] []
/src/unit/src/nxt_http_return.c [] []
/src/unit/src/nxt_djb_hash.c ['Fuzz_json'] ['Fuzz_json']
/src/unit/src/nxt_http_chunk_parse.c [] []
/src/unit/src/nxt_var.c [] []
/src/unit/src/nxt_http_route.c [] []
/src/unit/src/nxt_port_socket.c [] []
/src/unit/src/nxt_socket_msg.c [] []
/src/unit/src/nxt_upstream.c [] []
/src/unit/src/nxt_thread_time.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_murmur_hash.c [] []
/src/unit/src/nxt_mem_map.c [] []
/src/unit/src/nxt_http_set_headers.c [] []
/src/unit/src/nxt_buf.c [] []
/src/unit/src/nxt_http_rewrite.c [] []
/src/unit/src/nxt_application.c [] []
/src/unit/src/nxt_port_memory.c [] []
/src/unit/src/nxt_h1proto_websocket.c [] []
/src/unit/src/nxt_conn_connect.c [] []
/src/unit/src/nxt_semaphore.c [] []
/src/unit/src/nxt_file_name.c [] []
/src/unit/src/nxt_array.c [] []
/src/unit/src/nxt_process_title.c ['Fuzz_json', 'Fuzz_http'] []
/src/unit/src/nxt_port.c [] []
/src/unit/src/nxt_mp.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_listen_socket.c [] []
/src/unit/src/nxt_nncq.h [] []
/src/unit/src/nxt_sprintf.c [] []
/src/unit/src/nxt_websocket_accept.c [] []
/src/unit/src/nxt_thread_mutex.c [] []
/src/unit/src/nxt_log_moderation.c ['Fuzz_json', 'Fuzz_http'] []
/src/unit/src/nxt_http_parse.c ['Fuzz_http'] ['Fuzz_http']
/src/unit/src/nxt_port_rpc.c [] []
/src/unit/src/nxt_clone.c [] []
/src/unit/src/nxt_conn_write.c [] []
/src/unit/src/nxt_sockaddr.c [] []
/src/unit/src/nxt_work_queue.c [] []
/src/unit/src/nxt_conf_validation.c [] []
/src/unit/src/nxt_status.c [] []
/src/unit/src/nxt_gmtime.c [] []
/src/unit/src/nxt_credential.c [] []
/src/unit/src/nxt_http_route_addr.c [] []
/src/unit/src/nxt_time.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_fs_mount.c [] []
/src/unit/fuzzer/Fuzz_json.c ['Fuzz_json'] ['Fuzz_json']
/src/unit/src/nxt_service.c [] []
/src/unit/src/nxt_process.c [] []
/src/unit/src/nxt_isolation.c [] []
/src/unit/src/nxt_list.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_upstream_round_robin.c [] []
/src/unit/src/nxt_random.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_conf.c ['Fuzz_json'] ['Fuzz_json']
/src/unit/src/nxt_select_engine.c [] []
/src/unit/src/nxt_tstr.c [] []
/src/unit/src/nxt_timer.c ['Fuzz_json', 'Fuzz_http'] []
/src/unit/src/nxt_event_engine.c [] []
/src/unit/src/nxt_unit_sptr.h [] []
/src/unit/src/nxt_conn_read.c [] []
/src/unit/src/nxt_http_variables.c [] []
/src/unit/src/nxt_lvlhsh.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_fs.c [] []
/src/unit/src/nxt_http_static.c [] []
/src/unit/src/nxt_rbtree.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_conn.c [] []
/src/unit/src/nxt_spinlock.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_socket.c [] []
/src/unit/fuzzer/Fuzz_http.c ['Fuzz_http'] ['Fuzz_http']
/src/unit/src/nxt_h1proto.c [] []
/src/unit/src/nxt_controller.c [] []
/src/unit/src/nxt_conn_accept.c [] []
/src/unit/src/nxt_capability.c [] []
/src/unit/src/nxt_signal.c [] []
/src/unit/src/nxt_string.c [] []
/src/unit/src/nxt_http_response.c [] []
/src/unit/src/nxt_conn_close.c [] []
/src/unit/src/nxt_thread.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_epoll_engine.c [] []
/src/unit/src/nxt_http_request.c [] []
/src/unit/src/nxt_socketpair.c [] []
/src/unit/src/nxt_http_websocket.c [] []
/src/unit/src/nxt_malloc.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_errno.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']
/src/unit/src/nxt_websocket.c [] []
/src/unit/src/nxt_file.c ['Fuzz_json', 'Fuzz_http'] ['Fuzz_json', 'Fuzz_http']

Directories in report

Directory
/src/unit/fuzzer/
/src/unit/src/
/src/unit/fuzzer/../src/