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

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
1673 1673 2 :

['rtpp_cfile_process', 'init_config_bail']

1701 1721 init_config call site: 00000 /src/rtpproxy/src/main.c:676
622 695 11 :

['free', 'rtpp_session_ctor', 'ul_reply_port', 'handle_nomem', 'rtpp_rlim_max', 'rtpp_create_listener', 'rtp_resizer_new', 'rtp_resizer_set_ptime', 'rtp_resizer_free', 'handle_copy', 'rtpp_timeout_data_ctor']

622 793 rtpp_command_ul_handle call site: 00249 /src/rtpproxy/src/../src/commands/rpcpv1_ul.c:520
126 874 6 :

['pthread_mutex_unlock', 'free_command', 'pthread_mutex_lock', 'handle_command', 'rtpp_command_stream_get', 'flush_cstats']

126 874 process_commands_stream call site: 00000 /src/rtpproxy/src/rtpp_command_async.c:230
82 82 3 :

['prdic_free', 'rtpp_queue_destroy', 'free']

82 82 rtpp_timed_ctor call site: 00000 /src/rtpproxy/src/rtpp_timed.c:173
76 83 7 :

['_rtpp_log_unlock', '_rtpp_log_lock', 'getdtime', 'strlvl', 'vsyslog_async', 'ftime', 'fflush']

76 83 _rtpp_log_write_va call site: 00000 /src/rtpproxy/src/rtpp_log_stand.c:256
67 67 3 :

['rtpp_proc_async_thread_destroy', 'free', 'rtpp_netio_async_destroy']

67 67 rtpp_proc_async_ctor call site: 00000 /src/rtpproxy/src/rtpp_proc_async.c:373
55 84 5 :

['rtpp_queue_get_item', 'getdtime', 'rtpp_queue_get_item_by', 'dtime2mtimespec', 'run_servers']

61 90 rtpp_proc_servers_run call site: 00000 /src/rtpproxy/src/rtpp_proc_servers.c:187
50 50 1 :

['syslog_async_init']

60 70 _rtpp_log_open call site: 00000 /src/rtpproxy/src/rtpp_log_stand.c:87
46 46 2 :

['rtpp_daemon', 'getcwd']

147 2293 rtpp_main call site: 00000 /src/rtpproxy/src/main.c:967
35 35 1 :

['rtpp_anetio_sendto']

35 35 rtpc_doreply call site: 00025 /src/rtpproxy/src/rtpp_command.c:200
33 33 2 :

['rtpp_queue_destroy', 'dlclose']

33 33 rtpp_mif_load call site: 00000 /src/rtpproxy/src/rtpp_module_if.c:276
31 31 2 :

['rtpp_queue_destroy', 'free']

