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

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
9 104 x509_utils_get_subject call site: 00104
5 140 freerdp_certificate_get_fingerprint_by_hash call site: 00140 WLog_ERR
4 147 x509_utils_get_hash call site: 00147 WLog_ERR
3 160 freerdp_certificate_get_fingerprint_by_hash_ex call site: 00160
2 23 extract_chain_from_pem call site: 00023
2 45 freerdp_rsa_from_x509 call site: 00045
2 64 freerdp_rsa_from_x509 call site: 00064
2 73 certificate_free_int call site: 00073 cert_blob_free
2 114 x509_utils_get_subject call site: 00114 WLog_WARN
2 154 x509_utils_get_hash call site: 00154 WLog_ERR
1 6 freerdp_certificate_new_from call site: 00006
1 8 x509_utils_from_pem call site: 00008 WLog_ERR

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000
1 freerdp_certificate_data_new_from_pem [function] [call site] 00003
2 freerdp_certificate_new_from_pem [function] [call site] 00004
3 freerdp_certificate_new_from [function] [call site] 00005
4 x509_utils_from_pem [function] [call site] 00006
5 BIO_new_file [function] [call site] 00007
5 BIO_new_mem_buf [function] [call site] 00008
5 PEM_read_bio_X509 [function] [call site] 00010
5 BIO_free_all [function] [call site] 00011
4 extract_chain_from_pem [function] [call site] 00015
5 BIO_new_file [function] [call site] 00016
5 BIO_new_mem_buf [function] [call site] 00018
5 WINPR_ASSERTING_INT_CAST [function] [call site] 00019
5 PEM_read_bio_X509 [function] [call site] 00020
5 sk_X509_new_null [function] [call site] 00023
5 X509_free [function] [call site] 00024
5 PEM_read_bio_X509 [function] [call site] 00026
5 sk_X509_push [function] [call site] 00027
5 X509_free [function] [call site] 00028
4 freerdp_certificate_new_from_x509 [function] [call site] 00030
5 WINPR_ASSERT [function] [call site] 00031
5 freerdp_certificate_new [function] [call site] 00032
5 WINPR_CAST_CONST_PTR_AWAY [function] [call site] 00034
5 freerdp_rsa_from_x509 [function] [call site] 00036
6 WINPR_ASSERT [function] [call site] 00037
6 freerdp_certificate_is_rsa [function] [call site] 00038
7 WINPR_ASSERT [function] [call site] 00039
7 is_rsa_key [function] [call site] 00040
8 X509_get0_pubkey [function] [call site] 00041
8 EVP_PKEY_id [function] [call site] 00042
6 X509_get0_pubkey [function] [call site] 00043
6 EVP_PKEY_get1_RSA [function] [call site] 00044
6 RSA_get0_key [function] [call site] 00045
6 EVP_PKEY_get_bn_param [function] [call site] 00046
6 EVP_PKEY_get_bn_param [function] [call site] 00047
6 cert_info_create [function] [call site] 00048
7 WINPR_ASSERT [function] [call site] 00049
7 WINPR_ASSERT [function] [call site] 00050
7 read_bignum [function] [call site] 00051
8 WINPR_ASSERT [function] [call site] 00052
8 WINPR_ASSERT [function] [call site] 00053
8 WINPR_ASSERT [function] [call site] 00054
8 BN_num_bytes [function] [call site] 00056
8 BN_bn2bin [function] [call site] 00058
8 crypto_reverse [function] [call site] 00059
7 read_bignum [function] [call site] 00060
7 cert_info_free [function] [call site] 00061
5 sk_X509_deep_copy [function] [call site] 00067
5 freerdp_certificate_free [function] [call site] 00068
6 certificate_free_int [function] [call site] 00069
7 WINPR_ASSERT [function] [call site] 00070
7 X509_free [function] [call site] 00071
7 sk_X509_pop_free [function] [call site] 00072
7 certificate_free_x509_certificate_chain [function] [call site] 00073
7 cert_info_free [function] [call site] 00077
4 sk_X509_pop_free [function] [call site] 00079
4 X509_free [function] [call site] 00080
2 freerdp_certificate_data_new_nocopy [function] [call site] 00081
3 ensure_lowercase [function] [call site] 00088
3 freerdp_certificate_data_load_cache [function] [call site] 00092
4 WINPR_ASSERT [function] [call site] 00093
4 freerdp_certificate_data_hash_ [function] [call site] 00094
5 _snprintf [function] [call site] 00095
5 ensure_lowercase [function] [call site] 00096
5 ensure_valid_charset [function] [call site] 00097
4 freerdp_certificate_get_subject [function] [call site] 00100
5 WINPR_ASSERT [function] [call site] 00101
5 x509_utils_get_subject [function] [call site] 00102
6 crypto_print_name [function] [call site] 00104
7 BIO_new_mem_buf [function] [call site] 00105
7 d2i_X509_bio [function] [call site] 00106
7 X509_get_subject_name [function] [call site] 00107
7 X509_NAME_oneline [function] [call site] 00109
7 X509_free [function] [call site] 00112
6 X509_get_subject_name [function] [call site] 00114
6 WLog_WARN [function] [call site] 00115
4 freerdp_certificate_get_pem_ex [function] [call site] 00117
5 WINPR_ASSERT [function] [call site] 00118
5 BIO_s_mem [function] [call site] 00120
5 PEM_write_bio_X509 [function] [call site] 00122
5 sk_X509_num [function] [call site] 00124
5 sk_X509_value [function] [call site] 00125
5 PEM_write_bio_X509 [function] [call site] 00126
5 x509_utils_bio_read [function] [call site] 00128
6 WINPR_ASSERT [function] [call site] 00129
6 BIO_flush [function] [call site] 00130
6 BIO_number_written [function] [call site] 00131
6 ERR_clear_error [function] [call site] 00133
5 BIO_free_all [function] [call site] 00136
4 freerdp_certificate_get_pem_ex [function] [call site] 00137
4 freerdp_certificate_get_fingerprint [function] [call site] 00138
5 freerdp_certificate_get_fingerprint_by_hash [function] [call site] 00139
6 freerdp_certificate_get_fingerprint_by_hash_ex [function] [call site] 00140
7 WINPR_CXX_COMPAT_CAST [function] [call site] 00142
7 WINPR_CXX_COMPAT_CAST [function] [call site] 00143
7 WINPR_CXX_COMPAT_CAST [function] [call site] 00145
7 x509_utils_get_hash [function] [call site] 00146
8 EVP_get_digestbyname [function] [call site] 00147
8 WINPR_CXX_COMPAT_CAST [function] [call site] 00150
8 WINPR_CXX_COMPAT_CAST [function] [call site] 00151
8 X509_digest [function] [call site] 00154
7 sprintf_s [function] [call site] 00158
7 sprintf_s [function] [call site] 00159
7 sprintf_s [function] [call site] 00160
4 freerdp_certificate_get_issuer [function] [call site] 00164
5 WINPR_ASSERT [function] [call site] 00165
5 x509_utils_get_issuer [function] [call site] 00166
6 crypto_print_name [function] [call site] 00168
6 X509_get_issuer_name [function] [call site] 00169
6 WLog_WARN [function] [call site] 00170
2 freerdp_certificate_free [function] [call site] 00181
1 freerdp_certificate_data_free [function] [call site] 00182