Fuzz introspector: fuzz_oid
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
38 38 2 :

['releaseMechInfo', 'strdup']

38 38 gssint_register_mechinfo call site: 00000 /src/krb5/src/lib/gssapi/mechglue/g_initialize.c:637
4 4 3 :

['explicit_bzero', 'strlen', 'free']

15 39 k5_buf_add_vfmt call site: 00022 /src/krb5/src/util/support/k5buf.c:192
4 4 2 :

['mecherrmap__pairarray_max_size', 'realloc']

4 4 mecherrmap__pairarray_grow call site: 00090 /src/krb5/src/lib/gssapi/generic/./errmap.h:100
4 4 1 :

['mecherrmap_destroy']

4 4 gssint_mecherrmap_init call site: 00000 /src/krb5/src/lib/gssapi/generic/util_errmap.c:147
2 2 1 :

['set_error']

2 4 k5_buf_add_vfmt call site: 00016 /src/krb5/src/util/support/k5buf.c:172
2 2 1 :

['strerror']

2 2 k5_mutex_lock call site: 00053 /src/krb5/src/util/support/../../include/k5-thread.h:371
2 2 1 :

['strerror']

2 2 k5_mutex_unlock call site: 00067 /src/krb5/src/util/support/../../include/k5-thread.h:383
2 2 1 :

['abort']

2 2 mecherrmap__pairarray_getaddr call site: 00062 /src/krb5/src/lib/gssapi/generic/./errmap.h:118
2 2 1 :

['set_error']

2 2 k5_buf_init_dynamic call site: 00003 /src/krb5/src/util/support/k5buf.c:129
0 115 1 :

['gssint_mecherrmap_map_errcode']

