Fuzz introspector: fuzz-url-end-with-slash
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
416 416 3 :

['die', 'error', 'const_error.52762']

416 416 memory_limit_check call site: 00066 /src/git/wrapper.c:26
414 414 1 :

['BUG_fl']

414 414 strbuf_setlen call site: 00107 /src/git/./strbuf.h:166
0 0 None 416 833 xrealloc call site: 00062 /src/git/wrapper.c:131
0 0 None 0 0 strbuf_setlen call site: 00108 /src/git/./strbuf.h:169
0 0 None 0 0 xrealloc call site: 00091 /src/git/wrapper.c:138

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 str_end_url_with_slash [function] [call site] 00001
2 end_url_with_slash [function] [call site] 00002
3 strbuf_addstr [function] [call site] 00003
4 strlen [call site] 00004
4 strbuf_add [function] [call site] 00005
5 strbuf_grow [function] [call site] 00006
6 die [function] [call site] 00007
7 fputs [call site] 00008
7 common_exit [function] [call site] 00009
8 check_bug_if_BUG [function] [call site] 00010
9 BUG_fl [function] [call site] 00011
10 BUG_vfl [function] [call site] 00012
11 BUG_vfl_common [function] [call site] 00013
12 snprintf [call site] 00014
12 vreportf [function] [call site] 00015
13 strlen [call site] 00016
13 fprintf [call site] 00017
13 abort [call site] 00018
13 vsnprintf [call site] 00019
13 _ [function] [call site] 00020
14 gettext [call site] 00021
13 fprintf [call site] 00022
13 fflush [call site] 00023
13 write_in_full [function] [call site] 00024
14 xwrite [function] [call site] 00025
15 write [call site] 00026
15 __errno_location [call site] 00027
15 __errno_location [call site] 00028
15 handle_nonblock [function] [call site] 00029
16 poll [call site] 00030
14 __errno_location [call site] 00031
11 abort [call site] 00032
11 trace2_cmd_error_va_fl [function] [call site] 00033
12 tr2_dst_trace_want [function] [call site] 00034
13 tr2_dst_get_trace_fd [function] [call site] 00035
14 tr2_sysenv_get [function] [call site] 00036
15 getenv [call site] 00038
15 xstrdup [function] [call site] 00039
16 strdup [call site] 00040
14 strcmp [call site] 00043
14 strcasecmp [call site] 00044
14 strcmp [call site] 00045
14 strlen [call site] 00046
14 atoi [call site] 00047
14 is_absolute_path [function] [call site] 00048
15 git_is_dir_sep [function] [call site] 00049
14 is_directory [function] [call site] 00050
15 stat64 [call site] 00051
14 tr2_dst_try_auto_path [function] [call site] 00052
15 tr2_sid_get [function] [call site] 00053
16 tr2_sid_compute [function] [call site] 00054
17 getenv [call site] 00055
17 strbuf_addstr [function] [call site] 00056
17 strbuf_addch [function] [call site] 00057
18 strbuf_avail [function] [call site] 00058
18 strbuf_grow [function] [call site] 00059
19 xrealloc [function] [call site] 00062
20 xmalloc [function] [call site] 00063
21 do_xmalloc [function] [call site] 00064
22 memory_limit_check [function] [call site] 00065
23 git_env_ulong [function] [call site] 00066
24 getenv [call site] 00067
24 git_parse_ulong [function] [call site] 00068
25 git_parse_unsigned [function] [call site] 00069
26 strchr [call site] 00070
26 __errno_location [call site] 00071
26 __errno_location [call site] 00072
26 strtoumax [call site] 00073
26 __errno_location [call site] 00074
26 __errno_location [call site] 00075
26 get_unit_factor [function] [call site] 00076
27 strcasecmp [call site] 00077
27 strcasecmp [call site] 00078
26 __errno_location [call site] 00079
26 __errno_location [call site] 00080
26 __errno_location [call site] 00081
23 const_error [function] [call site] 00085
22 const_error [function] [call site] 00089
20 memory_limit_check [function] [call site] 00090
20 realloc [call site] 00091
17 tr2_sid_append_my_sid_component [function] [call site] 00093
18 getpid [call site] 00094
18 tr2_tbuf_utc_datetime [function] [call site] 00095
19 gmtime_r [call site] 00096
18 strbuf_addstr [function] [call site] 00102
18 strbuf_addch [function] [call site] 00103
18 xgethostname [function] [call site] 00104
19 gethostname [call site] 00105
18 strbuf_add [function] [call site] 00106
19 strbuf_setlen [function] [call site] 00107
20 __assert_fail [call site] 00109
18 strlen [call site] 00110
18 hash_to_hex_algop_r [function] [call site] 00111
18 strbuf_addch [function] [call site] 00112
18 strbuf_add [function] [call site] 00113
18 strbuf_addf [function] [call site] 00114
19 strbuf_vaddf [function] [call site] 00115
20 strbuf_avail [function] [call site] 00116
20 strbuf_grow [function] [call site] 00117
20 vsnprintf [call site] 00118
20 strbuf_avail [function] [call site] 00121
20 strbuf_grow [function] [call site] 00122
20 vsnprintf [call site] 00123
20 strbuf_avail [function] [call site] 00124
20 strbuf_setlen [function] [call site] 00126
17 setenv [call site] 00127
15 strrchr [call site] 00128
15 strbuf_addstr [function] [call site] 00129
15 git_is_dir_sep [function] [call site] 00130
15 strbuf_addch [function] [call site] 00131
15 strbuf_addstr [function] [call site] 00132
15 tr2_dst_too_many_files [function] [call site] 00133
16 tr2_sysenv_get [function] [call site] 00134
16 strbuf_addstr [function] [call site] 00135
16 git_is_dir_sep [function] [call site] 00136
16 strbuf_addbuf [function] [call site] 00137
17 strbuf_grow [function] [call site] 00138
17 strbuf_setlen [function] [call site] 00139
16 strbuf_addstr [function] [call site] 00140
16 opendir [call site] 00141
16 readdir64 [call site] 00142
16 closedir [call site] 00143
16 open64 [call site] 00144
16 strbuf_release [function] [call site] 00145
17 strbuf_init [function] [call site] 00146
18 strbuf_grow [function] [call site] 00147
16 strbuf_release [function] [call site] 00148
15 strbuf_setlen [function] [call site] 00149
15 strbuf_addf [function] [call site] 00150
15 open64 [call site] 00151
15 strbuf_release [function] [call site] 00152
15 tr2_dst_want_warning [function] [call site] 00153
16 tr2_sysenv_get [function] [call site] 00154
15 tr2_sysenv_display_name [function] [call site] 00155
15 tr2_dst_want_warning [function] [call site] 00158
15 tr2_sysenv_display_name [function] [call site] 00159
15 __errno_location [call site] 00160
15 tr2_dst_trace_disable [function] [call site] 00162
16 close [call site] 00163
15 strbuf_release [function] [call site] 00164
15 strbuf_release [function] [call site] 00165
14 tr2_dst_try_path [function] [call site] 00166
15 open64 [call site] 00167
15 tr2_dst_want_warning [function] [call site] 00168
15 tr2_sysenv_display_name [function] [call site] 00169
15 __errno_location [call site] 00170
15 tr2_dst_trace_disable [function] [call site] 00172
14 starts_with [function] [call site] 00173
14 tr2_dst_try_unix_domain_socket [function] [call site] 00174
15 skip_prefix [function] [call site] 00175
15 skip_prefix [function] [call site] 00176
15 skip_prefix [function] [call site] 00177
15 tr2_dst_want_warning [function] [call site] 00178
15 tr2_sysenv_display_name [function] [call site] 00179
15 tr2_dst_trace_disable [function] [call site] 00181
15 is_absolute_path [function] [call site] 00182
15 strlen [call site] 00183
15 tr2_dst_want_warning [function] [call site] 00184
15 tr2_sysenv_display_name [function] [call site] 00185
15 tr2_dst_trace_disable [function] [call site] 00187
15 tr2_dst_try_uds_connect [function] [call site] 00188
16 socket [call site] 00189
16 gitstrlcpy [function] [call site] 00190
17 strlen [call site] 00191
16 connect [call site] 00192
16 close [call site] 00193
16 __errno_location [call site] 00194
15 __errno_location [call site] 00195
15 tr2_dst_try_uds_connect [function] [call site] 00196
15 tr2_dst_want_warning [function] [call site] 00197
15 tr2_sysenv_display_name [function] [call site] 00198
15 __errno_location [call site] 00199
15 tr2_dst_trace_disable [function] [call site] 00201
14 tr2_dst_malformed_warning [function] [call site] 00202
15 tr2_sysenv_display_name [function] [call site] 00203
14 tr2_dst_trace_disable [function] [call site] 00205
11 common_exit [function] [call site] 00206
12 trace2_cmd_exit_fl [function] [call site] 00207
13 trace2_collect_process_info [function] [call site] 00208
14 trace2_is_enabled [function] [call site] 00209
14 getppid [call site] 00210
14 push_ancestry_name [function] [call site] 00211
15 stat_parent_pid [function] [call site] 00212
16 strbuf_addf [function] [call site] 00213
16 git_fopen [function] [call site] 00214
17 fopen64 [call site] 00215
17 fileno [call site] 00216
17 fclose [call site] 00217
17 fclose [call site] 00218
17 __errno_location [call site] 00219
16 strbuf_fread [function] [call site] 00220
17 strbuf_grow [function] [call site] 00221
17 fread [call site] 00222
17 strbuf_setlen [function] [call site] 00223
17 strbuf_release [function] [call site] 00224
16 parse_proc_stat [function] [call site] 00225
17 strchr [call site] 00226
17 strtol [call site] 00227
17 strbuf_add [function] [call site] 00228
16 fclose [call site] 00229
16 strbuf_release [function] [call site] 00230
16 strbuf_release [function] [call site] 00231
15 strvec_push [function] [call site] 00232
16 strvec_push_nodup [function] [call site] 00234
15 push_ancestry_name [function] [call site] 00237
16 strbuf_release [function] [call site] 00238
14 trace2_cmd_ancestry_fl [function] [call site] 00239
15 tr2_dst_trace_want [function] [call site] 00240
14 strvec_clear [function] [call site] 00241
15 strvec_init [function] [call site] 00242
13 getnanotime [function] [call site] 00243
14 highres_nanos [function] [call site] 00244
15 clock_gettime [call site] 00245
14 gettimeofday_nanos [function] [call site] 00246
15 gettimeofday [call site] 00247
14 gettimeofday_nanos [function] [call site] 00248
14 highres_nanos [function] [call site] 00249
13 tr2tls_absolute_elapsed [function] [call site] 00250
13 tr2_dst_trace_want [function] [call site] 00251
11 exit [call site] 00252
3 strbuf_complete [function] [call site] 00253
4 strbuf_addch [function] [call site] 00254
2 strbuf_detach [function] [call site] 00255
3 strbuf_grow [function] [call site] 00256