31 31 rtpp_notify_ctor call site: 00000 /src/rtpproxy/src/rtpp_notify.c:129

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 rtpp_command_ctor [function] [call site] 00001
2 rtpp_zmalloc [function] [call site] 00002
1 __assert_fail [call site] 00003
1 rtpp_command_split [function] [call site] 00004
2 rtpp_strsplit [function] [call site] 00005
2 memchr [call site] 00006
2 strlen [call site] 00007
2 rtpp_command_guard_retrans [function] [call site] 00008
3 strlen [call site] 00009
3 rtpp_anetio_sendto [function] [call site] 00010
4 rtpp_wi_malloc [function] [call site] 00011
5 rtpp_rmalloc [function] [call site] 00012
6 rtpp_refcnt_ctor_pa [function] [call site] 00013
5 rtpp_wi_free [function] [call site] 00014
4 rtpp_queue_put_item [function] [call site] 00015
5 pthread_mutex_lock [call site] 00016
5 circ_buf_push [function] [call site] 00017
5 rtpp_queue_getclen [function] [call site] 00018
5 pthread_cond_signal [call site] 00019
5 pthread_mutex_unlock [call site] 00020
2 rtpp_command_pre_parse [function] [call site] 00021
3 fill_cmd_props [function] [call site] 00022
3 reply_error [function] [call site] 00023
4 snprintf [call site] 00024
4 rtpc_doreply [function] [call site] 00025
5 write [call site] 00026
5 snprintf [call site] 00027
5 rtpp_anetio_sendto [function] [call site] 00028
3 reply_error [function] [call site] 00029
3 reply_error [function] [call site] 00030
3 reply_error [function] [call site] 00031
2 reply_error [function] [call site] 00032
1 handle_command [function] [call site] 00033
2 handle_ver_feature [function] [call site] 00034
3 strcmp [call site] 00035
3 reply_number [function] [call site] 00036
4 snprintf [call site] 00037
4 rtpc_doreply [function] [call site] 00038
3 strcmp [call site] 00039
3 reply_number [function] [call site] 00040
2 reply_number [function] [call site] 00041
2 reply_ok [function] [call site] 00042
3 reply_number [function] [call site] 00043
2 handle_info [function] [call site] 00044
3 reply_error [function] [call site] 00045
3 snprintf [call site] 00046
3 snprintf [call site] 00047
3 rtpc_doreply [function] [call site] 00048
2 rtpp_command_play_opts_parse [function] [call site] 00049
3 rtpp_zmalloc [function] [call site] 00050
3 reply_error [function] [call site] 00051
3 strtol [call site] 00052
3 reply_error [function] [call site] 00053
3 rtpp_command_play_opts_free [function] [call site] 00054
2 reply_error [function] [call site] 00055
2 reply_error [function] [call site] 00056
2 reply_error [function] [call site] 00057
2 reply_error [function] [call site] 00058
2 rtpp_command_del_opts_parse [function] [call site] 00059
3 rtpp_zmalloc [function] [call site] 00060
3 reply_error [function] [call site] 00061
3 reply_error [function] [call site] 00062
3 rtpp_command_del_opts_free [function] [call site] 00063
2 rtpp_command_ul_opts_parse [function] [call site] 00064
3 rtpp_zmalloc [function] [call site] 00065
3 reply_error [function] [call site] 00066
3 ul_opts_init [function] [call site] 00067
3 url_unquote [function] [call site] 00068
4 url_unquote2 [function] [call site] 00069
3 reply_error [function] [call site] 00070
3 reply_error [function] [call site] 00071
3 reply_error [function] [call site] 00072
3 strtol [call site] 00073
3 reply_error [function] [call site] 00074
3 __ctype_b_loc [call site] 00075
3 reply_error [function] [call site] 00076
3 reply_error [function] [call site] 00077
3 extractaddr [function] [call site] 00078
4 __ctype_b_loc [call site] 00079
4 __ctype_b_loc [call site] 00080
3 reply_error [function] [call site] 00081
3 reply_error [function] [call site] 00082
3 extractaddr [function] [call site] 00083
3 reply_error [function] [call site] 00084
3 resolve [function] [call site] 00085
4 getaddrinfo [call site] 00086
4 freeaddrinfo [call site] 00087
3 gai_strerror [call site] 00088
3 reply_error [function] [call site] 00089
3 local4remote [function] [call site] 00090
4 socket [call site] 00091
4 connect [call site] 00092
4 close [call site] 00093
4 getsockname [call site] 00094
4 close [call site] 00095
3 reply_error [function] [call site] 00096
3 reply_error [function] [call site] 00097
3 reply_error [function] [call site] 00098
3 reply_error [function] [call site] 00099
3 strlen [call site] 00100
3 ishostnull [function] [call site] 00102
4 abort [call site] 00103
3 reply_error [function] [call site] 00104
3 ntohs [call site] 00105
3 htons [call site] 00106
3 gai_strerror [call site] 00107
3 reply_error [function] [call site] 00108
3 rtpp_command_ul_opts_free [function] [call site] 00109
2 reply_error [function] [call site] 00110
2 handle_get_stats [function] [call site] 00111
3 snprintf [call site] 00112
3 snprintf [call site] 00113
3 snprintf [call site] 00114
3 rtpc_doreply [function] [call site] 00115
2 reply_error [function] [call site] 00116
2 rtpp_subcommand_ul_opts_parse [function] [call site] 00117
3 atoi_safe_sep [function] [call site] 00118
4 strtol [call site] 00119
3 atoi_safe [function] [call site] 00120
4 atoi_safe_sep [function] [call site] 00121
3 rtpp_command_del_opts_parse [function] [call site] 00122
2 rtpp_command_ul_opts_free [function] [call site] 00123
2 reply_error [function] [call site] 00124
2 handle_delete [function] [call site] 00125
3 rtpp_cmd_delete_ematch [function] [call site] 00126
4 compare_session_tags [function] [call site] 00127
5 memcmp [call site] 00128
5 strtoul [call site] 00129
4 compare_session_tags [function] [call site] 00130
3 rtpp_command_del_opts_free [function] [call site] 00131
2 handle_record [function] [call site] 00132
3 rtpp_cmd_record_ematch [function] [call site] 00133
4 compare_session_tags [function] [call site] 00134
4 compare_session_tags [function] [call site] 00135
4 handle_copy [function] [call site] 00136
5 strncmp [call site] 00137
5 rtpp_record_ctor [function] [call site] 00138
6 strncmp [call site] 00139
6 rtpp_rzmalloc [function] [call site] 00140
7 rtpp_refcnt_ctor_pa [function] [call site] 00141
6 pthread_mutex_init [call site] 00142
6 ropen_remote_ctor_pa [function] [call site] 00143
7 strdup [call site] 00144
7 strrchr [call site] 00145
7 atoi [call site] 00146
7 sprintf [call site] 00147
7 gai_strerror [call site] 00149
7 socket [call site] 00150
7 connect [call site] 00151
7 close [call site] 00152
6 rtpp_record_close [function] [call site] 00153
7 flush_rbuf [function] [call site] 00154
8 write [call site] 00155
8 close [call site] 00156
7 close [call site] 00157
7 unlink [call site] 00158
7 rename [call site] 00159
7 pthread_mutex_destroy [call site] 00160
6 sprintf [call site] 00161
6 sprintf [call site] 00162
6 sprintf [call site] 00163
6 open [call site] 00164
6 rtpp_record_close [function] [call site] 00165
6 close [call site] 00166
6 pthread_mutex_destroy [call site] 00167
5 __assert_fail [call site] 00168
5 rtpp_record_ctor [function] [call site] 00169
5 rtpp_record_ctor [function] [call site] 00170
2 handle_norecord [function] [call site] 00171
3 rtpp_cmd_norecord_ematch [function] [call site] 00172
4 compare_session_tags [function] [call site] 00173
4 compare_session_tags [function] [call site] 00174
4 handle_stop_record [function] [call site] 00175
4 handle_stop_record [function] [call site] 00176
2 find_stream [function] [call site] 00177
3 rtpp_session_ematch [function] [call site] 00178
4 compare_session_tags [function] [call site] 00179
4 strrchr [call site] 00180
4 strrchr [call site] 00181
2 rtpp_command_ul_opts_free [function] [call site] 00182
2 ul_reply_port [function] [call site] 00183
3 ishostnull [function] [call site] 00184
3 snprintf [call site] 00185
3 addr2char_r [function] [call site] 00186
4 abort [call site] 00187
4 inet_ntop [call site] 00188
3 snprintf [call site] 00189
3 snprintf [call site] 00190
3 snprintf [call site] 00191
3 snprintf [call site] 00192
3 snprintf [call site] 00193
3 rtpc_doreply [function] [call site] 00194
2 rtpp_command_play_opts_free [function] [call site] 00195
2 reply_error [function] [call site] 00196
2 rtpp_command_play_handle [function] [call site] 00199
3 strcmp [call site] 00200
3 reply_error [function] [call site] 00201
3 reply_error [function] [call site] 00202
3 rtpp_command_play_opts_free [function] [call site] 00204
2 handle_copy [function] [call site] 00205
2 reply_error [function] [call site] 00206
2 handle_query [function] [call site] 00208
3 handle_query_simple [function] [call site] 00209
4 snprintf [call site] 00210
4 snprintf [call site] 00211
3 snprintf [call site] 00212
3 snprintf [call site] 00213
3 strcmp [call site] 00214
3 strcmp [call site] 00215
3 snprintf [call site] 00216
3 strcmp [call site] 00217
3 snprintf [call site] 00218
3 snprintf [call site] 00219
3 strcmp [call site] 00220
3 strcmp [call site] 00221
3 snprintf [call site] 00222
3 strcmp [call site] 00223
3 snprintf [call site] 00224
3 strcmp [call site] 00225
3 snprintf [call site] 00226
3 strcmp [call site] 00227
3 snprintf [call site] 00228
3 strcmp [call site] 00229
3 snprintf [call site] 00230
3 strcmp [call site] 00231
3 snprintf [call site] 00232
3 strcmp [call site] 00233
3 snprintf [call site] 00234
3 strcmp [call site] 00235
3 snprintf [call site] 00236
3 snprintf [call site] 00237
3 snprintf [call site] 00238
2 reply_error [function] [call site] 00239
2 rtpp_command_ul_handle [function] [call site] 00240
3 reply_error [function] [call site] 00241
3 rtpp_create_listener [function] [call site] 00242
4 create_twinlistener [function] [call site] 00243
5 rtpp_socket_ctor [function] [call site] 00244
6 rtpp_rzmalloc [function] [call site] 00245
6 socket [call site] 00246
6 setsockopt [call site] 00247
5 htons [call site] 00248
3 reply_error [function] [call site] 00249
3 reply_error [function] [call site] 00250
3 reply_error [function] [call site] 00251
3 rtpp_create_listener [function] [call site] 00252
3 reply_error [function] [call site] 00253
3 rtpp_session_ctor [function] [call site] 00254
4 rtpp_rzmalloc [function] [call site] 00255
4 rtpp_gen_uid [function] [call site] 00256
4 rtpp_log_ctor [function] [call site] 00257
5 rtpp_rzmalloc [function] [call site] 00258
5 rtpp_gen_uid [function] [call site] 00259
5 rtpp_log_obj_dtor [function] [call site] 00260
6 _rtpp_log_close [function] [call site] 00261
4 rtpp_pipe_ctor [function] [call site] 00262
5 rtpp_rzmalloc [function] [call site] 00263
5 rtpp_gen_uid [function] [call site] 00264
5 rtpp_stream_ctor [function] [call site] 00265
6 rtpp_rzmalloc [function] [call site] 00266
6 rtpp_analyzer_ctor [function] [call site] 00267
7 rtpp_rzmalloc [function] [call site] 00268
7 rtpp_stats_init [function] [call site] 00269
8 rtp_analyze_jt_ctor [function] [call site] 00270
9 rtpp_zmalloc [function] [call site] 00271
9 rtp_analyze_jdata_ctor [function] [call site] 00272
10 rtpp_zmalloc [function] [call site] 00273
10 rtpp_ringbuf_ctor [function] [call site] 00274
11 rtpp_rzmalloc [function] [call site] 00275
11 rtpp_zmalloc [function] [call site] 00276
11 rtpp_ringbuf_dtor [function] [call site] 00277
7 rtpp_analyzer_dtor [function] [call site] 00278
8 rtpp_stats_destroy [function] [call site] 00279
9 rtp_analyze_jt_destroy [function] [call site] 00280
6 rtpp_pcnt_strm_ctor [function] [call site] 00281
7 rtpp_rzmalloc [function] [call site] 00282
7 pthread_mutex_init [call site] 00283
7 rtpp_pcnt_strm_dtor [function] [call site] 00284
6 rtpp_netaddr_ctor [function] [call site] 00285
7 rtpp_rzmalloc [function] [call site] 00286
7 pthread_mutex_init [call site] 00287
7 rtpp_netaddr_dtor [function] [call site] 00288
8 pthread_mutex_destroy [call site] 00289
6 rtpp_netaddr_ctor [function] [call site] 00290
6 rtpp_gen_uid [function] [call site] 00291
6 rtpp_stream_dtor [function] [call site] 00292
7 _rtpp_stream_get_actor [function] [call site] 00293
7 snprintf [call site] 00294
7 rtp_resizer_free [function] [call site] 00295
7 pthread_mutex_destroy [call site] 00296
5 rtpp_pcount_ctor [function] [call site] 00297
6 rtpp_pcount_dtor [function] [call site] 00298
5 rtpp_pipe_dtor [function] [call site] 00299
4 rtpp_pipe_ctor [function] [call site] 00300
4 rtpp_acct_ctor [function] [call site] 00301
5 rtpp_rzmalloc [function] [call site] 00302
5 rtpp_acct_dtor [function] [call site] 00303
4 _rtpp_str_dup2_sf [function] [call site] 00304
5 _rtpp_str_dup2 [function] [call site] 00305
4 _rtpp_str_dup2_sf [function] [call site] 00306
4 _rtpp_str_dup2_sc [function] [call site] 00307
5 _rtpp_str_dup2 [function] [call site] 00308
4 rtpp_ttl_ctor [function] [call site] 00309
5 rtpp_rzmalloc [function] [call site] 00310
5 pthread_mutex_init [call site] 00311
5 rtpp_ttl_dtor [function] [call site] 00312
6 pthread_mutex_destroy [call site] 00313
4 rtpp_session_dtor [function] [call site] 00314
5 rtpp_timestamp_get [function] [call site] 00315
6 _getdtime [function] [call site] 00316
7 clock_gettime [call site] 00317
6 _getdtime [function] [call site] 00318
3 handle_nomem [function] [call site] 00319
4 reply_error [function] [call site] 00320
3 handle_nomem [function] [call site] 00321
3 handle_nomem [function] [call site] 00322
3 rtpp_rlim_max [function] [call site] 00323
3 rtpp_rlim_max [function] [call site] 00324
3 handle_copy [function] [call site] 00325
3 handle_copy [function] [call site] 00326
3 rtpp_timeout_data_ctor [function] [call site] 00327
4 rtpp_rzmalloc [function] [call site] 00328
3 rtp_resizer_set_ptime [function] [call site] 00329
4 rtp_resizer_get_ptime [function] [call site] 00330
3 rtp_resizer_new [function] [call site] 00331
4 rtpp_zmalloc [function] [call site] 00332
4 rtp_resizer_set_ptime [function] [call site] 00333
3 rtp_resizer_free [function] [call site] 00334
3 ul_reply_port [function] [call site] 00335
2 rtpp_command_ul_opts_free [function] [call site] 00336
2 abort [call site] 00337
1 free_command [function] [call site] 00338