0 115 gss_oid_to_str call site: 00002 /src/krb5/src/lib/gssapi/mechglue/g_oid_ops.c:102
0 0 None 152 152 gssint_register_mechinfo call site: 00000 /src/krb5/src/lib/gssapi/mechglue/g_initialize.c:616
0 0 None 114 114 gssint_register_mechinfo call site: 00000 /src/krb5/src/lib/gssapi/mechglue/g_initialize.c:623

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 gss_oid_to_str [function] [call site] 00001
2 generic_gss_oid_to_str [function] [call site] 00002
3 k5_buf_init_dynamic [function] [call site] 00003
4 set_error [function] [call site] 00004
3 k5_buf_add [function] [call site] 00005
4 strlen [call site] 00006
4 k5_buf_add_len [function] [call site] 00007
5 ensure_space [function] [call site] 00008
6 __assert_fail [call site] 00009
6 explicit_bzero [call site] 00010
6 realloc [call site] 00011
6 explicit_bzero [call site] 00012
6 set_error [function] [call site] 00013
3 k5_buf_add_fmt [function] [call site] 00015
4 k5_buf_add_vfmt [function] [call site] 00016
5 vsnprintf [call site] 00018
5 set_error [function] [call site] 00019
5 __assert_fail [call site] 00020
5 vsnprintf [call site] 00022
5 ensure_space [function] [call site] 00023
5 vsnprintf [call site] 00025
5 k5_buf_free [function] [call site] 00026
6 __assert_fail [call site] 00027
6 explicit_bzero [call site] 00028
6 set_error [function] [call site] 00029
5 vasprintf [call site] 00030
5 k5_buf_free [function] [call site] 00031
5 ensure_space [function] [call site] 00032
5 strlen [call site] 00034
5 explicit_bzero [call site] 00035
3 k5_buf_add_fmt [function] [call site] 00036
3 k5_buf_add_len [function] [call site] 00037
3 k5buf_to_gss [function] [call site] 00038
4 k5_buf_status [function] [call site] 00039
2 gssint_mecherrmap_map_errcode [function] [call site] 00040
3 gssint_mecherrmap_map [function] [call site] 00041
4 gssint_mechglue_initialize_library [function] [call site] 00042
5 k5_once [function] [call site] 00043
6 krb5int_pthread_loaded [function] [call site] 00044
7 pthread_once [call site] 00045
7 loaded_test_aux [function] [call site] 00046
7 pthread_once [call site] 00047
7 loaded_test_aux [function] [call site] 00048
6 pthread_once [call site] 00049
6 __assert_fail [call site] 00050
5 __assert_fail [call site] 00051
4 k5_mutex_lock [function] [call site] 00052
5 k5_os_mutex_lock [function] [call site] 00053
6 krb5int_pthread_loaded [function] [call site] 00054
6 pthread_mutex_lock [call site] 00055
5 strerror [call site] 00056
5 fprintf [call site] 00057
5 __assert_fail [call site] 00058
4 mecherrmap_findright [function] [call site] 00059
5 mecherrmap_size [function] [call site] 00060
6 mecherrmap__pairarray_size [function] [call site] 00061
5 mecherrmap__pairarray_getaddr [function] [call site] 00062
6 abort [call site] 00063
5 mecherror_cmp [function] [call site] 00064
6 memcmp [call site] 00065
4 k5_mutex_unlock [function] [call site] 00066
5 k5_os_mutex_unlock [function] [call site] 00067
6 krb5int_pthread_loaded [function] [call site] 00068
6 pthread_mutex_unlock [call site] 00069
5 strerror [call site] 00070
5 fprintf [call site] 00071
5 __assert_fail [call site] 00072
4 mecherrmap_findleft [function] [call site] 00073
5 mecherrmap_size [function] [call site] 00074
5 mecherrmap__pairarray_getaddr [function] [call site] 00075
5 cmp_OM_uint32 [function] [call site] 00076
4 mecherrmap_findleft [function] [call site] 00077
4 mecherror_copy [function] [call site] 00078
4 k5_mutex_unlock [function] [call site] 00079
4 mecherrmap_add [function] [call site] 00080
5 mecherrmap__pairarray_getaddr [function] [call site] 00081
5 cmp_OM_uint32 [function] [call site] 00082
5 __assert_fail [call site] 00083
5 cmp_OM_uint32 [function] [call site] 00084
5 abort [call site] 00085
5 mecherror_cmp [function] [call site] 00086
5 __assert_fail [call site] 00087
5 mecherror_cmp [function] [call site] 00088
5 abort [call site] 00089
5 mecherrmap__pairarray_grow [function] [call site] 00090
6 mecherrmap__pairarray_max_size [function] [call site] 00091
6 realloc [call site] 00092
5 mecherrmap__pairarray_set [function] [call site] 00093
6 mecherrmap__pairarray_getaddr [function] [call site] 00094
4 k5_mutex_unlock [function] [call site] 00095
1 gss_release_buffer [function] [call site] 00096
2 gssalloc_free [function] [call site] 00097
1 gss_str_to_oid [function] [call site] 00098
2 generic_gss_str_to_oid [function] [call site] 00099
3 __ctype_b_loc [call site] 00100
3 __ctype_b_loc [call site] 00101
3 get_arc [function] [call site] 00102
4 __ctype_b_loc [call site] 00103
4 __ctype_b_loc [call site] 00104
4 __ctype_b_loc [call site] 00105
3 arc_encoded_length [function] [call site] 00106
3 arc_encoded_length [function] [call site] 00108
3 arc_encode [function] [call site] 00109
4 arc_encoded_length [function] [call site] 00110
3 arc_encode [function] [call site] 00112
3 __assert_fail [call site] 00113
2 gssint_mecherrmap_map_errcode [function] [call site] 00114
1 gss_release_oid [function] [call site] 00115
2 gssint_mechglue_initialize_library [function] [call site] 00116
2 k5_mutex_lock [function] [call site] 00117
2 k5_mutex_unlock [function] [call site] 00118
2 gssint_mecherrmap_map [function] [call site] 00119
2 k5_mutex_unlock [function] [call site] 00120
2 generic_gss_release_oid [function] [call site] 00121