certmonger-0.79.20-1.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
certmonger-0.79.20-build/certmonger-0.79.20/src/cadata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def2]
certmonger-0.79.20-build/certmonger-0.79.20/src/cadata.c: scope_hint: In function ‘fetch’
certmonger-0.79.20-build/certmonger-0.79.20/src/cadata.c:78:62: warning[-Wunused-parameter]: unused parameter ‘entry’
# 78 | fetch(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry, void *data)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 76| /* Callback that just runs the helper to gather the specified data. */
# 77| static int
# 78|-> fetch(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry, void *data)
# 79| {
# 80| struct cm_cadata_state *state = data;
Error: COMPILER_WARNING (CWE-563): [#def3]
certmonger-0.79.20-build/certmonger-0.79.20/src/cadata.c: scope_hint: In function ‘parse_old_cert_list’
certmonger-0.79.20-build/certmonger-0.79.20/src/cadata.c:201:69: warning[-Wunused-parameter]: unused parameter ‘state’
# 201 | parse_old_cert_list(struct cm_store_ca *ca, struct cm_cadata_state *state,
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 199| /* Parse a list of nickname+certificate pairs. */
# 200| static const char *
# 201|-> parse_old_cert_list(struct cm_store_ca *ca, struct cm_cadata_state *state,
# 202| const char *msg, struct cm_nickcert ***list)
# 203| {
Error: COMPILER_WARNING (CWE-563): [#def4]
certmonger-0.79.20-build/certmonger-0.79.20/src/cadata.c: scope_hint: In function ‘postprocess_certs_sub’
certmonger-0.79.20-build/certmonger-0.79.20/src/cadata.c:405:51: warning[-Wunused-parameter]: unused parameter ‘ca’
# 405 | postprocess_certs_sub(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 403|
# 404| static int
# 405|-> postprocess_certs_sub(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# 406| void *data)
# 407| {
Error: COMPILER_WARNING (CWE-563): [#def5]
certmonger-0.79.20-build/certmonger-0.79.20/src/cadata.c:405:78: warning[-Wunused-parameter]: unused parameter ‘e’
# 405 | postprocess_certs_sub(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# | ~~~~~~~~~~~~~~~~~~~~~~~^
# 403|
# 404| static int
# 405|-> postprocess_certs_sub(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# 406| void *data)
# 407| {
Error: GCC_ANALYZER_WARNING (CWE-465): [#def6]
certmonger-0.79.20-build/certmonger-0.79.20/src/cadata.c: scope_hint: In function ‘parse_encryption_certs’
certmonger-0.79.20-build/certmonger-0.79.20/src/cadata.c:671:12: warning[-Wanalyzer-deref-before-check]: check of ‘*ca.cm_ca_encryption_cert’ for NULL after already dereferencing it
# 669| }
# 670| }
# 671|-> if (ca->cm_ca_encryption_cert != NULL) {
# 672| if (strspn(ca->cm_ca_encryption_cert, "\r\n \t") ==
# 673| strlen(ca->cm_ca_encryption_cert)) {
Error: CPPCHECK_WARNING: [#def7]
certmonger-0.79.20-build/certmonger-0.79.20/src/canalyze.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def8]
certmonger-0.79.20-build/certmonger-0.79.20/src/canalyze.c: scope_hint: In function ‘cm_ca_analyze_certs_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/canalyze.c:108:49: warning[-Wunused-parameter]: unused parameter ‘e’
# 108 | struct cm_store_entry *e, void *data)
# | ~~~~~~~~~~~~~~~~~~~~~~~^
# 106| static int
# 107| cm_ca_analyze_certs_main(int fd, struct cm_store_ca *ca,
# 108|-> struct cm_store_entry *e, void *data)
# 109| {
# 110| PLArenaPool *arena;
Error: COMPILER_WARNING (CWE-563): [#def9]
certmonger-0.79.20-build/certmonger-0.79.20/src/canalyze.c:108:58: warning[-Wunused-parameter]: unused parameter ‘data’
# 108 | struct cm_store_entry *e, void *data)
# | ~~~~~~^~~~
# 106| static int
# 107| cm_ca_analyze_certs_main(int fd, struct cm_store_ca *ca,
# 108|-> struct cm_store_entry *e, void *data)
# 109| {
# 110| PLArenaPool *arena;
Error: COMPILER_WARNING (CWE-563): [#def10]
certmonger-0.79.20-build/certmonger-0.79.20/src/canalyze.c: scope_hint: In function ‘cm_ca_analyze_encryption_certs_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/canalyze.c:176:60: warning[-Wunused-parameter]: unused parameter ‘e’
# 176 | struct cm_store_entry *e, void *data)
# | ~~~~~~~~~~~~~~~~~~~~~~~^
# 174| static int
# 175| cm_ca_analyze_encryption_certs_main(int fd, struct cm_store_ca *ca,
# 176|-> struct cm_store_entry *e, void *data)
# 177| {
# 178| PLArenaPool *arena;
Error: COMPILER_WARNING (CWE-563): [#def11]
certmonger-0.79.20-build/certmonger-0.79.20/src/canalyze.c:176:69: warning[-Wunused-parameter]: unused parameter ‘data’
# 176 | struct cm_store_entry *e, void *data)
# | ~~~~~~^~~~
# 174| static int
# 175| cm_ca_analyze_encryption_certs_main(int fd, struct cm_store_ca *ca,
# 176|-> struct cm_store_entry *e, void *data)
# 177| {
# 178| PLArenaPool *arena;
Error: CPPCHECK_WARNING: [#def12]
certmonger-0.79.20-build/certmonger-0.79.20/src/casave.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def13]
certmonger-0.79.20-build/certmonger-0.79.20/src/casave.c: scope_hint: In function ‘cm_casave_main_n’
certmonger-0.79.20-build/certmonger-0.79.20/src/casave.c:82:46: warning[-Wunused-parameter]: unused parameter ‘ca’
# 82 | cm_casave_main_n(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 80| /* Save the list of certificates to the database. */
# 81| static int
# 82|-> cm_casave_main_n(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# 83| void *data)
# 84| {
Error: COMPILER_WARNING (CWE-563): [#def14]
certmonger-0.79.20-build/certmonger-0.79.20/src/casave.c:82:73: warning[-Wunused-parameter]: unused parameter ‘e’
# 82 | cm_casave_main_n(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# | ~~~~~~~~~~~~~~~~~~~~~~~^
# 80| /* Save the list of certificates to the database. */
# 81| static int
# 82|-> cm_casave_main_n(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# 83| void *data)
# 84| {
Error: COMPILER_WARNING (CWE-563): [#def15]
certmonger-0.79.20-build/certmonger-0.79.20/src/casave.c: scope_hint: In function ‘cm_casave_main_o’
certmonger-0.79.20-build/certmonger-0.79.20/src/casave.c:261:46: warning[-Wunused-parameter]: unused parameter ‘ca’
# 261 | cm_casave_main_o(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 259| /* Save the list of certificates to the file. */
# 260| static int
# 261|-> cm_casave_main_o(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# 262| void *data)
# 263| {
Error: COMPILER_WARNING (CWE-563): [#def16]
certmonger-0.79.20-build/certmonger-0.79.20/src/casave.c:261:73: warning[-Wunused-parameter]: unused parameter ‘e’
# 261 | cm_casave_main_o(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# | ~~~~~~~~~~~~~~~~~~~~~~~^
# 259| /* Save the list of certificates to the file. */
# 260| static int
# 261|-> cm_casave_main_o(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# 262| void *data)
# 263| {
Error: COMPILER_WARNING (CWE-563): [#def17]
certmonger-0.79.20-build/certmonger-0.79.20/src/casave.c: scope_hint: In function ‘build_locations_lists’
certmonger-0.79.20-build/certmonger-0.79.20/src/casave.c:408:29: warning[-Wunused-parameter]: unused parameter ‘parent’
# 408 | build_locations_lists(void *parent, struct cm_casave_state *state,
# | ~~~~~~^~~~~~
# 406| * of the entries which refer to the CA. */
# 407| static void
# 408|-> build_locations_lists(void *parent, struct cm_casave_state *state,
# 409| struct cm_store_ca *ca, struct cm_store_entry *e,
# 410| char ***files, char ***dbs)
Error: CPPCHECK_WARNING: [#def18]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def19]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_build_bitstring’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:283:51: warning[-Wunused-parameter]: unused parameter ‘entry’
# 283 | cm_certext_build_bitstring(struct cm_store_entry *entry, PLArenaPool *arena,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 281| * represented by either a "1" or a "0", most significant bit first. */
# 282| static SECItem *
# 283|-> cm_certext_build_bitstring(struct cm_store_entry *entry, PLArenaPool *arena,
# 284| const char *bitstring)
# 285| {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘oid_to_string’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:339:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oid’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:40: included_from: Included from here.
# 337| l = 0;
# 338| n = 0;
# 339|-> for (p = oid->data; p < oid->data + oid->len; p++) {
# 340| /* Add seven more bits. */
# 341| l <<= 7;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def21]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘oid_from_string’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:378:21: warning[-Wanalyzer-null-argument]: use of NULL ‘oid’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 376| SECItem *ret;
# 377| if (n == -1) {
# 378|-> n = strlen(oid);
# 379| }
# 380| p = PORT_ArenaZAlloc(arena, n + 1);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def22]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_read_eku’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:465:37: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/nss3/secport.h:39: included_from: Included from here.
/usr/include/nss3/seccomon.h:27: included_from: Included from here.
/usr/include/nss3/nss.h:34: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:31: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
# 463| #if 1
# 464| /* Yeah, gotta sanity-check myself here. XXX */
# 465|-> if (strcmp(oid_to_string(entry,
# 466| oid_from_string(p,
# 467| -1,
Error: COMPILER_WARNING (CWE-563): [#def23]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_build_eku’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:492:45: warning[-Wunused-parameter]: unused parameter ‘entry’
# 492 | cm_certext_build_eku(struct cm_store_entry *entry, PLArenaPool *arena,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 490| * entry. */
# 491| static SECItem *
# 492|-> cm_certext_build_eku(struct cm_store_entry *entry, PLArenaPool *arena,
# 493| const char *eku_value)
# 494| {
Error: COMPILER_WARNING (CWE-563): [#def24]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_princ_data’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:550:36: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 550 | cm_certext_princ_data(krb5_context ctx, krb5_principal princ, int i)
# | ~~~~~~~~~~~~~^~~
# 548| * less than zero as a request for the realm name. */
# 549| static unsigned char *
# 550|-> cm_certext_princ_data(krb5_context ctx, krb5_principal princ, int i)
# 551| {
# 552| if (i < 0) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_princ_data.part.0’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:560:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/krb5.h:8: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:42: included_from: Included from here.
# 558| } else {
# 559| #if HAVE_DECL_KRB5_PRINC_COMPONENT
# 560|-> return (unsigned char *) (krb5_princ_component(ctx, princ, i))->data;
# 561| #else
# 562| return (unsigned char *) princ->name.name_string.val[i];
Error: COMPILER_WARNING (CWE-563): [#def26]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_princ_len’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:570:35: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 570 | cm_certext_princ_len(krb5_context ctx, krb5_principal princ, int i)
# | ~~~~~~~~~~~~~^~~
# 568| * given index. */
# 569| static int
# 570|-> cm_certext_princ_len(krb5_context ctx, krb5_principal princ, int i)
# 571| {
# 572| if (i < 0) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_princ_len.part.0’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:580:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 578| } else {
# 579| #if HAVE_DECL_KRB5_PRINC_COMPONENT
# 580|-> return (krb5_princ_component(ctx, princ, i))->length;
# 581| #else
# 582| return strlen(princ->name.name_string.val[i]);
Error: COMPILER_WARNING (CWE-563): [#def28]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_princ_get_type’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:589:40: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 589 | cm_certext_princ_get_type(krb5_context ctx, krb5_principal princ)
# | ~~~~~~~~~~~~~^~~
# 587| /* Return a the name-type from a principal name structure. */
# 588| static int
# 589|-> cm_certext_princ_get_type(krb5_context ctx, krb5_principal princ)
# 590| {
# 591| #if HAVE_DECL_KRB5_PRINC_TYPE
Error: COMPILER_WARNING (CWE-563): [#def29]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_princ_set_type’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:600:40: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 600 | cm_certext_princ_set_type(krb5_context ctx, krb5_principal princ, int nt)
# | ~~~~~~~~~~~~~^~~
# 598| /* Set the name-type in a principal name structure. */
# 599| static void
# 600|-> cm_certext_princ_set_type(krb5_context ctx, krb5_principal princ, int nt)
# 601| {
# 602| #if HAVE_DECL_KRB5_PRINC_TYPE
Error: COMPILER_WARNING (CWE-563): [#def30]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_free_unparsed_name’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:611:44: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 611 | cm_certext_free_unparsed_name(krb5_context ctx, char *name)
# | ~~~~~~~~~~~~~^~~
# 609| /* Free an unparsed principal name. */
# 610| static void
# 611|-> cm_certext_free_unparsed_name(krb5_context ctx, char *name)
# 612| {
# 613| #ifdef HAVE_KRB5_FREE_UNPARSED_NAME
Error: COMPILER_WARNING (CWE-563): [#def31]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_princ_get_length’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:622:42: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 622 | cm_certext_princ_get_length(krb5_context ctx, krb5_principal princ)
# | ~~~~~~~~~~~~~^~~
# 620| /* Check how many components are in a principal name. */
# 621| static int
# 622|-> cm_certext_princ_get_length(krb5_context ctx, krb5_principal princ)
# 623| {
# 624| #if HAVE_DECL_KRB5_PRINC_SIZE
Error: COMPILER_WARNING (CWE-563): [#def32]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_princ_set_length’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:633:42: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 633 | cm_certext_princ_set_length(krb5_context ctx, krb5_principal princ, int length)
# | ~~~~~~~~~~~~~^~~
# 631| /* Set how many components are in a principal name. */
# 632| static void
# 633|-> cm_certext_princ_set_length(krb5_context ctx, krb5_principal princ, int length)
# 634| {
# 635| #if HAVE_DECL_KRB5_PRINC_SIZE
Error: COMPILER_WARNING (CWE-563): [#def33]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_princ_set_realm’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:645:41: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 645 | cm_certext_princ_set_realm(krb5_context ctx, void *parent, krb5_principal princ,
# | ~~~~~~~~~~~~~^~~
# 643| * name owned by "parent". */
# 644| static void
# 645|-> cm_certext_princ_set_realm(krb5_context ctx, void *parent, krb5_principal princ,
# 646| int length, char *name)
# 647| {
Error: GCC_ANALYZER_WARNING (CWE-835): [#def34]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_read_san’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:881:20: warning[-Wanalyzer-infinite-loop]: infinite loop
# 879| talloc_free(entry->cm_cert_principal);
# 880| entry->cm_cert_principal = NULL;
# 881|-> while (san != NULL) {
# 882| switch (san->type) {
# 883| case certDNSName:
Error: COMPILER_WARNING (CWE-563): [#def35]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_build_upn’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:968:45: warning[-Wunused-parameter]: unused parameter ‘entry’
# 968 | cm_certext_build_upn(struct cm_store_entry *entry, PLArenaPool *arena,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 966| /* Build an NT principal name binary value. */
# 967| static SECItem *
# 968|-> cm_certext_build_upn(struct cm_store_entry *entry, PLArenaPool *arena,
# 969| const char *principal)
# 970| {
Error: COMPILER_WARNING (CWE-563): [#def36]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_build_principal’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:990:51: warning[-Wunused-parameter]: unused parameter ‘entry’
# 990 | cm_certext_build_principal(struct cm_store_entry *entry, PLArenaPool *arena,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 988| /* Build a Kerberos principal name binary value. */
# 989| static SECItem *
# 990|-> cm_certext_build_principal(struct cm_store_entry *entry, PLArenaPool *arena,
# 991| const char *principal)
# 992| {
Error: COMPILER_WARNING (CWE-563): [#def37]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_build_basic’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:1215:47: warning[-Wunused-parameter]: unused parameter ‘entry’
# 1215 | cm_certext_build_basic(struct cm_store_entry *entry, PLArenaPool *arena,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 1213| /* Build a basicConstraints extension value. */
# 1214| static SECItem *
# 1215|-> cm_certext_build_basic(struct cm_store_entry *entry, PLArenaPool *arena,
# 1216| int is_ca, int path_length)
# 1217| {
Error: COMPILER_WARNING (CWE-563): [#def38]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_build_aia’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:1383:45: warning[-Wunused-parameter]: unused parameter ‘entry’
# 1383 | cm_certext_build_aia(struct cm_store_entry *entry, PLArenaPool *arena,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 1381| /* Build an authorityInformationAccess extension value. */
# 1382| static SECItem *
# 1383|-> cm_certext_build_aia(struct cm_store_entry *entry, PLArenaPool *arena,
# 1384| char **ocsp_location)
# 1385| {
Error: COMPILER_WARNING (CWE-563): [#def39]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_build_crldp’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:1442:47: warning[-Wunused-parameter]: unused parameter ‘entry’
# 1442 | cm_certext_build_crldp(struct cm_store_entry *entry, PLArenaPool *arena,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 1440| /* Build a CRL distribution points or freshest CRL extension value. */
# 1441| static SECItem *
# 1442|-> cm_certext_build_crldp(struct cm_store_entry *entry, PLArenaPool *arena,
# 1443| char **crldp)
# 1444| {
Error: COMPILER_WARNING (CWE-563): [#def40]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_build_ns_comment’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:1495:52: warning[-Wunused-parameter]: unused parameter ‘entry’
# 1495 | cm_certext_build_ns_comment(struct cm_store_entry *entry, PLArenaPool *arena,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 1493| /* Build a Netscape comment extension value. */
# 1494| static SECItem *
# 1495|-> cm_certext_build_ns_comment(struct cm_store_entry *entry, PLArenaPool *arena,
# 1496| char *comment)
# 1497| {
Error: COMPILER_WARNING (CWE-563): [#def41]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_build_ocsp_no_check’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:1518:55: warning[-Wunused-parameter]: unused parameter ‘entry’
# 1518 | cm_certext_build_ocsp_no_check(struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 1516| /* Build a no-ocsp-checking extension value. */
# 1517| static SECItem *
# 1518|-> cm_certext_build_ocsp_no_check(struct cm_store_entry *entry,
# 1519| PLArenaPool *arena)
# 1520| {
Error: COMPILER_WARNING (CWE-563): [#def42]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_build_profile’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:1538:49: warning[-Wunused-parameter]: unused parameter ‘entry’
# 1538 | cm_certext_build_profile(struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 1536| /* Build a Microsoft certtype extension value. */
# 1537| static SECItem *
# 1538|-> cm_certext_build_profile(struct cm_store_entry *entry,
# 1539| PLArenaPool *arena,
# 1540| char *profile)
Error: COMPILER_WARNING (CWE-563): [#def43]
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c: scope_hint: In function ‘cm_certext_read_basic’
certmonger-0.79.20-build/certmonger-0.79.20/src/certext.c:1952:66: warning[-Wunused-parameter]: unused parameter ‘arena’
# 1952 | cm_certext_read_basic(struct cm_store_entry *entry, PLArenaPool *arena,
# | ~~~~~~~~~~~~~^~~~~
# 1950| /* Read a basicConstraints extension. */
# 1951| static void
# 1952|-> cm_certext_read_basic(struct cm_store_entry *entry, PLArenaPool *arena,
# 1953| CERTCertExtension *ext)
# 1954| {
Error: CPPCHECK_WARNING: [#def44]
certmonger-0.79.20-build/certmonger-0.79.20/src/certread-n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def45]
certmonger-0.79.20-build/certmonger-0.79.20/src/certread-n.c: scope_hint: In function ‘cm_certread_n_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/certread-n.c:63:48: warning[-Wunused-parameter]: unused parameter ‘ca’
# 63 | cm_certread_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 61|
# 62| static int
# 63|-> cm_certread_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 64| void *userdata)
# 65| {
Error: COMPILER_WARNING (CWE-563): [#def46]
certmonger-0.79.20-build/certmonger-0.79.20/src/certread-o.c: scope_hint: In function ‘cm_certread_o_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/certread-o.c:56:48: warning[-Wunused-parameter]: unused parameter ‘ca’
# 56 | cm_certread_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 54|
# 55| static int
# 56|-> cm_certread_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 57| void *userdata)
# 58| {
Error: COMPILER_WARNING (CWE-563): [#def47]
certmonger-0.79.20-build/certmonger-0.79.20/src/certread-o.c:57:26: warning[-Wunused-parameter]: unused parameter ‘userdata’
# 57 | void *userdata)
# | ~~~~~~^~~~~~~~
# 55| static int
# 56| cm_certread_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 57|-> void *userdata)
# 58| {
# 59| FILE *pem, *fp;
Error: CPPCHECK_WARNING: [#def48]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def49]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c: scope_hint: In function ‘add_privkey_to_list’
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:78:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘list’
/usr/include/nss3/cert.h:22: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:32: included_from: Included from here.
/usr/include/nss3/certt.h:364:39: note: in definition of macro ‘CERT_LIST_END’
/usr/include/nss3/certt.h:361:48: note: in expansion of macro ‘PR_LIST_HEAD’
/usr/include/nss3/certt.h:365:42: note: in expansion of macro ‘CERT_LIST_HEAD’
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:477:55: note: in expansion of macro ‘CERT_LIST_EMPTY’
/usr/include/nss3/certt.h:364:39: note: in definition of macro ‘CERT_LIST_END’
/usr/include/nss3/certt.h:361:48: note: in expansion of macro ‘PR_LIST_HEAD’
/usr/include/nss3/certt.h:365:42: note: in expansion of macro ‘CERT_LIST_HEAD’
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:526:47: note: in expansion of macro ‘CERT_LIST_EMPTY’
# 76| if (newlist != NULL) {
# 77| if (list != NULL)
# 78|-> memcpy(newlist, list, sizeof(newlist[0]) * i);
# 79| newlist[i] = key;
# 80| newlist[i + 1] = NULL;
Error: COMPILER_WARNING (CWE-563): [#def50]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c: scope_hint: In function ‘cm_certsave_n_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:103:24: warning[-Wunused-parameter]: unused parameter ‘fd’
# 103 | cm_certsave_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~^~
# 101|
# 102| static int
# 103|-> cm_certsave_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 104| void *userdata)
# 105| {
Error: COMPILER_WARNING (CWE-563): [#def51]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:103:48: warning[-Wunused-parameter]: unused parameter ‘ca’
# 103 | cm_certsave_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 101|
# 102| static int
# 103|-> cm_certsave_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 104| void *userdata)
# 105| {
Error: GCC_ANALYZER_WARNING (CWE-688): [#def52]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c: scope_hint: In function ‘cm_certsave_n_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:150:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘user’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
# 148|
# 149| user = strdup(entry->cm_nss_user);
# 150|-> group = strchr(user, ':');
# 151| if (group != NULL) {
# 152| *group++ = '\0';
Error: CPPCHECK_WARNING (CWE-415): [#def53]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:175: error[doubleFree]: Memory pointed to by 'user' is freed twice.
# 173| "not setting identity.\n",
# 174| group);
# 175|-> free(user);
# 176| _exit(CM_CERTSAVE_STATUS_INTERNAL_ERROR);
# 177| }
Error: CPPCHECK_WARNING (CWE-415): [#def54]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:180: error[doubleFree]: Memory pointed to by 'user' is freed twice.
# 178| gid = grp->gr_gid;
# 179| }
# 180|-> free(user);
# 181|
# 182| cm_log(1, "Switching to %s %d:%d\n", pwd->pw_name, uid, gid);
Error: CPPCHECK_WARNING (CWE-457): [#def55]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:614: error[uninitvar]: Uninitialized variable: ierror
# 612| * the configured token is not already internal */
# 613| internal_slot = PK11_GetInternalKeySlot();
# 614|-> if ((ierror == SECSuccess) && (sle->slot != internal_slot))
# 615| {
# 616| cm_log(3, "Imported to token, adding to internal\n");
Error: CLANG_WARNING: [#def56]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:614:18: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 612| * the configured token is not already internal */
# 613| internal_slot = PK11_GetInternalKeySlot();
# 614|-> if ((ierror == SECSuccess) && (sle->slot != internal_slot))
# 615| {
# 616| cm_log(3, "Imported to token, adding to internal\n");
Error: GCC_ANALYZER_WARNING (CWE-457): [#def57]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:614:44: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ierror’
# 612| * the configured token is not already internal */
# 613| internal_slot = PK11_GetInternalKeySlot();
# 614|-> if ((ierror == SECSuccess) && (sle->slot != internal_slot))
# 615| {
# 616| cm_log(3, "Imported to token, adding to internal\n");
Error: COMPILER_WARNING (CWE-457): [#def58]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:614:44: warning[-Wmaybe-uninitialized]: ‘ierror’ may be used uninitialized
# 614 | if ((ierror == SECSuccess) && (sle->slot != internal_slot))
# | ^
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:603:51: note: ‘ierror’ was declared here
# 603 | SECStatus ierror;
# | ^~~~~~
# 612| * the configured token is not already internal */
# 613| internal_slot = PK11_GetInternalKeySlot();
# 614|-> if ((ierror == SECSuccess) && (sle->slot != internal_slot))
# 615| {
# 616| cm_log(3, "Imported to token, adding to internal\n");
Error: CLANG_WARNING: [#def59]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-n.c:617:7: warning[deadcode.DeadStores]: Value stored to 'ierror' is never read
# 615| {
# 616| cm_log(3, "Imported to token, adding to internal\n");
# 617|-> ierror = PK11_ImportCert(internal_slot,
# 618| newcert,
# 619| CK_INVALID_HANDLE,
Error: CPPCHECK_WARNING: [#def60]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c: scope_hint: In function ‘read_file_contents’
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c:81:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
# 79| }
# 80| }
# 81|-> if (fstat(fileno(fp), &st) == -1) {
# 82| cm_log(1, "Error opening %s \"%s\" "
# 83| "for reading: %s.\n",
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c:81:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
# 79| }
# 80| }
# 81|-> if (fstat(fileno(fp), &st) == -1) {
# 82| cm_log(1, "Error opening %s \"%s\" "
# 83| "for reading: %s.\n",
Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c:95:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
# 93| }
# 94| }
# 95|-> content = malloc(st.st_size + 1);
# 96| if (content == NULL) {
# 97| cm_log(1, "Error allocating memory for %s \"%s\".\n",
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c:95:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
# 93| }
# 94| }
# 95|-> content = malloc(st.st_size + 1);
# 96| if (content == NULL) {
# 97| cm_log(1, "Error allocating memory for %s \"%s\".\n",
Error: GCC_ANALYZER_WARNING (CWE-775): [#def65]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c: scope_hint: In function ‘write_file_contents’
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c:152:49: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "w")’
# 150| len = strlen(contents);
# 151| while (n < len) {
# 152|-> i = fwrite(contents + n, 1, len - n, fp);
# 153| if (i <= 0) {
# 154| cm_log(1, "Error writing %s \"%s\": %s.\n",
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c:152:49: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "w")’
# 150| len = strlen(contents);
# 151| while (n < len) {
# 152|-> i = fwrite(contents + n, 1, len - n, fp);
# 153| if (i <= 0) {
# 154| cm_log(1, "Error writing %s \"%s\": %s.\n",
Error: COMPILER_WARNING (CWE-563): [#def67]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c:164:24: warning[-Wunused-parameter]: unused parameter ‘fd’
# 164 | cm_certsave_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~^~
# 162|
# 163| static int
# 164|-> cm_certsave_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 165| void *userdata)
# 166| {
Error: COMPILER_WARNING (CWE-563): [#def68]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c:164:48: warning[-Wunused-parameter]: unused parameter ‘ca’
# 164 | cm_certsave_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 162|
# 163| static int
# 164|-> cm_certsave_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 165| void *userdata)
# 166| {
Error: COMPILER_WARNING (CWE-563): [#def69]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c:165:26: warning[-Wunused-parameter]: unused parameter ‘userdata’
# 165 | void *userdata)
# | ~~~~~~^~~~~~~~
# 163| static int
# 164| cm_certsave_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 165|-> void *userdata)
# 166| {
# 167| int status = -1;
Error: COMPILER_WARNING (CWE-477): [#def70]
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c: scope_hint: In function ‘cm_certsave_o_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c:288:29: warning[-Wdeprecated-declarations]: ‘EVP_PKEY_cmp’ is deprecated: Since OpenSSL 3.0
# 288 | (EVP_PKEY_cmp(old_pkey, X509_get_pubkey(cert)) == 1)) {
# | ^
/usr/include/openssl/pem.h:22: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/certsave-o.c:35: included_from: Included from here.
/usr/include/openssl/evp.h:1437:5: note: declared here
# 1437 | int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);
# | ^~~~~~~~~~~~
# 286| * key that we won't actually be using. */
# 287| if ((old_pkey != NULL) &&
# 288|-> (EVP_PKEY_cmp(old_pkey, X509_get_pubkey(cert)) == 1)) {
# 289| entry->cm_key_next_marker = NULL;
# 290| if (next_key != NULL) {
Error: CPPCHECK_WARNING: [#def71]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def72]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c: scope_hint: In function ‘cm_timer_h’
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:197:35: warning[-Wunused-parameter]: unused parameter ‘ec’
# 197 | cm_timer_h(struct tevent_context *ec, struct tevent_timer *te,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 195|
# 196| static void
# 197|-> cm_timer_h(struct tevent_context *ec, struct tevent_timer *te,
# 198| struct timeval current_time, void *pvt)
# 199| {
Error: COMPILER_WARNING (CWE-563): [#def73]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:198:27: warning[-Wunused-parameter]: unused parameter ‘current_time’
# 198 | struct timeval current_time, void *pvt)
# | ~~~~~~~~~~~~~~~^~~~~~~~~~~~
# 196| static void
# 197| cm_timer_h(struct tevent_context *ec, struct tevent_timer *te,
# 198|-> struct timeval current_time, void *pvt)
# 199| {
# 200| struct cm_context *context = pvt;
Error: COMPILER_WARNING (CWE-563): [#def74]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c: scope_hint: In function ‘cm_timeout_h’
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:231:37: warning[-Wunused-parameter]: unused parameter ‘ec’
# 231 | cm_timeout_h(struct tevent_context *ec, struct tevent_timer *te,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 229|
# 230| static void
# 231|-> cm_timeout_h(struct tevent_context *ec, struct tevent_timer *te,
# 232| struct timeval current_time, void *pvt)
# 233| {
Error: COMPILER_WARNING (CWE-563): [#def75]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:231:62: warning[-Wunused-parameter]: unused parameter ‘te’
# 231 | cm_timeout_h(struct tevent_context *ec, struct tevent_timer *te,
# | ~~~~~~~~~~~~~~~~~~~~~^~
# 229|
# 230| static void
# 231|-> cm_timeout_h(struct tevent_context *ec, struct tevent_timer *te,
# 232| struct timeval current_time, void *pvt)
# 233| {
Error: COMPILER_WARNING (CWE-563): [#def76]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:232:29: warning[-Wunused-parameter]: unused parameter ‘current_time’
# 232 | struct timeval current_time, void *pvt)
# | ~~~~~~~~~~~~~~~^~~~~~~~~~~~
# 230| static void
# 231| cm_timeout_h(struct tevent_context *ec, struct tevent_timer *te,
# 232|-> struct timeval current_time, void *pvt)
# 233| {
# 234| struct cm_context *context = pvt;
Error: COMPILER_WARNING (CWE-563): [#def77]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c: scope_hint: In function ‘cm_fd_h’
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:275:32: warning[-Wunused-parameter]: unused parameter ‘ec’
# 275 | cm_fd_h(struct tevent_context *ec,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 273|
# 274| static void
# 275|-> cm_fd_h(struct tevent_context *ec,
# 276| struct tevent_fd *fde, uint16_t flags, void *pvt)
# 277| {
Error: COMPILER_WARNING (CWE-563): [#def78]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:276:41: warning[-Wunused-parameter]: unused parameter ‘flags’
# 276 | struct tevent_fd *fde, uint16_t flags, void *pvt)
# | ~~~~~~~~~^~~~~
# 274| static void
# 275| cm_fd_h(struct tevent_context *ec,
# 276|-> struct tevent_fd *fde, uint16_t flags, void *pvt)
# 277| {
# 278| struct cm_context *context = pvt;
Error: COMPILER_WARNING (CWE-563): [#def79]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c: scope_hint: In function ‘cm_break_h’
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:309:35: warning[-Wunused-parameter]: unused parameter ‘ec’
# 309 | cm_break_h(struct tevent_context *ec, struct tevent_signal *se,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 307|
# 308| static void
# 309|-> cm_break_h(struct tevent_context *ec, struct tevent_signal *se,
# 310| int signum, int count, void *siginfo, void *pvt)
# 311| {
Error: COMPILER_WARNING (CWE-563): [#def80]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:309:61: warning[-Wunused-parameter]: unused parameter ‘se’
# 309 | cm_break_h(struct tevent_context *ec, struct tevent_signal *se,
# | ~~~~~~~~~~~~~~~~~~~~~~^~
# 307|
# 308| static void
# 309|-> cm_break_h(struct tevent_context *ec, struct tevent_signal *se,
# 310| int signum, int count, void *siginfo, void *pvt)
# 311| {
Error: COMPILER_WARNING (CWE-563): [#def81]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:310:28: warning[-Wunused-parameter]: unused parameter ‘count’
# 310 | int signum, int count, void *siginfo, void *pvt)
# | ~~~~^~~~~
# 308| static void
# 309| cm_break_h(struct tevent_context *ec, struct tevent_signal *se,
# 310|-> int signum, int count, void *siginfo, void *pvt)
# 311| {
# 312| struct cm_context *ctx = pvt;
Error: COMPILER_WARNING (CWE-563): [#def82]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:310:41: warning[-Wunused-parameter]: unused parameter ‘siginfo’
# 310 | int signum, int count, void *siginfo, void *pvt)
# | ~~~~~~^~~~~~~
# 308| static void
# 309| cm_break_h(struct tevent_context *ec, struct tevent_signal *se,
# 310|-> int signum, int count, void *siginfo, void *pvt)
# 311| {
# 312| struct cm_context *ctx = pvt;
Error: COMPILER_WARNING (CWE-563): [#def83]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c: scope_hint: In function ‘cm_netlink_delayed_h’
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:318:45: warning[-Wunused-parameter]: unused parameter ‘ec’
# 318 | cm_netlink_delayed_h(struct tevent_context *ec, struct tevent_timer *te,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 316|
# 317| static void
# 318|-> cm_netlink_delayed_h(struct tevent_context *ec, struct tevent_timer *te,
# 319| struct timeval current_time, void *pvt)
# 320| {
Error: COMPILER_WARNING (CWE-563): [#def84]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:319:37: warning[-Wunused-parameter]: unused parameter ‘current_time’
# 319 | struct timeval current_time, void *pvt)
# | ~~~~~~~~~~~~~~~^~~~~~~~~~~~
# 317| static void
# 318| cm_netlink_delayed_h(struct tevent_context *ec, struct tevent_timer *te,
# 319|-> struct timeval current_time, void *pvt)
# 320| {
# 321| struct cm_context *ctx = pvt;
Error: COMPILER_WARNING (CWE-563): [#def85]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c: scope_hint: In function ‘cm_netlink_fd_h’
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:359:40: warning[-Wunused-parameter]: unused parameter ‘ec’
# 359 | cm_netlink_fd_h(struct tevent_context *ec,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 357|
# 358| static void
# 359|-> cm_netlink_fd_h(struct tevent_context *ec,
# 360| struct tevent_fd *fde, uint16_t flags, void *pvt)
# 361| {
Error: COMPILER_WARNING (CWE-563): [#def86]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:360:49: warning[-Wunused-parameter]: unused parameter ‘flags’
# 360 | struct tevent_fd *fde, uint16_t flags, void *pvt)
# | ~~~~~~~~~^~~~~
# 358| static void
# 359| cm_netlink_fd_h(struct tevent_context *ec,
# 360|-> struct tevent_fd *fde, uint16_t flags, void *pvt)
# 361| {
# 362| struct cm_context *ctx = pvt;
Error: COMPILER_WARNING (CWE-563): [#def87]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c: scope_hint: In function ‘cm_gate_fd_h’
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:705:59: warning[-Wunused-parameter]: unused parameter ‘fde’
# 705 | cm_gate_fd_h(struct tevent_context *ec, struct tevent_fd *fde,
# | ~~~~~~~~~~~~~~~~~~^~~
# 703|
# 704| static void
# 705|-> cm_gate_fd_h(struct tevent_context *ec, struct tevent_fd *fde,
# 706| uint16_t flags, void *pvt)
# 707| {
Error: COMPILER_WARNING (CWE-563): [#def88]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:706:23: warning[-Wunused-parameter]: unused parameter ‘flags’
# 706 | uint16_t flags, void *pvt)
# | ~~~~~~~~~^~~~~
# 704| static void
# 705| cm_gate_fd_h(struct tevent_context *ec, struct tevent_fd *fde,
# 706|-> uint16_t flags, void *pvt)
# 707| {
# 708| struct cm_context *ctx = pvt;
Error: COMPILER_WARNING (CWE-563): [#def89]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c: scope_hint: In function ‘cm_gate_run’
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:741:41: warning[-Wunused-parameter]: unused parameter ‘ca’
# 741 | cm_gate_run(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 739|
# 740| static int
# 741|-> cm_gate_run(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# 742| void *data)
# 743| {
Error: COMPILER_WARNING (CWE-563): [#def90]
certmonger-0.79.20-build/certmonger-0.79.20/src/cm.c:741:68: warning[-Wunused-parameter]: unused parameter ‘e’
# 741 | cm_gate_run(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# | ~~~~~~~~~~~~~~~~~~~~~~~^
# 739|
# 740| static int
# 741|-> cm_gate_run(int fd, struct cm_store_ca *ca, struct cm_store_entry *e,
# 742| void *data)
# 743| {
Error: CPPCHECK_WARNING: [#def91]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def92]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c: scope_hint: In function ‘cm_csrgen_n_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:238:46: warning[-Wunused-parameter]: unused parameter ‘ca’
# 238 | cm_csrgen_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 236|
# 237| static int
# 238|-> cm_csrgen_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 239| void *userdata)
# 240| {
Error: COMPILER_WARNING (CWE-563): [#def93]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:239:24: warning[-Wunused-parameter]: unused parameter ‘userdata’
# 239 | void *userdata)
# | ~~~~~~^~~~~~~~
# 237| static int
# 238| cm_csrgen_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 239|-> void *userdata)
# 240| {
# 241| FILE *status;
Error: CPPCHECK_WARNING (CWE-415): [#def94]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:406: error[doubleFree]: Resource handle 'status' freed twice.
# 404| cm_log(1, "Error shutting down NSS.\n");
# 405| }
# 406|-> fclose(status);
# 407| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 408| }
Error: CPPCHECK_WARNING (CWE-415): [#def95]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:437: error[doubleFree]: Resource handle 'status' freed twice.
# 435| cm_log(1, "Error shutting down NSS.\n");
# 436| }
# 437|-> fclose(status);
# 438| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 439| }
Error: CPPCHECK_WARNING (CWE-415): [#def96]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:468: error[doubleFree]: Resource handle 'status' freed twice.
# 466| cm_log(1, "Error shutting down NSS.\n");
# 467| }
# 468|-> fclose(status);
# 469| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 470| }
Error: CPPCHECK_WARNING (CWE-415): [#def97]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:510: error[doubleFree]: Resource handle 'status' freed twice.
# 508| cm_log(1, "Error shutting down NSS.\n");
# 509| }
# 510|-> fclose(status);
# 511| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 512| }
Error: CPPCHECK_WARNING (CWE-415): [#def98]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:537: error[doubleFree]: Resource handle 'status' freed twice.
# 535| cm_log(1, "Error shutting down NSS.\n");
# 536| }
# 537|-> fclose(status);
# 538| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 539| }
Error: CPPCHECK_WARNING (CWE-415): [#def99]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:561: error[doubleFree]: Resource handle 'status' freed twice.
# 559| cm_log(1, "Error shutting down NSS.\n");
# 560| }
# 561|-> fclose(status);
# 562| _exit(CM_SUB_STATUS_ERROR_AUTH);
# 563| }
Error: CPPCHECK_WARNING (CWE-415): [#def100]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:589: error[doubleFree]: Resource handle 'status' freed twice.
# 587| cm_log(1, "Error shutting down NSS.\n");
# 588| }
# 589|-> fclose(status);
# 590| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 591| }
Error: CPPCHECK_WARNING (CWE-415): [#def101]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:618: error[doubleFree]: Resource handle 'status' freed twice.
# 616| cm_log(1, "Error shutting down NSS.\n");
# 617| }
# 618|-> fclose(status);
# 619| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 620| }
Error: CPPCHECK_WARNING (CWE-415): [#def102]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:644: error[doubleFree]: Resource handle 'status' freed twice.
# 642| cm_log(1, "Error shutting down NSS.\n");
# 643| }
# 644|-> fclose(status);
# 645| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 646| }
Error: CPPCHECK_WARNING (CWE-415): [#def103]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:672: error[doubleFree]: Resource handle 'status' freed twice.
# 670| cm_log(1, "Error shutting down NSS.\n");
# 671| }
# 672|-> fclose(status);
# 673| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 674| }
Error: CPPCHECK_WARNING (CWE-415): [#def104]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:698: error[doubleFree]: Resource handle 'status' freed twice.
# 696| cm_log(1, "Error shutting down NSS.\n");
# 697| }
# 698|-> fclose(status);
# 699| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 700| }
Error: CPPCHECK_WARNING (CWE-415): [#def105]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:725: error[doubleFree]: Resource handle 'status' freed twice.
# 723| cm_log(1, "Error shutting down NSS.\n");
# 724| }
# 725|-> fclose(status);
# 726| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 727| }
Error: CPPCHECK_WARNING (CWE-415): [#def106]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:752: error[doubleFree]: Resource handle 'status' freed twice.
# 750| cm_log(1, "Error shutting down NSS.\n");
# 751| }
# 752|-> fclose(status);
# 753| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 754| }
Error: CPPCHECK_WARNING (CWE-415): [#def107]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:824: error[doubleFree]: Resource handle 'status' freed twice.
# 822| cm_log(1, "Error shutting down NSS.\n");
# 823| }
# 824|-> fclose(status);
# 825| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 826| }
Error: CPPCHECK_WARNING (CWE-415): [#def108]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:853: error[doubleFree]: Resource handle 'status' freed twice.
# 851| cm_log(1, "Error shutting down NSS.\n");
# 852| }
# 853|-> fclose(status);
# 854| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 855| }
Error: CPPCHECK_WARNING (CWE-415): [#def109]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:881: error[doubleFree]: Resource handle 'status' freed twice.
# 879| cm_log(1, "Error shutting down NSS.\n");
# 880| }
# 881|-> fclose(status);
# 882| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 883| }
Error: CPPCHECK_WARNING (CWE-415): [#def110]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:909: error[doubleFree]: Resource handle 'status' freed twice.
# 907| cm_log(1, "Error shutting down NSS.\n");
# 908| }
# 909|-> fclose(status);
# 910| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 911| }
Error: CPPCHECK_WARNING (CWE-415): [#def111]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:936: error[doubleFree]: Resource handle 'status' freed twice.
# 934| cm_log(1, "Error shutting down NSS.\n");
# 935| }
# 936|-> fclose(status);
# 937| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 938| }
Error: CPPCHECK_WARNING (CWE-416): [#def112]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-n.c:944: error[deallocuse]: Dereferencing 'status' after it is deallocated / released
# 942| b643 = NSSBase64_EncodeItem(arena, NULL, -1, &esminicert);
# 943| if ((b64 != NULL) && (b642 != NULL)) {
# 944|-> fprintf(status, "-----BEGIN CERTIFICATE REQUEST-----\n");
# 945| p = b64;
# 946| while (*p != '\0') {
Error: CPPCHECK_WARNING: [#def113]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-o.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def114]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-o.c: scope_hint: In function ‘cm_csrgen_o_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-o.c:167:46: warning[-Wunused-parameter]: unused parameter ‘ca’
# 167 | cm_csrgen_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 165|
# 166| static int
# 167|-> cm_csrgen_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 168| void *userdata)
# 169| {
Error: COMPILER_WARNING (CWE-563): [#def115]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-o.c:168:24: warning[-Wunused-parameter]: unused parameter ‘userdata’
# 168 | void *userdata)
# | ~~~~~~^~~~~~~~
# 166| static int
# 167| cm_csrgen_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 168|-> void *userdata)
# 169| {
# 170| struct cm_pin_cb_data cb_data;
Error: GCC_ANALYZER_WARNING (CWE-775): [#def116]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-o.c: scope_hint: In function ‘cm_csrgen_o_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-o.c:220:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
# 218| }
# 219| util_set_fd_entry_key_owner(fileno(keyfp), filename, entry);
# 220|-> if (filename != entry->cm_key_storage_location) {
# 221| free(filename);
# 222| }
Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen-o.c:220:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
# 218| }
# 219| util_set_fd_entry_key_owner(fileno(keyfp), filename, entry);
# 220|-> if (filename != entry->cm_key_storage_location) {
# 221| free(filename);
# 222| }
Error: CPPCHECK_WARNING: [#def118]
certmonger-0.79.20-build/certmonger-0.79.20/src/csrgen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def119]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def120]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:189:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 187| mode = getenv(CM_SUBMIT_OPERATION_ENV);
# 188| }
# 189|-> if ((strcasecmp(mode, CM_OP_SUBMIT) == 0) ||
# 190| (strcasecmp(mode, CM_OP_POLL) == 0)) {
# 191| /* fall through */
Error: GCC_ANALYZER_WARNING (CWE-415): [#def121]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:230:33: warning[-Wanalyzer-double-free]: double-‘free’ of ‘soptions’
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:54: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:228:40: note: in expansion of macro ‘_’
# 228| printf(_("Profile params (-O) must be in the form of param=value.\n"));
# 229| poptPrintUsage(pctx, stdout, 0);
# 230|-> free(soptions);
# 231| free(aoptions);
# 232| return CM_SUBMIT_STATUS_UNCONFIGURED;
Error: CPPCHECK_WARNING (CWE-401): [#def122]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:234: error[memleakOnRealloc]: Common realloc mistake: 'aoptions' nulled but not freed upon failure
# 232| return CM_SUBMIT_STATUS_UNCONFIGURED;
# 233| }
# 234|-> aoptions = realloc(aoptions,
# 235| ++num_aoptions * sizeof(*aoptions));
# 236| if (aoptions == NULL) {
Error: CLANG_WARNING: [#def123]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:237:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'aoptions'
# 235| ++num_aoptions * sizeof(*aoptions));
# 236| if (aoptions == NULL) {
# 237|-> printf(_("Out of memory.\n"));
# 238| free(soptions);
# 239| return CM_SUBMIT_STATUS_UNCONFIGURED;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def124]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:238:33: warning[-Wanalyzer-double-free]: double-‘free’ of ‘soptions’
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:237:40: note: in expansion of macro ‘_’
# 236| if (aoptions == NULL) {
# 237| printf(_("Out of memory.\n"));
# 238|-> free(soptions);
# 239| return CM_SUBMIT_STATUS_UNCONFIGURED;
# 240| }
Error: GCC_ANALYZER_WARNING (CWE-415): [#def125]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:258:33: warning[-Wanalyzer-double-free]: double-‘free’ of ‘soptions’
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:256:40: note: in expansion of macro ‘_’
# 256| printf(_("Submit params (-o) must be in the form of param=value.\n"));
# 257| poptPrintUsage(pctx, stdout, 0);
# 258|-> free(soptions);
# 259| free(aoptions);
# 260| return CM_SUBMIT_STATUS_UNCONFIGURED;
Error: CPPCHECK_WARNING (CWE-401): [#def126]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:262: error[memleakOnRealloc]: Common realloc mistake: 'soptions' nulled but not freed upon failure
# 260| return CM_SUBMIT_STATUS_UNCONFIGURED;
# 261| }
# 262|-> soptions = realloc(soptions,
# 263| ++num_soptions * sizeof(*soptions));
# 264| if (soptions == NULL) {
Error: GCC_ANALYZER_WARNING (CWE-415): [#def127]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:262:36: warning[-Wanalyzer-double-free]: double-‘free’ of ‘soptions’
# 260| return CM_SUBMIT_STATUS_UNCONFIGURED;
# 261| }
# 262|-> soptions = realloc(soptions,
# 263| ++num_soptions * sizeof(*soptions));
# 264| if (soptions == NULL) {
Error: CLANG_WARNING: [#def128]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:265:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'soptions'
# 263| ++num_soptions * sizeof(*soptions));
# 264| if (soptions == NULL) {
# 265|-> printf(_("Out of memory.\n"));
# 266| free(aoptions);
# 267| return CM_SUBMIT_STATUS_UNCONFIGURED;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def129]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:306:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘soptions’
# 304| if (c != -1) {
# 305| poptPrintUsage(pctx, stdout, 0);
# 306|-> free(soptions);
# 307| free(aoptions);
# 308| return CM_SUBMIT_STATUS_UNCONFIGURED;
Error: GCC_ANALYZER_WARNING (CWE-415): [#def130]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:307:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘aoptions’
# 305| poptPrintUsage(pctx, stdout, 0);
# 306| free(soptions);
# 307|-> free(aoptions);
# 308| return CM_SUBMIT_STATUS_UNCONFIGURED;
# 309| }
Error: CLANG_WARNING: [#def131]
certmonger-0.79.20-build/certmonger-0.79.20/src/dogtag.c:558:13: warning[unix.Malloc]: Potential leak of memory pointed to by 'csr'
# 556| }
# 557| csr = cm_submit_u_url_encode(csr);
# 558|-> params = talloc_asprintf(ctx,
# 559| "profileId=%s&"
# 560| "cert_request_type=pkcs10&"
Error: CPPCHECK_WARNING: [#def132]
certmonger-0.79.20-build/certmonger-0.79.20/src/env-session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def133]
certmonger-0.79.20-build/certmonger-0.79.20/src/env-shared.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def134]
certmonger-0.79.20-build/certmonger-0.79.20/src/getcert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def135]
certmonger-0.79.20-build/certmonger-0.79.20/src/getcert.c: scope_hint: In function ‘prep_bus’
certmonger-0.79.20-build/certmonger-0.79.20/src/getcert.c:286:48: warning[-Wunused-parameter]: unused parameter ‘mode’
# 286 | prep_bus(enum cm_tdbus_type which, const char *mode,
# | ~~~~~~~~~~~~^~~~
# 284| /* Connect to the bus, or not. */
# 285| static void
# 286|-> prep_bus(enum cm_tdbus_type which, const char *mode,
# 287| int verbose, int argc, const char **argv)
# 288| {
Error: GCC_ANALYZER_WARNING (CWE-121): [#def136]
certmonger-0.79.20-build/certmonger-0.79.20/src/selfsign-getcert.c:3: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/getcert.c: scope_hint: In function ‘request’
certmonger-0.79.20-build/certmonger-0.79.20/src/getcert.c:826:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
certmonger-0.79.20-build/certmonger-0.79.20/src/getcert.c:826:13: note: write of 3 bytes to beyond the end of ‘subject_default’
certmonger-0.79.20-build/certmonger-0.79.20/src/getcert.c:826:13: note: valid subscripts for ‘subject_default’ are ‘[0]’ to ‘[2047]’
certmonger-0.79.20-build/certmonger-0.79.20/src/getcert.c:30: included_from: Included from here.
/usr/include/unistd.h:911:12: note: parameter 1 of ‘gethostname’ marked with attribute ‘access (write_only, 1, 2)’
# 824| memset(subject_default, '\0', sizeof(subject_default));
# 825| strcpy(subject_default, "CN=");
# 826|-> if (gethostname(subject_default + 3,
# 827| sizeof(subject_default) - 4) != 0) {
# 828| strcpy(subject_default, "CN=localhost");
Error: CPPCHECK_WARNING (CWE-562): [#def137]
certmonger-0.79.20-build/certmonger-0.79.20/src/getcert.c:5645: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5643| if (strcmp(verbs[i].verb, globals.verb) == 0) {
# 5644| argv1 = argv[1];
# 5645|-> argv[1] = poptname;
# 5646| ret = (*verbs[i].fn)(poptname, argc - 1,
# 5647| argv + 1);
Error: CPPCHECK_WARNING: [#def138]
certmonger-0.79.20-build/certmonger-0.79.20/src/hook.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def139]
certmonger-0.79.20-build/certmonger-0.79.20/src/hook.c: scope_hint: In function ‘cm_hook_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/hook.c:62:42: warning[-Wunused-parameter]: unused parameter ‘ca’
# 62 | cm_hook_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 60| /* Fire off a single subprocess. */
# 61| static int
# 62|-> cm_hook_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 63| void *userdata)
# 64| {
Error: COMPILER_WARNING (CWE-563): [#def140]
certmonger-0.79.20-build/certmonger-0.79.20/src/hook.c:62:69: warning[-Wunused-parameter]: unused parameter ‘entry’
# 62 | cm_hook_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 60| /* Fire off a single subprocess. */
# 61| static int
# 62|-> cm_hook_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 63| void *userdata)
# 64| {
Error: CPPCHECK_WARNING: [#def141]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa-getcert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def142]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def143]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c: scope_hint: In function ‘get_error_message’
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:59:32: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 59 | get_error_message(krb5_context ctx, krb5_error_code kcode)
# | ~~~~~~~~~~~~~^~~
# 57|
# 58| static char *
# 59|-> get_error_message(krb5_context ctx, krb5_error_code kcode)
# 60| {
# 61| const char *ret;
Error: COMPILER_WARNING (CWE-563): [#def144]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c: scope_hint: In function ‘interact’
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:287:16: warning[-Wunused-parameter]: unused parameter ‘ld’
# 287 | interact(LDAP *ld, unsigned flags, void *defaults, void *sasl_interact)
# | ~~~~~~^~
# 285|
# 286| static int
# 287|-> interact(LDAP *ld, unsigned flags, void *defaults, void *sasl_interact)
# 288| {
# 289| return 0;
Error: COMPILER_WARNING (CWE-563): [#def145]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:287:29: warning[-Wunused-parameter]: unused parameter ‘flags’
# 287 | interact(LDAP *ld, unsigned flags, void *defaults, void *sasl_interact)
# | ~~~~~~~~~^~~~~
# 285|
# 286| static int
# 287|-> interact(LDAP *ld, unsigned flags, void *defaults, void *sasl_interact)
# 288| {
# 289| return 0;
Error: COMPILER_WARNING (CWE-563): [#def146]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:287:42: warning[-Wunused-parameter]: unused parameter ‘defaults’
# 287 | interact(LDAP *ld, unsigned flags, void *defaults, void *sasl_interact)
# | ~~~~~~^~~~~~~~
# 285|
# 286| static int
# 287|-> interact(LDAP *ld, unsigned flags, void *defaults, void *sasl_interact)
# 288| {
# 289| return 0;
Error: COMPILER_WARNING (CWE-563): [#def147]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:287:58: warning[-Wunused-parameter]: unused parameter ‘sasl_interact’
# 287 | interact(LDAP *ld, unsigned flags, void *defaults, void *sasl_interact)
# | ~~~~~~^~~~~~~~~~~~~
# 285|
# 286| static int
# 287|-> interact(LDAP *ld, unsigned flags, void *defaults, void *sasl_interact)
# 288| {
# 289| return 0;
Error: COMPILER_WARNING (CWE-563): [#def148]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c: scope_hint: In function ‘submit_or_poll_uri’
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:636:32: warning[-Wunused-parameter]: unused parameter ‘uid’
# 636 | const char *uid, const char *pwd, const char *csr,
# | ~~~~~~~~~~~~^~~
# 634| static int
# 635| submit_or_poll_uri(const char *uri, const char *cainfo, const char *capath,
# 636|-> const char *uid, const char *pwd, const char *csr,
# 637| const char *reqprinc, const char *profile,
# 638| const char *issuer, int verbose)
Error: COMPILER_WARNING (CWE-563): [#def149]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:636:49: warning[-Wunused-parameter]: unused parameter ‘pwd’
# 636 | const char *uid, const char *pwd, const char *csr,
# | ~~~~~~~~~~~~^~~
# 634| static int
# 635| submit_or_poll_uri(const char *uri, const char *cainfo, const char *capath,
# 636|-> const char *uid, const char *pwd, const char *csr,
# 637| const char *reqprinc, const char *profile,
# 638| const char *issuer, int verbose)
Error: COMPILER_WARNING (CWE-563): [#def150]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c: scope_hint: In function ‘fetch_roots’
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:877:43: warning[-Wunused-parameter]: unused parameter ‘uid’
# 877 | const char *host, const char *uid, const char *pwd,
# | ~~~~~~~~~~~~^~~
# 875| static int
# 876| fetch_roots(const char *server, int ldap_uri_cmd, const char *ldap_uri,
# 877|-> const char *host, const char *uid, const char *pwd,
# 878| const char *domain, char *basedn)
# 879| {
Error: COMPILER_WARNING (CWE-563): [#def151]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:877:60: warning[-Wunused-parameter]: unused parameter ‘pwd’
# 877 | const char *host, const char *uid, const char *pwd,
# | ~~~~~~~~~~~~^~~
# 875| static int
# 876| fetch_roots(const char *server, int ldap_uri_cmd, const char *ldap_uri,
# 877|-> const char *host, const char *uid, const char *pwd,
# 878| const char *domain, char *basedn)
# 879| {
Error: CLANG_WARNING: [#def152]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:1010:6: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1008| mode = getenv(CM_SUBMIT_OPERATION_ENV);
# 1009| }
# 1010|-> if (strcasecmp(mode, CM_OP_IDENTIFY) == 0) {
# 1011| printf("IPA (%s %s)\n", PACKAGE_NAME, PACKAGE_VERSION);
# 1012| return 0;
Error: CPPCHECK_WARNING (CWE-457): [#def153]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:1141: warning[uninitvar]: Uninitialized variable: ipaconfig
# 1139| }
# 1140| }
# 1141|-> free(ipaconfig);
# 1142| csr = NULL;
# 1143| memset(uri, '\0', sizeof(uri));
Error: CLANG_WARNING: [#def154]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:1153:15: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1151| (getenv(CM_SUBMIT_REQ_PRINCIPAL_ENV) != NULL)) {
# 1152| /* If it's multi-valued, just use the first one. */
# 1153|-> reqprinc = strdup(getenv(CM_SUBMIT_REQ_PRINCIPAL_ENV));
# 1154| if (reqprinc != NULL) {
# 1155| reqprinc[strcspn(reqprinc, "\r\n")] = '\0';
Error: CLANG_WARNING: [#def155]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:1167:14: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1165| if ((profile == NULL) &&
# 1166| (getenv(CM_SUBMIT_PROFILE_ENV) != NULL)) {
# 1167|-> profile = strdup(getenv(CM_SUBMIT_PROFILE_ENV));
# 1168| }
# 1169| if ((issuer == NULL) &&
Error: CLANG_WARNING: [#def156]
certmonger-0.79.20-build/certmonger-0.79.20/src/ipa.c:1171:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1169| if ((issuer == NULL) &&
# 1170| (getenv(CM_SUBMIT_ISSUER_ENV) != NULL)) {
# 1171|-> issuer = strdup(getenv(CM_SUBMIT_ISSUER_ENV));
# 1172| }
# 1173| if ((server != NULL) && !jsonrpc_uri_cmd) {
Error: CPPCHECK_WARNING: [#def157]
certmonger-0.79.20-build/certmonger-0.79.20/src/iterate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-758): [#def158]
certmonger-0.79.20-build/certmonger-0.79.20/src/iterate.c: scope_hint: In function ‘cm_waitfor_readable_fd’
certmonger-0.79.20-build/certmonger-0.79.20/src/iterate.c:294:9: warning[-Wrestrict]: passing argument 2 to ‘restrict’-qualified parameter aliases with argument 4
# 294 | if (select(fd + 1, fdset, NULL, fdset, (delay >= 0) ? &tv : NULL) < 0) {
# | ^~
# 292| FD_SET(fd, fdset);
# 293| }
# 294|-> if (select(fd + 1, fdset, NULL, fdset, (delay >= 0) ? &tv : NULL) < 0) {
# 295| if (delay < 0) {
# 296| /* No defined delay, but an error. */
Error: CPPCHECK_WARNING: [#def159]
certmonger-0.79.20-build/certmonger-0.79.20/src/json.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def160]
certmonger-0.79.20-build/certmonger-0.79.20/src/json.c: scope_hint: In function ‘cm_json_find’
certmonger-0.79.20-build/certmonger-0.79.20/src/json.c:1141:37: warning[-Wanalyzer-null-argument]: use of NULL ‘talloc_strndup(json, path, strcspn(path, "/"))’ where non-null expected
certmonger-0.79.20-build/certmonger-0.79.20/src/json.c:26: included_from: Included from here.
/usr/include/stdlib.h:177:17: note: argument 1 of ‘strtol’ must be non-null
# 1139| this = cm_json_get(this, component);
# 1140| if (this == NULL) {
# 1141|-> l = strtol(component, &end, 10);
# 1142| if ((end == NULL) || ((*end != '/') && (*end != '\0')) || (l < 0)) {
# 1143| this = NULL;
Error: CPPCHECK_WARNING: [#def161]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def162]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-n.c:116:46: warning[-Wunused-parameter]: unused parameter ‘ca’
# 116 | cm_keygen_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 114|
# 115| static int
# 116|-> cm_keygen_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 117| void *userdata)
# 118| {
Error: COMPILER_WARNING (CWE-563): [#def163]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-n.c:155:13: warning[-Wunused-variable]: unused variable ‘retry’
# 155 | int retry, generated_size;
# | ^~~~~
# 153| struct cm_keygen_n_settings *settings;
# 154| struct cm_pin_cb_data cb_data;
# 155|-> int retry, generated_size;
# 156|
# 157| status = fdopen(fd, "w");
Error: COMPILER_WARNING (CWE-563): [#def164]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-n.c: scope_hint: In function ‘cm_keygen_n_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-n.c:155:20: warning[-Wunused-variable]: unused variable ‘generated_size’
# 155 | int retry, generated_size;
# | ^~~~~~~~~~~~~~
# 153| struct cm_keygen_n_settings *settings;
# 154| struct cm_pin_cb_data cb_data;
# 155|-> int retry, generated_size;
# 156|
# 157| status = fdopen(fd, "w");
Error: CPPCHECK_WARNING: [#def165]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def166]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:96:46: warning[-Wunused-parameter]: unused parameter ‘ca’
# 96 | cm_keygen_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 94|
# 95| static int
# 96|-> cm_keygen_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 97| void *userdata)
# 98| {
Error: COMPILER_WARNING (CWE-563): [#def167]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:97:24: warning[-Wunused-parameter]: unused parameter ‘userdata’
# 97 | void *userdata)
# | ~~~~~~^~~~~~~~
# 95| static int
# 96| cm_keygen_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 97|-> void *userdata)
# 98| {
# 99| struct cm_pin_cb_data cb_data;
Error: COMPILER_WARNING (CWE-477): [#def168]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c: scope_hint: In function ‘cm_keygen_o_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:155:17: warning[-Wdeprecated-declarations]: ‘RSA_new’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/x509.h:36: included_from: Included from here.
/usr/include/openssl/pem.h:23: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:40: included_from: Included from here.
/usr/include/openssl/rsa.h:212:28: note: declared here
# 153| }
# 154| BN_set_word(exponent, CM_DEFAULT_RSA_EXPONENT);
# 155|-> rsa = RSA_new();
# 156| if (rsa == NULL) {
# 157| cm_log(1, "Error allocating new RSA key.\n");
Error: COMPILER_WARNING (CWE-477): [#def169]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:160:17: warning[-Wdeprecated-declarations]: ‘RSA_generate_key_ex’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/rsa.h:271:27: note: declared here
# 158| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 159| }
# 160|-> if (RSA_generate_key_ex(rsa, cm_key_size, exponent, NULL) != 1) {
# 161| if (cm_key_size != CM_DEFAULT_PUBKEY_SIZE) {
# 162| cm_log(1, "Error generating %d-bit key, "
Error: COMPILER_WARNING (CWE-477): [#def170]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:171:17: warning[-Wdeprecated-declarations]: ‘RSA_check_key’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/rsa.h:289:27: note: declared here
# 169| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 170| }
# 171|-> if (RSA_check_key(rsa) != 1) { /* should be unnecessary */
# 172| cm_log(1, "Key fails checks. Retrying.\n");
# 173| goto retry_gen;
Error: COMPILER_WARNING (CWE-477): [#def171]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:175:17: warning[-Wdeprecated-declarations]: ‘EVP_PKEY_set1_RSA’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/pem.h:22: included_from: Included from here.
/usr/include/openssl/evp.h:1363:5: note: declared here
# 173| goto retry_gen;
# 174| }
# 175|-> EVP_PKEY_set1_RSA(pkey, rsa);
# 176| break;
# 177| #ifdef CM_ENABLE_DSA
Error: COMPILER_WARNING (CWE-477): [#def172]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:212:17: warning[-Wdeprecated-declarations]: ‘EC_KEY_new_by_curve_name’ is deprecated: Since OpenSSL 3.0
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:37: included_from: Included from here.
/usr/include/openssl/ec.h:1017:31: note: declared here
# 210| else
# 211| ecurve = NID_secp521r1;
# 212|-> ec = EC_KEY_new_by_curve_name(ecurve);
# 213| while ((ec == NULL) && (ecurve != NID_X9_62_prime256v1)) {
# 214| cm_log(1, "Error allocating new EC key.\n");
Error: COMPILER_WARNING (CWE-477): [#def173]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:219:33: warning[-Wdeprecated-declarations]: ‘EC_KEY_new_by_curve_name’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/ec.h:1017:31: note: declared here
# 217| cm_log(1, "Trying with a smaller key.\n");
# 218| ecurve = NID_secp384r1;
# 219|-> ec = EC_KEY_new_by_curve_name(ecurve);
# 220| break;
# 221| case NID_secp384r1:
Error: COMPILER_WARNING (CWE-477): [#def174]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:224:33: warning[-Wdeprecated-declarations]: ‘EC_KEY_new_by_curve_name’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/ec.h:1017:31: note: declared here
# 222| cm_log(1, "Trying with a smaller key.\n");
# 223| ecurve = NID_X9_62_prime256v1;
# 224|-> ec = EC_KEY_new_by_curve_name(ecurve);
# 225| break;
# 226| }
Error: COMPILER_WARNING (CWE-477): [#def175]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:232:17: warning[-Wdeprecated-declarations]: ‘EC_KEY_generate_key’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/ec.h:1120:27: note: declared here
# 230| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 231| }
# 232|-> if (EC_KEY_generate_key(ec) != 1) {
# 233| cm_log(1, "Error generating key.\n");
# 234| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
Error: COMPILER_WARNING (CWE-477): [#def176]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:236:17: warning[-Wdeprecated-declarations]: ‘EC_KEY_set_asn1_flag’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/ec.h:1106:28: note: declared here
# 234| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 235| }
# 236|-> EC_KEY_set_asn1_flag(ec, OPENSSL_EC_NAMED_CURVE);
# 237| EVP_PKEY_set1_EC_KEY(pkey, ec);
# 238| break;
Error: COMPILER_WARNING (CWE-477): [#def177]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:237:17: warning[-Wdeprecated-declarations]: ‘EVP_PKEY_set1_EC_KEY’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/evp.h:1389:5: note: declared here
# 235| }
# 236| EC_KEY_set_asn1_flag(ec, OPENSSL_EC_NAMED_CURVE);
# 237|-> EVP_PKEY_set1_EC_KEY(pkey, ec);
# 238| break;
# 239| #endif
Error: GCC_ANALYZER_WARNING (CWE-688): [#def178]
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:248:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘filename’ where non-null expected
certmonger-0.79.20-build/certmonger-0.79.20/src/keygen-o.c:24: included_from: Included from here.
/usr/include/fcntl.h:209:12: note: argument 1 of ‘open’ must be non-null
# 246| filename = strdup(entry->cm_key_storage_location);
# 247| marker = "";
# 248|-> keyfd = open(filename, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
# 249| if (keyfd != -1) {
# 250| fp = fdopen(keyfd, "w");
Error: CPPCHECK_WARNING: [#def179]
certmonger-0.79.20-build/certmonger-0.79.20/src/keyiread-n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def180]
certmonger-0.79.20-build/certmonger-0.79.20/src/keyiread-n.c: scope_hint: In function ‘cm_keyiread_n_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/keyiread-n.c:486:48: warning[-Wunused-parameter]: unused parameter ‘ca’
# 486 | cm_keyiread_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 484|
# 485| static int
# 486|-> cm_keyiread_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 487| void *userdata)
# 488| {
Error: CPPCHECK_WARNING: [#def181]
certmonger-0.79.20-build/certmonger-0.79.20/src/keyiread-o.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def182]
certmonger-0.79.20-build/certmonger-0.79.20/src/keyiread-o.c: scope_hint: In function ‘cm_keyiread_o_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/keyiread-o.c:55:48: warning[-Wunused-parameter]: unused parameter ‘ca’
# 55 | cm_keyiread_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 53|
# 54| static int
# 55|-> cm_keyiread_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 56| void *userdata)
# 57| {
Error: COMPILER_WARNING (CWE-563): [#def183]
certmonger-0.79.20-build/certmonger-0.79.20/src/keyiread-o.c:56:26: warning[-Wunused-parameter]: unused parameter ‘userdata’
# 56 | void *userdata)
# | ~~~~~~^~~~~~~~
# 54| static int
# 55| cm_keyiread_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 56|-> void *userdata)
# 57| {
# 58| struct cm_pin_cb_data cb_data;
Error: GCC_ANALYZER_WARNING (CWE-775): [#def184]
certmonger-0.79.20-build/certmonger-0.79.20/src/keyiread-o.c: scope_hint: In function ‘cm_keyiread_o_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/keyiread-o.c:79:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*entry.cm_key_storage_location, "r")’
# 77| pem = fopen(entry->cm_key_storage_location, "r");
# 78| if (pem != NULL) {
# 79|-> if (cm_pin_read_for_key(entry, &pin) != 0) {
# 80| cm_log(1, "Error reading key encryption PIN.\n");
# 81| _exit(CM_SUB_STATUS_ERROR_AUTH);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
certmonger-0.79.20-build/certmonger-0.79.20/src/keyiread-o.c:79:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*entry.cm_key_storage_location, "r")’
# 77| pem = fopen(entry->cm_key_storage_location, "r");
# 78| if (pem != NULL) {
# 79|-> if (cm_pin_read_for_key(entry, &pin) != 0) {
# 80| cm_log(1, "Error reading key encryption PIN.\n");
# 81| _exit(CM_SUB_STATUS_ERROR_AUTH);
Error: CPPCHECK_WARNING: [#def186]
certmonger-0.79.20-build/certmonger-0.79.20/src/keyiread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def187]
certmonger-0.79.20-build/certmonger-0.79.20/src/local-getcert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def188]
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def189]
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c: scope_hint: In function ‘set_ca_extensions’
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c:75:25: warning[-Wunused-parameter]: unused parameter ‘parent’
# 75 | set_ca_extensions(void *parent, X509_REQ *req, EVP_PKEY *key)
# | ~~~~~~^~~~~~
# 73|
# 74| static void
# 75|-> set_ca_extensions(void *parent, X509_REQ *req, EVP_PKEY *key)
# 76| {
# 77| STACK_OF(X509_EXTENSION) *exts;
Error: COMPILER_WARNING (CWE-477): [#def190]
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c: scope_hint: In function ‘get_signer_info’
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c:310:17: warning[-Wdeprecated-declarations]: ‘RSA_new’ is deprecated: Since OpenSSL 3.0
# 310 | rsa = RSA_new();
# | ^~~
/usr/include/openssl/x509.h:36: included_from: Included from here.
/usr/include/openssl/pem.h:23: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c:43: included_from: Included from here.
/usr/include/openssl/rsa.h:212:28: note: declared here
# 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
# | ^~~~~~~
# 308| }
# 309| BN_set_word(exponent, CM_DEFAULT_RSA_EXPONENT);
# 310|-> rsa = RSA_new();
# 311| if (rsa == NULL) {
# 312| cm_log(1, "Error allocating new RSA key.\n");
Error: COMPILER_WARNING (CWE-477): [#def191]
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c:316:17: warning[-Wdeprecated-declarations]: ‘RSA_generate_key_ex’ is deprecated: Since OpenSSL 3.0
# 316 | if (RSA_generate_key_ex(rsa, CM_DEFAULT_PUBKEY_SIZE, exponent,
# | ^~
/usr/include/openssl/rsa.h:271:27: note: declared here
# 271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
# | ^~~~~~~~~~~~~~~~~~~
# 314| }
# 315| retry_gen:
# 316|-> if (RSA_generate_key_ex(rsa, CM_DEFAULT_PUBKEY_SIZE, exponent,
# 317| NULL) != 1) {
# 318| cm_log(1, "Error generating key.\n");
Error: COMPILER_WARNING (CWE-477): [#def192]
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c:321:17: warning[-Wdeprecated-declarations]: ‘RSA_check_key’ is deprecated: Since OpenSSL 3.0
# 321 | if (RSA_check_key(rsa) != 1) { /* should be unnecessary */
# | ^~
/usr/include/openssl/rsa.h:289:27: note: declared here
# 289 | OSSL_DEPRECATEDIN_3_0 int RSA_check_key(const RSA *);
# | ^~~~~~~~~~~~~
# 319| return CM_SUBMIT_STATUS_UNREACHABLE;
# 320| }
# 321|-> if (RSA_check_key(rsa) != 1) { /* should be unnecessary */
# 322| cm_log(1, "Key fails checks. Retrying.\n");
# 323| goto retry_gen;
Error: COMPILER_WARNING (CWE-477): [#def193]
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c:326:17: warning[-Wdeprecated-declarations]: ‘EVP_PKEY_set1_RSA’ is deprecated: Since OpenSSL 3.0
# 326 | EVP_PKEY_set1_RSA(*signer_key, rsa);
# | ^~~~~~~~~~~~~~~~~
/usr/include/openssl/pem.h:22: included_from: Included from here.
/usr/include/openssl/evp.h:1363:5: note: declared here
# 1363 | int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key);
# | ^~~~~~~~~~~~~~~~~
# 324| }
# 325| *signer_key = EVP_PKEY_new();
# 326|-> EVP_PKEY_set1_RSA(*signer_key, rsa);
# 327| /* Build a suitable CA signing request. */
# 328| csr = make_ca_csr(parent, *signer_key, *signer_cert);
Error: CLANG_WARNING: [#def194]
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c:451:6: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 449| mode = getenv(CM_SUBMIT_OPERATION_ENV);
# 450| }
# 451|-> if (strcasecmp(mode, CM_OP_IDENTIFY) == 0) {
# 452| printf("%s (%s %s)\n", CONSTANTCN,
# 453| PACKAGE_NAME, PACKAGE_VERSION);
Error: GCC_ANALYZER_WARNING (CWE-775): [#def195]
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c:588:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(talloc_asprintf(talloc_init("Local Signing Authority"), "%s/%s", localdir, "/serial"), "r")’
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c:49: included_from: Included from here.
# 586| }
# 587| if (fp != NULL) {
# 588|-> if (fgets(buf, sizeof(buf), fp) == NULL) {
# 589| fclose(fp);
# 590| free(csr);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
certmonger-0.79.20-build/certmonger-0.79.20/src/local.c:588:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(talloc_asprintf(talloc_init("Local Signing Authority"), "%s/%s", localdir, "/serial"), "r")’
# 586| }
# 587| if (fp != NULL) {
# 588|-> if (fgets(buf, sizeof(buf), fp) == NULL) {
# 589| fclose(fp);
# 590| free(csr);
Error: CPPCHECK_WARNING: [#def197]
certmonger-0.79.20-build/certmonger-0.79.20/src/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def198]
certmonger-0.79.20-build/certmonger-0.79.20/src/nl-check.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/src/nl-check.c:141:10: warning[-Wunused-parameter]: unused parameter ‘argc’
# 141 | main(int argc, char **argv)
# | ~~~~^~~~
# 139|
# 140| int
# 141|-> main(int argc, char **argv)
# 142| {
# 143| fd_set fds;
Error: COMPILER_WARNING (CWE-563): [#def199]
certmonger-0.79.20-build/certmonger-0.79.20/src/nl-check.c:141:23: warning[-Wunused-parameter]: unused parameter ‘argv’
# 141 | main(int argc, char **argv)
# | ~~~~~~~^~~~
# 139|
# 140| int
# 141|-> main(int argc, char **argv)
# 142| {
# 143| fd_set fds;
Error: COMPILER_WARNING (CWE-563): [#def200]
certmonger-0.79.20-build/certmonger-0.79.20/src/notify.c: scope_hint: In function ‘cm_notify_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/notify.c:51:20: warning[-Wunused-parameter]: unused parameter ‘fd’
# 51 | cm_notify_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~^~
# 49| /* Fire off the proper notification. */
# 50| static int
# 51|-> cm_notify_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 52| void *userdata)
# 53| {
Error: COMPILER_WARNING (CWE-563): [#def201]
certmonger-0.79.20-build/certmonger-0.79.20/src/notify.c:51:44: warning[-Wunused-parameter]: unused parameter ‘ca’
# 51 | cm_notify_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# | ~~~~~~~~~~~~~~~~~~~~^~
# 49| /* Fire off the proper notification. */
# 50| static int
# 51|-> cm_notify_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 52| void *userdata)
# 53| {
Error: COMPILER_WARNING (CWE-563): [#def202]
certmonger-0.79.20-build/certmonger-0.79.20/src/iterate.c:41: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/notify.h: scope_hint: At top level
certmonger-0.79.20-build/certmonger-0.79.20/src/notify.h:34:20: warning[-Wunused-variable]: ‘cm_notify_event_names’ defined but not used
# 34 | static const char *cm_notify_event_names[] = {
# | ^~~~~~~~~~~~~~~~~~~~~
# 32| };
# 33|
# 34|-> static const char *cm_notify_event_names[] = {
# 35| "unknown",
# 36| "validity_ending",
Error: CPPCHECK_WARNING: [#def203]
certmonger-0.79.20-build/certmonger-0.79.20/src/pin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def204]
certmonger-0.79.20-build/certmonger-0.79.20/src/pin.c: scope_hint: In function ‘cm_pin_read_for_key_ossl_cb’
certmonger-0.79.20-build/certmonger-0.79.20/src/pin.c:118:54: warning[-Wunused-parameter]: unused parameter ‘rwflag’
# 118 | cm_pin_read_for_key_ossl_cb(char *buf, int size, int rwflag, void *u)
# | ~~~~^~~~~~
# 116|
# 117| int
# 118|-> cm_pin_read_for_key_ossl_cb(char *buf, int size, int rwflag, void *u)
# 119| {
# 120| struct cm_pin_cb_data *cb_data;
Error: COMPILER_WARNING (CWE-563): [#def205]
certmonger-0.79.20-build/certmonger-0.79.20/src/pin.c: scope_hint: In function ‘cm_pin_nss_cb’
certmonger-0.79.20-build/certmonger-0.79.20/src/pin.c:149:29: warning[-Wunused-parameter]: unused parameter ‘slot’
# 149 | cm_pin_nss_cb(PK11SlotInfo *slot, PRBool retry, void *arg,
# | ~~~~~~~~~~~~~~^~~~
# 147|
# 148| static char *
# 149|-> cm_pin_nss_cb(PK11SlotInfo *slot, PRBool retry, void *arg,
# 150| enum cm_pin_type pin_type)
# 151| {
Error: CPPCHECK_WARNING: [#def206]
certmonger-0.79.20-build/certmonger-0.79.20/src/pkcs7.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def207]
certmonger-0.79.20-build/certmonger-0.79.20/src/pkcs7.c: scope_hint: In function ‘bettertop’
certmonger-0.79.20-build/certmonger-0.79.20/src/pkcs7.c:119:17: warning[-Wunused-parameter]: unused parameter ‘candidate’
# 119 | bettertop(X509 *candidate, X509 *current, unsigned int flags)
# | ~~~~~~^~~~~~~~~
# 117| }
# 118| static int
# 119|-> bettertop(X509 *candidate, X509 *current, unsigned int flags)
# 120| {
# 121| return -1;
Error: COMPILER_WARNING (CWE-563): [#def208]
certmonger-0.79.20-build/certmonger-0.79.20/src/pkcs7.c:119:34: warning[-Wunused-parameter]: unused parameter ‘current’
# 119 | bettertop(X509 *candidate, X509 *current, unsigned int flags)
# | ~~~~~~^~~~~~~
# 117| }
# 118| static int
# 119|-> bettertop(X509 *candidate, X509 *current, unsigned int flags)
# 120| {
# 121| return -1;
Error: COMPILER_WARNING (CWE-563): [#def209]
certmonger-0.79.20-build/certmonger-0.79.20/src/pkcs7.c:119:56: warning[-Wunused-parameter]: unused parameter ‘flags’
# 119 | bettertop(X509 *candidate, X509 *current, unsigned int flags)
# | ~~~~~~~~~~~~~^~~~~
# 117| }
# 118| static int
# 119|-> bettertop(X509 *candidate, X509 *current, unsigned int flags)
# 120| {
# 121| return -1;
Error: CPPCHECK_WARNING: [#def210]
certmonger-0.79.20-build/certmonger-0.79.20/src/prefs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def211]
certmonger-0.79.20-build/certmonger-0.79.20/src/scep.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def212]
certmonger-0.79.20-build/certmonger-0.79.20/src/scep.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/src/scep.c:817:58: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
# 817 | fprintf(stderr, "%s \"%s?%s\"\n", "GET", url, params2);
# | ^~
# 815| response_code2 = cm_submit_h_response_code(hctx);
# 816| if (verbose > 0) {
# 817|-> fprintf(stderr, "%s \"%s?%s\"\n", "GET", url, params2);
# 818| fprintf(stderr, "response_code = %d\n", response_code2);
# 819| fprintf(stderr, "content-type = \"%s\"\n", content_type2);
Error: COMPILER_WARNING: [#def213]
certmonger-0.79.20-build/certmonger-0.79.20/src/scep.c:822:58: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
# 822 | syslog(LOG_DEBUG, "%s %s?%s\n", "GET", url, params2);
# | ^~
# 820| fprintf(stderr, "code = %d\n", cm_submit_h_result_code(hctx));
# 821| fprintf(stderr, "code_text = \"%s\"\n", cm_submit_h_result_code_text(hctx));
# 822|-> syslog(LOG_DEBUG, "%s %s?%s\n", "GET", url, params2);
# 823| }
# 824| if ((content_type2 != NULL) && (strcasecmp(content_type2,
Error: CPPCHECK_WARNING: [#def214]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def215]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-n.c:129:25: warning[-Wunused-parameter]: unused parameter ‘userdata’
# 129 | void *userdata)
# | ~~~~~~^~~~~~~~
# 127| static int
# 128| cm_scepgen_n_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 129|-> void *userdata)
# 130| {
# 131| FILE *status;
Error: COMPILER_WARNING (CWE-477): [#def216]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-n.c: scope_hint: In function ‘cm_scepgen_n_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-n.c:219:9: warning[-Wdeprecated-declarations]: ‘RSA_new’ is deprecated: Since OpenSSL 3.0
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-n.c:45: included_from: Included from here.
/usr/include/openssl/rsa.h:212:28: note: declared here
# 217| }
# 218| BN_set_word(exponent, CM_DEFAULT_RSA_EXPONENT);
# 219|-> rsa = RSA_new();
# 220| if (rsa == NULL) {
# 221| cm_log(0, "Error allocating new RSA key.\n");
Error: COMPILER_WARNING (CWE-477): [#def217]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-n.c:225:9: warning[-Wdeprecated-declarations]: ‘RSA_generate_key_ex’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/rsa.h:271:27: note: declared here
# 223| }
# 224| retry_gen:
# 225|-> if (RSA_generate_key_ex(rsa, CM_DEFAULT_PUBKEY_SIZE, exponent, NULL) != 1) {
# 226| cm_log(0, "Error generating key.\n");
# 227| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
Error: COMPILER_WARNING (CWE-477): [#def218]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-n.c:229:9: warning[-Wdeprecated-declarations]: ‘RSA_check_key’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/rsa.h:289:27: note: declared here
# 227| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 228| }
# 229|-> if (RSA_check_key(rsa) != 1) { /* should be unnecessary */
# 230| cm_log(1, "Key fails checks. Retrying.\n");
# 231| goto retry_gen;
Error: COMPILER_WARNING (CWE-477): [#def219]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-n.c:245:9: warning[-Wdeprecated-declarations]: ‘EVP_PKEY_set1_RSA’ is deprecated: Since OpenSSL 3.0
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-n.c:43: included_from: Included from here.
/usr/include/openssl/evp.h:1363:5: note: declared here
# 243|
# 244| /* Sign using a dummy key. */
# 245|-> EVP_PKEY_set1_RSA(key, rsa);
# 246| csr_new = NULL;
# 247| csr_old = NULL;
Error: CPPCHECK_WARNING: [#def220]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-o.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def221]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-o.c: scope_hint: In function ‘key_from_file’
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-o.c:85:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
# 83| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 84| }
# 85|-> if (cm_pin_read_for_key(entry, &pin) != 0) {
# 86| cm_log(0, "Internal error reading key encryption PIN.\n");
# 87| _exit(CM_SUB_STATUS_ERROR_AUTH);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-o.c:85:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
# 83| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 84| }
# 85|-> if (cm_pin_read_for_key(entry, &pin) != 0) {
# 86| cm_log(0, "Internal error reading key encryption PIN.\n");
# 87| _exit(CM_SUB_STATUS_ERROR_AUTH);
Error: COMPILER_WARNING (CWE-563): [#def223]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-o.c: scope_hint: In function ‘cert_from_pem’
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-o.c:122:49: warning[-Wunused-parameter]: unused parameter ‘entry’
# 122 | cert_from_pem(char *pem, struct cm_store_entry *entry)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 120|
# 121| static X509 *
# 122|-> cert_from_pem(char *pem, struct cm_store_entry *entry)
# 123| {
# 124| BIO *in;
Error: COMPILER_WARNING (CWE-563): [#def224]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-o.c: scope_hint: In function ‘cm_scepgen_o_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-o.c:717:25: warning[-Wunused-parameter]: unused parameter ‘userdata’
# 717 | void *userdata)
# | ~~~~~~^~~~~~~~
# 715| static int
# 716| cm_scepgen_o_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 717|-> void *userdata)
# 718| {
# 719| unsigned char nonce[16];
Error: CPPCHECK_WARNING (CWE-415): [#def225]
certmonger-0.79.20-build/certmonger-0.79.20/src/scepgen-o.c:758: error[doubleFree]: Memory pointed to by 'filename' is freed twice.
# 756| _exit(CM_SUB_STATUS_INTERNAL_ERROR);
# 757| }
# 758|-> free(filename);
# 759| } else {
# 760| new_pkey = NULL;
Error: CPPCHECK_WARNING: [#def226]
certmonger-0.79.20-build/certmonger-0.79.20/src/selfsign-getcert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def227]
certmonger-0.79.20-build/certmonger-0.79.20/src/serial-check.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/src/serial-check.c:26:10: warning[-Wunused-parameter]: unused parameter ‘argc’
# 26 | main(int argc, char **argv)
# | ~~~~^~~~
# 24| #include "store.h"
# 25| int
# 26|-> main(int argc, char **argv)
# 27| {
# 28| int i;
Error: COMPILER_WARNING (CWE-563): [#def228]
certmonger-0.79.20-build/certmonger-0.79.20/src/serial-check.c:26:23: warning[-Wunused-parameter]: unused parameter ‘argv’
# 26 | main(int argc, char **argv)
# | ~~~~~~~^~~~
# 24| #include "store.h"
# 25| int
# 26|-> main(int argc, char **argv)
# 27| {
# 28| int i;
Error: CPPCHECK_WARNING: [#def229]
certmonger-0.79.20-build/certmonger-0.79.20/src/srvloc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def230]
certmonger-0.79.20-build/certmonger-0.79.20/src/store-files.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def231]
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def232]
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c: scope_hint: In function ‘cm_store_timestamp_from_time’
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c:377:41: warning[-Wformat-overflow=]: ‘%02d’ directive writing between 2 and 11 bytes into a region of size between 4 and 11
# 377 | sprintf(timestamp, "%04d%02d%02d%02d%02d%02d",
# | ^~~~
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c:377:36: note: directive argument in the range [-2147483647, 2147483647]
# 377 | sprintf(timestamp, "%04d%02d%02d%02d%02d%02d",
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 15 and 67 bytes into a destination of size 15
# 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 31 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 32 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 375| struct tm tm;
# 376| if ((when != 0) && (gmtime_r(&when, &tm) == &tm)) {
# 377|-> sprintf(timestamp, "%04d%02d%02d%02d%02d%02d",
# 378| tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
# 379| tm.tm_hour, tm.tm_min, tm.tm_sec);
Error: COMPILER_WARNING: [#def233]
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c:409:60: warning[-Warray-parameter=]: argument 2 of type ‘char[25]’ with mismatched bound
# 409 | cm_store_timestamp_from_time_for_display(time_t when, char timestamp[25])
# | ~~~~~^~~~~~~~~~~~~
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c:32: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/store.h:47:66: note: previously declared as ‘char[24]’
# 47 | char *cm_store_timestamp_from_time_for_display(time_t when, char timestamp[24]);
# | ~~~~~^~~~~~~~~~~~~
# 407|
# 408| char *
# 409|-> cm_store_timestamp_from_time_for_display(time_t when, char timestamp[25])
# 410| {
# 411| struct tm tm;
Error: COMPILER_WARNING: [#def234]
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c: scope_hint: In function ‘cm_store_timestamp_from_time_for_display’
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c:413:47: warning[-Wformat-overflow=]: ‘%02d’ directive writing between 2 and 11 bytes into a region of size between 0 and 16
# 413 | sprintf(timestamp, "%04d-%02d-%02d %02d:%02d:%02d UTC",
# | ^~~~
/usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 24 and 76 bytes into a destination of size 24
# 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 31 | __glibc_objsize (__s), __fmt,
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 32 | __va_arg_pack ());
# | ~~~~~~~~~~~~~~~~~
# 411| struct tm tm;
# 412| if ((when != 0) && (gmtime_r(&when, &tm) == &tm)) {
# 413|-> sprintf(timestamp, "%04d-%02d-%02d %02d:%02d:%02d UTC",
# 414| tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
# 415| tm.tm_hour, tm.tm_min, tm.tm_sec);
Error: GCC_ANALYZER_WARNING (CWE-457): [#def235]
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c: scope_hint: In function ‘cm_store_base64_from_bin’
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c:765:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(char *)buf’
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c:26: included_from: Included from here.
/usr/include/string.h:407:15: note: argument 1 of ‘strlen’ must be a pointer to a null-terminated string
# 763|
# 764| if (length < 0) {
# 765|-> length = strlen((const char *) buf);
# 766| }
# 767|
Error: GCC_ANALYZER_WARNING (CWE-457): [#def236]
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c:775:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
certmonger-0.79.20-build/certmonger-0.79.20/src/store-gen.c:21: included_from: Included from here.
# 773|
# 774| for (i = 0, j = 0, acc = 0; i < length; i++) {
# 775|-> acc = (acc << 8) | buf[i];
# 776| if ((i % 3) == 2) {
# 777| p[j++] = BASE64_ALPHABET[(acc >> 18) & 0x3f];
Error: CPPCHECK_WARNING: [#def237]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def238]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_xml_value_if’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:378:21: warning[-Wanalyzer-null-argument]: use of NULL ‘error_code’ where non-null expected
/usr/include/string.h:462: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:24: included_from: Included from here.
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
# 376| if (bobj1 != NULL) {
# 377| b1 = cm_submit_d_text_node(parent, bobj1);
# 378|-> if (strcasecmp(b1, "true") != 0) {
# 379| v = NULL;
# 380| }
Error: GCC_ANALYZER_WARNING (CWE-688): [#def239]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:385:21: warning[-Wanalyzer-null-argument]: use of NULL ‘error_code’ where non-null expected
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
# 383| if (bobj2 != NULL) {
# 384| b2 = cm_submit_d_text_node(parent, bobj2);
# 385|-> if (strcasecmp(b2, "true") != 0) {
# 386| v = NULL;
# 387| }
Error: GCC_ANALYZER_WARNING (CWE-688): [#def240]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:385:21: warning[-Wanalyzer-null-argument]: use of NULL ‘v’ where non-null expected
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
# 383| if (bobj2 != NULL) {
# 384| b2 = cm_submit_d_text_node(parent, bobj2);
# 385|-> if (strcasecmp(b2, "true") != 0) {
# 386| v = NULL;
# 387| }
Error: COMPILER_WARNING (CWE-563): [#def241]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_check_result’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:488:33: warning[-Wunused-parameter]: unused parameter ‘error_code’
# 488 | char **error_code, char **error_reason,
# | ~~~~~~~^~~~~~~~~~
# 486| int
# 487| cm_submit_d_check_result(void *parent, const char *xml,
# 488|-> char **error_code, char **error_reason,
# 489| char **error, char **status, char **requestId)
# 490| {
Error: COMPILER_WARNING (CWE-563): [#def242]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:488:52: warning[-Wunused-parameter]: unused parameter ‘error_reason’
# 488 | char **error_code, char **error_reason,
# | ~~~~~~~^~~~~~~~~~~~
# 486| int
# 487| cm_submit_d_check_result(void *parent, const char *xml,
# 488|-> char **error_code, char **error_reason,
# 489| char **error, char **status, char **requestId)
# 490| {
Error: COMPILER_WARNING (CWE-563): [#def243]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_reject_result’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:508:34: warning[-Wunused-parameter]: unused parameter ‘error_code’
# 508 | char **error_code, char **error_reason,
# | ~~~~~~~^~~~~~~~~~
# 506| int
# 507| cm_submit_d_reject_result(void *parent, const char *xml,
# 508|-> char **error_code, char **error_reason,
# 509| char **error, char **status, char **requestId)
# 510| {
Error: COMPILER_WARNING (CWE-563): [#def244]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:508:53: warning[-Wunused-parameter]: unused parameter ‘error_reason’
# 508 | char **error_code, char **error_reason,
# | ~~~~~~~^~~~~~~~~~~~
# 506| int
# 507| cm_submit_d_reject_result(void *parent, const char *xml,
# 508|-> char **error_code, char **error_reason,
# 509| char **error, char **status, char **requestId)
# 510| {
Error: COMPILER_WARNING (CWE-563): [#def245]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_review_result’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:525:34: warning[-Wunused-parameter]: unused parameter ‘error’
# 525 | char **error, char **status, char **requestId)
# | ~~~~~~~^~~~~
# 523| cm_submit_d_review_result(void *parent, const char *xml,
# 524| char **error_code, char **error_reason,
# 525|-> char **error, char **status, char **requestId)
# 526| {
# 527| *error_code = trim(parent,
Error: COMPILER_WARNING (CWE-563): [#def246]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_approve_result’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:548:35: warning[-Wunused-parameter]: unused parameter ‘error’
# 548 | char **error, char **status, char **requestId)
# | ~~~~~~~^~~~~
# 546| cm_submit_d_approve_result(void *parent, const char *xml,
# 547| char **error_code, char **error_reason,
# 548|-> char **error, char **status, char **requestId)
# 549| {
# 550| *error_code = trim(parent,
Error: COMPILER_WARNING (CWE-563): [#def247]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_fetch_result’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:570:33: warning[-Wunused-parameter]: unused parameter ‘error_code’
# 570 | char **error_code, char **error_reason,
# | ~~~~~~~^~~~~~~~~~
# 568| int
# 569| cm_submit_d_fetch_result(void *parent, const char *xml,
# 570|-> char **error_code, char **error_reason,
# 571| char **error, char **status,
# 572| char **requestId, char **cert)
Error: COMPILER_WARNING (CWE-563): [#def248]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:570:52: warning[-Wunused-parameter]: unused parameter ‘error_reason’
# 570 | char **error_code, char **error_reason,
# | ~~~~~~~^~~~~~~~~~~~
# 568| int
# 569| cm_submit_d_fetch_result(void *parent, const char *xml,
# 570|-> char **error_code, char **error_reason,
# 571| char **error, char **status,
# 572| char **requestId, char **cert)
Error: COMPILER_WARNING (CWE-563): [#def249]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_profiles_result’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:604:36: warning[-Wunused-parameter]: unused parameter ‘error’
# 604 | char **error, char **status,
# | ~~~~~~~^~~~~
# 602| cm_submit_d_profiles_result(void *parent, const char *xml,
# 603| char **error_code, char **error_reason,
# 604|-> char **error, char **status,
# 605| char ***profiles)
# 606| {
Error: COMPILER_WARNING (CWE-563): [#def250]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:604:50: warning[-Wunused-parameter]: unused parameter ‘status’
# 604 | char **error, char **status,
# | ~~~~~~~^~~~~~
# 602| cm_submit_d_profiles_result(void *parent, const char *xml,
# 603| char **error_code, char **error_reason,
# 604|-> char **error, char **status,
# 605| char ***profiles)
# 606| {
Error: COMPILER_WARNING (CWE-563): [#def251]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_reject_eval’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:715:37: warning[-Wunused-parameter]: unused parameter ‘can_agent’
# 715 | dbus_bool_t can_agent, char **out, char **err)
# | ~~~~~~~~~~~~^~~~~~~~~
# 713| enum cm_external_status
# 714| cm_submit_d_reject_eval(void *parent, const char *xml, const char *url,
# 715|-> dbus_bool_t can_agent, char **out, char **err)
# 716| {
# 717| char *error = NULL, *error_code = NULL, *error_reason = NULL;
Error: COMPILER_WARNING (CWE-563): [#def252]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_review_eval’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:743:37: warning[-Wunused-parameter]: unused parameter ‘can_agent’
# 743 | dbus_bool_t can_agent, char **out, char **err)
# | ~~~~~~~~~~~~^~~~~~~~~
# 741| enum cm_external_status
# 742| cm_submit_d_review_eval(void *parent, const char *xml, const char *url,
# 743|-> dbus_bool_t can_agent, char **out, char **err)
# 744| {
# 745| char *error = NULL, *error_code = NULL, *error_reason = NULL;
Error: COMPILER_WARNING (CWE-563): [#def253]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_approve_eval’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:787:38: warning[-Wunused-parameter]: unused parameter ‘can_agent’
# 787 | dbus_bool_t can_agent, char **out, char **err)
# | ~~~~~~~~~~~~^~~~~~~~~
# 785| enum cm_external_status
# 786| cm_submit_d_approve_eval(void *parent, const char *xml, const char *url,
# 787|-> dbus_bool_t can_agent, char **out, char **err)
# 788| {
# 789| char *error = NULL, *error_code = NULL, *error_reason = NULL;
Error: COMPILER_WARNING (CWE-563): [#def254]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_fetch_eval’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:822:36: warning[-Wunused-parameter]: unused parameter ‘can_agent’
# 822 | dbus_bool_t can_agent, char **out, char **err)
# | ~~~~~~~~~~~~^~~~~~~~~
# 820| enum cm_external_status
# 821| cm_submit_d_fetch_eval(void *parent, const char *xml, const char *url,
# 822|-> dbus_bool_t can_agent, char **out, char **err)
# 823| {
# 824| char *error = NULL, *error_code = NULL, *error_reason = NULL;
Error: COMPILER_WARNING (CWE-563): [#def255]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c: scope_hint: In function ‘cm_submit_d_profiles_eval’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:853:70: warning[-Wunused-parameter]: unused parameter ‘url’
# 853 | cm_submit_d_profiles_eval(void *parent, const char *xml, const char *url,
# | ~~~~~~~~~~~~^~~
# 851|
# 852| enum cm_external_status
# 853|-> cm_submit_d_profiles_eval(void *parent, const char *xml, const char *url,
# 854| dbus_bool_t can_agent, char **out, char **err)
# 855| {
Error: COMPILER_WARNING (CWE-563): [#def256]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-d.c:854:39: warning[-Wunused-parameter]: unused parameter ‘can_agent’
# 854 | dbus_bool_t can_agent, char **out, char **err)
# | ~~~~~~~~~~~~^~~~~~~~~
# 852| enum cm_external_status
# 853| cm_submit_d_profiles_eval(void *parent, const char *xml, const char *url,
# 854|-> dbus_bool_t can_agent, char **out, char **err)
# 855| {
# 856| char *error_code = NULL, *error_reason = NULL, *status = NULL;
Error: CPPCHECK_WARNING: [#def257]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-e.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-457): [#def258]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-e.c: scope_hint: In function ‘cm_submit_e_postprocess_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-e.c:630:13: warning[-Wmaybe-uninitialized]: ‘length’ may be used uninitialized
# 630 | i = cm_pkcs7_parse(0, estate,
# | ^
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-e.c:547:17: note: ‘length’ was declared here
# 547 | ssize_t length;
# | ^
# 628| cert = cm_json_get(msg, CM_SUBMIT_E_CERTIFICATE);
# 629| u = (const unsigned char *) cm_json_string(cert, &length);
# 630|-> i = cm_pkcs7_parse(0, estate,
# 631| &leaf, &top, &others,
# 632| NULL, NULL, u, length, NULL);
Error: GCC_ANALYZER_WARNING (CWE-775): [#def259]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-e.c: scope_hint: In function ‘cm_submit_e_helper_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-e.c:922:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, 1)’
# 920| cm_submit_maybe_joinv(NULL, "\n",
# 921| entry->cm_template_ipaddress));
# 922|-> if (dup2(fd, STDOUT_FILENO) == -1) {
# 923| u = errno;
# 924| cm_log(1, "Error redirecting standard out for "
Error: CPPCHECK_WARNING: [#def260]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-h.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def261]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-h.c: scope_hint: In function ‘cm_submit_h_run’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-h.c:240:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
/usr/include/curl/curl.h:3234: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-h.c:31: included_from: Included from here.
# 238| }
# 239| }
# 240|-> if (ctx->ctype != NULL) {
# 241| header = talloc_asprintf(ctx, "Content-Type: %s",
# 242| ctx->ctype);
Error: COMPILER_WARNING (CWE-9001): [#def262]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-h.c:257:17: warning[-Wattribute-warning]: call to ‘_curl_easy_setopt_err_write_callback’ declared with attribute warning: curl_easy_setopt expects a curl_write_callback argument for this option
# 257 | curl_easy_setopt(ctx->curl, CURLOPT_WRITEFUNCTION,
# | ^
# 255| }
# 256| curl_easy_setopt(ctx->curl, CURLOPT_HTTPHEADER, headers);
# 257|-> curl_easy_setopt(ctx->curl, CURLOPT_WRITEFUNCTION,
# 258| append_result);
# 259| curl_easy_setopt(ctx->curl, CURLOPT_WRITEDATA, ctx);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def263]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-h.c:264:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ctx’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-h.c:29: included_from: Included from here.
# 262| ctx->result = NULL;
# 263| }
# 264|-> ctx->ret = curl_easy_perform(ctx->curl);
# 265| curl_easy_getinfo(ctx->curl, CURLINFO_RESPONSE_CODE,
# 266| &ctx->response_code);
Error: CPPCHECK_WARNING: [#def264]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def265]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-n.c:86:48: warning[-Wunused-parameter]: unused parameter ‘old_cert’
# 86 | SECKEYPrivateKey *privkey, X509 *old_cert)
# | ~~~~~~^~~~~~~~
# 84| static SECItem *
# 85| try_to_decode(void *parent, PLArenaPool *arena, SECItem *item,
# 86|-> SECKEYPrivateKey *privkey, X509 *old_cert)
# 87| {
# 88| SECOidTag tag;
Error: COMPILER_WARNING (CWE-477): [#def266]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-n.c: scope_hint: In function ‘try_to_decode’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-n.c:202:9: warning[-Wdeprecated-declarations]: ‘RSA_new’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/x509.h:36: included_from: Included from here.
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-n.c:35: included_from: Included from here.
/usr/include/openssl/rsa.h:212:28: note: declared here
# 200| }
# 201| BN_set_word(exponent, CM_DEFAULT_RSA_EXPONENT);
# 202|-> rsa = RSA_new();
# 203| if (rsa == NULL) {
# 204| cm_log(1, "Error allocating new RSA key.\n");
Error: COMPILER_WARNING (CWE-477): [#def267]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-n.c:208:9: warning[-Wdeprecated-declarations]: ‘RSA_generate_key_ex’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/rsa.h:271:27: note: declared here
# 206| }
# 207| retry_gen:
# 208|-> if (RSA_generate_key_ex(rsa, CM_DEFAULT_PUBKEY_SIZE, exponent, NULL) != 1) {
# 209| cm_log(1, "Error generating key.\n");
# 210| goto done;
Error: COMPILER_WARNING (CWE-477): [#def268]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-n.c:212:9: warning[-Wdeprecated-declarations]: ‘RSA_check_key’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/rsa.h:289:27: note: declared here
# 210| goto done;
# 211| }
# 212|-> if (RSA_check_key(rsa) != 1) { /* should be unnecessary */
# 213| cm_log(1, "Key fails checks. Retrying.\n");
# 214| goto retry_gen;
Error: COMPILER_WARNING (CWE-477): [#def269]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-n.c:216:9: warning[-Wdeprecated-declarations]: ‘EVP_PKEY_set1_RSA’ is deprecated: Since OpenSSL 3.0
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-n.c:31: included_from: Included from here.
/usr/include/openssl/evp.h:1363:5: note: declared here
# 214| goto retry_gen;
# 215| }
# 216|-> EVP_PKEY_set1_RSA(pkey, rsa);
# 217|
# 218| /* Encrypt the bulk key. We're about to decrypt it again, so do it the
Error: COMPILER_WARNING (CWE-477): [#def270]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-n.c:220:9: warning[-Wdeprecated-declarations]: ‘RSA_size’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/rsa.h:215:27: note: declared here
# 218| /* Encrypt the bulk key. We're about to decrypt it again, so do it the
# 219| * simplest way that we can. */
# 220|-> reenc_len = dec_len + RSA_size(rsa);
# 221| reenc = talloc_size(parent, reenc_len);
# 222| padding = RSA_PKCS1_PADDING;
Error: COMPILER_WARNING (CWE-477): [#def271]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-n.c:223:9: warning[-Wdeprecated-declarations]: ‘RSA_public_encrypt’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/rsa.h:293:5: note: declared here
# 221| reenc = talloc_size(parent, reenc_len);
# 222| padding = RSA_PKCS1_PADDING;
# 223|-> reenc_len = RSA_public_encrypt(dec_len, dec, reenc, rsa, padding);
# 224| if (reenc_len < 0) {
# 225| cm_log(1, "Error reencrypting.\n");
Error: CPPCHECK_WARNING: [#def272]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-o.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def273]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def274]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c: scope_hint: In function ‘cm_submit_sn_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c:55:25: warning[-Wunused-parameter]: unused parameter ‘userdata’
# 55 | void *userdata)
# | ~~~~~~^~~~~~~~
# 53| static int
# 54| cm_submit_sn_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 55|-> void *userdata)
# 56| {
# 57| FILE *status;
Error: COMPILER_WARNING (CWE-563): [#def275]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c: scope_hint: In function ‘cm_submit_sn_rejected’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c:407:47: warning[-Wunused-parameter]: unused parameter ‘state’
# 407 | cm_submit_sn_rejected(struct cm_submit_state *state)
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 405| /* Check if the signing request was rejected. */
# 406| static int
# 407|-> cm_submit_sn_rejected(struct cm_submit_state *state)
# 408| {
# 409| return -1; /* it never gets rejected */
Error: COMPILER_WARNING (CWE-563): [#def276]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c: scope_hint: In function ‘cm_submit_sn_need_scep_messages’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c:414:57: warning[-Wunused-parameter]: unused parameter ‘state’
# 414 | cm_submit_sn_need_scep_messages(struct cm_submit_state *state)
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 412| /* Check if we need SCEP messages. */
# 413| static int
# 414|-> cm_submit_sn_need_scep_messages(struct cm_submit_state *state)
# 415| {
# 416| return -1; /* nope */
Error: COMPILER_WARNING (CWE-563): [#def277]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c: scope_hint: In function ‘cm_submit_sn_need_rekey’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c:421:49: warning[-Wunused-parameter]: unused parameter ‘state’
# 421 | cm_submit_sn_need_rekey(struct cm_submit_state *state)
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 419| /* Check if we need to use a different key. */
# 420| static int
# 421|-> cm_submit_sn_need_rekey(struct cm_submit_state *state)
# 422| {
# 423| return -1; /* nope */
Error: COMPILER_WARNING (CWE-563): [#def278]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c: scope_hint: In function ‘cm_submit_sn_unreachable’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c:428:50: warning[-Wunused-parameter]: unused parameter ‘state’
# 428 | cm_submit_sn_unreachable(struct cm_submit_state *state)
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 426| /* Check if the CA was unreachable. */
# 427| static int
# 428|-> cm_submit_sn_unreachable(struct cm_submit_state *state)
# 429| {
# 430| return -1; /* uh, we're the CA */
Error: COMPILER_WARNING (CWE-563): [#def279]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c: scope_hint: In function ‘cm_submit_sn_unconfigured’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c:435:51: warning[-Wunused-parameter]: unused parameter ‘state’
# 435 | cm_submit_sn_unconfigured(struct cm_submit_state *state)
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 433| /* Check if the CA was unconfigured. */
# 434| static int
# 435|-> cm_submit_sn_unconfigured(struct cm_submit_state *state)
# 436| {
# 437| return -1; /* uh, we're the CA */
Error: COMPILER_WARNING (CWE-563): [#def280]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c: scope_hint: In function ‘cm_submit_sn_unsupported’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-sn.c:442:50: warning[-Wunused-parameter]: unused parameter ‘state’
# 442 | cm_submit_sn_unsupported(struct cm_submit_state *state)
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 440| /* Check if the CA is something we can ask for certificates. */
# 441| static int
# 442|-> cm_submit_sn_unsupported(struct cm_submit_state *state)
# 443| {
# 444| return -1; /* uh, we're the CA */
Error: CPPCHECK_WARNING: [#def281]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def282]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c: scope_hint: In function ‘cm_submit_so_main’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c:57:25: warning[-Wunused-parameter]: unused parameter ‘userdata’
# 57 | void *userdata)
# | ~~~~~~^~~~~~~~
# 55| static int
# 56| cm_submit_so_main(int fd, struct cm_store_ca *ca, struct cm_store_entry *entry,
# 57|-> void *userdata)
# 58| {
# 59| FILE *keyfp, *pem;
Error: COMPILER_WARNING (CWE-563): [#def283]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c: scope_hint: In function ‘cm_submit_so_need_scep_messages’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c:208:57: warning[-Wunused-parameter]: unused parameter ‘state’
# 208 | cm_submit_so_need_scep_messages(struct cm_submit_state *state)
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 206| /* Check if we need SCEP messages. */
# 207| static int
# 208|-> cm_submit_so_need_scep_messages(struct cm_submit_state *state)
# 209| {
# 210| return -1; /* nope */
Error: COMPILER_WARNING (CWE-563): [#def284]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c: scope_hint: In function ‘cm_submit_so_need_rekey’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c:215:49: warning[-Wunused-parameter]: unused parameter ‘state’
# 215 | cm_submit_so_need_rekey(struct cm_submit_state *state)
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 213| /* Check if we need to use a different key. */
# 214| static int
# 215|-> cm_submit_so_need_rekey(struct cm_submit_state *state)
# 216| {
# 217| return -1; /* nope */
Error: COMPILER_WARNING (CWE-563): [#def285]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c: scope_hint: In function ‘cm_submit_so_unreachable’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c:222:50: warning[-Wunused-parameter]: unused parameter ‘state’
# 222 | cm_submit_so_unreachable(struct cm_submit_state *state)
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 220| /* Check if the CA was unreachable. */
# 221| static int
# 222|-> cm_submit_so_unreachable(struct cm_submit_state *state)
# 223| {
# 224| return -1; /* uh, we're the CA */
Error: COMPILER_WARNING (CWE-563): [#def286]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c: scope_hint: In function ‘cm_submit_so_unconfigured’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c:229:51: warning[-Wunused-parameter]: unused parameter ‘state’
# 229 | cm_submit_so_unconfigured(struct cm_submit_state *state)
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 227| /* Check if the CA was unconfigured. */
# 228| static int
# 229|-> cm_submit_so_unconfigured(struct cm_submit_state *state)
# 230| {
# 231| return -1; /* uh, we're the CA */
Error: COMPILER_WARNING (CWE-563): [#def287]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c: scope_hint: In function ‘cm_submit_so_unsupported’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-so.c:236:50: warning[-Wunused-parameter]: unused parameter ‘state’
# 236 | cm_submit_so_unsupported(struct cm_submit_state *state)
# | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# 234| /* Check if the CA is something we can ask for certificates. */
# 235| static int
# 236|-> cm_submit_so_unsupported(struct cm_submit_state *state)
# 237| {
# 238| return -1; /* uh, we're the CA */
Error: CPPCHECK_WARNING: [#def288]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def289]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c:109:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'csr'
# 107| csr = realloc(csr, length + 1);
# 108| if (csr == NULL) {
# 109|-> return NULL;
# 110| }
# 111| csr[length - 1] = '\n';
Error: GCC_ANALYZER_WARNING (CWE-126): [#def290]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c: scope_hint: In function ‘cm_submit_u_from_file_single’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c:141:30: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c:141:30: note: read of 1 byte from after the end of the region
# └──────────────────────────────────┘
# ^
# 139| }
# 140| q = strdup(csr);
# 141|-> for (p = csr, i = 0; *p != '\0'; p++) {
# 142| if (strchr("\r\n\t ", *p) == NULL) {
# 143| q[i++] = *p;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def291]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c:143:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
# 141| for (p = csr, i = 0; *p != '\0'; p++) {
# 142| if (strchr("\r\n\t ", *p) == NULL) {
# 143|-> q[i++] = *p;
# 144| }
# 145| }
Error: GCC_ANALYZER_WARNING (CWE-122): [#def292]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c:146:14: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c:146:14: note: write of 1 byte to beyond the end of the region
# 144| }
# 145| }
# 146|-> q[i] = '\0';
# 147| free(csr);
# 148| return q;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def293]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c:146:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘q’
# 144| }
# 145| }
# 146|-> q[i] = '\0';
# 147| free(csr);
# 148| return q;
Error: COMPILER_WARNING (CWE-563): [#def294]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c: scope_hint: In function ‘cm_submit_princ_realm_data’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c:244:41: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 244 | cm_submit_princ_realm_data(krb5_context ctx, krb5_principal princ)
# | ~~~~~~~~~~~~~^~~
# 242|
# 243| char *
# 244|-> cm_submit_princ_realm_data(krb5_context ctx, krb5_principal princ)
# 245| {
# 246| #if HAVE_DECL_KRB5_PRINC_COMPONENT
Error: COMPILER_WARNING (CWE-563): [#def295]
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c: scope_hint: In function ‘cm_submit_princ_realm_len’
certmonger-0.79.20-build/certmonger-0.79.20/src/submit-u.c:254:40: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 254 | cm_submit_princ_realm_len(krb5_context ctx, krb5_principal princ)
# | ~~~~~~~~~~~~~^~~
# 252|
# 253| int
# 254|-> cm_submit_princ_realm_len(krb5_context ctx, krb5_principal princ)
# 255| {
# 256| #if HAVE_DECL_KRB5_PRINC_COMPONENT
Error: CPPCHECK_WARNING: [#def296]
certmonger-0.79.20-build/certmonger-0.79.20/src/subproc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
certmonger-0.79.20-build/certmonger-0.79.20/src/subproc.c: scope_hint: In function ‘cm_subproc_start’
certmonger-0.79.20-build/certmonger-0.79.20/src/subproc.c:172:41: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 170| setenv("LC_CTYPE", "C.UTF-8", 1);
# 171| if (configdir != NULL) {
# 172|-> setenv(CM_STORE_CONFIG_DIRECTORY_ENV,
# 173| configdir, 1);
# 174| }
Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
certmonger-0.79.20-build/certmonger-0.79.20/src/subproc.c:176:41: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 174| }
# 175| if (tmpdir != NULL) {
# 176|-> setenv("TMPDIR", tmpdir, 1);
# 177| }
# 178| if (local != NULL) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
certmonger-0.79.20-build/certmonger-0.79.20/src/subproc.c:179:41: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 177| }
# 178| if (local != NULL) {
# 179|-> setenv(CM_STORE_LOCAL_CA_DIRECTORY_ENV,
# 180| local, 1);
# 181| }
Error: GCC_ANALYZER_WARNING (CWE-775): [#def300]
certmonger-0.79.20-build/certmonger-0.79.20/src/subproc.c: scope_hint: In function ‘cm_subproc_mark_most_cloexec’
certmonger-0.79.20-build/certmonger-0.79.20/src/subproc.c:473:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
# 471| i = open("/dev/null", O_RDONLY);
# 472| if (i != -1) {
# 473|-> if (i != STDIN_FILENO) {
# 474| dup2(i, STDIN_FILENO);
# 475| close(i);
Error: GCC_ANALYZER_WARNING (CWE-775): [#def301]
certmonger-0.79.20-build/certmonger-0.79.20/src/subproc.c:486:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
# 484| i = open("/dev/null", O_WRONLY);
# 485| if (i != -1) {
# 486|-> if (i != STDOUT_FILENO) {
# 487| dup2(i, STDOUT_FILENO);
# 488| close(i);
Error: GCC_ANALYZER_WARNING (CWE-775): [#def302]
certmonger-0.79.20-build/certmonger-0.79.20/src/subproc.c:499:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
# 497| i = open("/dev/null", O_WRONLY);
# 498| if (i != -1) {
# 499|-> if (i != STDERR_FILENO) {
# 500| dup2(i, STDERR_FILENO);
# 501| close(i);
Error: CPPCHECK_WARNING: [#def303]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def304]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c: scope_hint: In function ‘cm_tdbus_dispatch_status’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c:81:32: warning[-Wunused-parameter]: unused parameter ‘data’
# 81 | void *data)
# | ~~~~~~^~~~
# 79| static void
# 80| cm_tdbus_dispatch_status(DBusConnection *conn, DBusDispatchStatus new_status,
# 81|-> void *data)
# 82| {
# 83| while (new_status == DBUS_DISPATCH_DATA_REMAINS) {
Error: COMPILER_WARNING (CWE-563): [#def305]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c: scope_hint: In function ‘cm_tdbus_handle_timer’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c:230:71: warning[-Wunused-parameter]: unused parameter ‘timer’
# 230 | cm_tdbus_handle_timer(struct tevent_context *ec, struct tevent_timer *timer,
# | ~~~~~~~~~~~~~~~~~~~~~^~~~~
# 228|
# 229| static void
# 230|-> cm_tdbus_handle_timer(struct tevent_context *ec, struct tevent_timer *timer,
# 231| struct timeval current_time, void *pvt)
# 232| {
Error: COMPILER_WARNING (CWE-563): [#def306]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c:231:38: warning[-Wunused-parameter]: unused parameter ‘current_time’
# 231 | struct timeval current_time, void *pvt)
# | ~~~~~~~~~~~~~~~^~~~~~~~~~~~
# 229| static void
# 230| cm_tdbus_handle_timer(struct tevent_context *ec, struct tevent_timer *timer,
# 231|-> struct timeval current_time, void *pvt)
# 232| {
# 233| struct tdbus_timer *tdb_timer;
Error: COMPILER_WARNING (CWE-563): [#def307]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c: scope_hint: In function ‘cm_tdbus_reconnect’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c:526:35: warning[-Wunused-parameter]: unused parameter ‘current_time’
# 526 | struct timeval current_time, void *pvt)
# | ~~~~~~~~~~~~~~~^~~~~~~~~~~~
# 524| static void
# 525| cm_tdbus_reconnect(struct tevent_context *ec, struct tevent_timer *timer,
# 526|-> struct timeval current_time, void *pvt)
# 527| {
# 528| const char *bus_desc;
Error: CLANG_WARNING: [#def308]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c:760:2: warning[deadcode.DeadStores]: Value stored to 'exit_on_disconnect' is never read
# 758| bus_desc = NULL;
# 759| conn = NULL;
# 760|-> exit_on_disconnect = TRUE;
# 761| if (error != NULL) {
# 762| dbus_error_init(error);
Error: COMPILER_WARNING (CWE-563): [#def309]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c: scope_hint: In function ‘cm_tdbus_new_private_client’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c:804:41: warning[-Wunused-parameter]: unused parameter ‘server’
# 804 | cm_tdbus_new_private_client(DBusServer *server, DBusConnection *new_conn,
# | ~~~~~~~~~~~~^~~~~~
# 802|
# 803| static void
# 804|-> cm_tdbus_new_private_client(DBusServer *server, DBusConnection *new_conn,
# 805| void *data)
# 806| {
Error: COMPILER_WARNING (CWE-563): [#def310]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c: scope_hint: In function ‘cm_tdbus_lost_private_client’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbus.c:830:36: warning[-Wunused-parameter]: unused parameter ‘data’
# 830 | cm_tdbus_lost_private_client(void *data)
# | ~~~~~~^~~~
# 828|
# 829| static void
# 830|-> cm_tdbus_lost_private_client(void *data)
# 831| {
# 832| cm_log(3, "Lost private connection.\n");
Error: CPPCHECK_WARNING: [#def311]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def312]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘base_add_known_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:320:42: warning[-Wunused-parameter]: unused parameter ‘ci’
# 320 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 318| static DBusHandlerResult
# 319| base_add_known_ca(DBusConnection *conn, DBusMessage *msg,
# 320|-> struct cm_client_info *ci, struct cm_context *ctx)
# 321| {
# 322| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def313]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘base_find_request_by_nickname’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:1671:54: warning[-Wunused-parameter]: unused parameter ‘ci’
# 1671 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 1669| static DBusHandlerResult
# 1670| base_find_request_by_nickname(DBusConnection *conn, DBusMessage *msg,
# 1671|-> struct cm_client_info *ci, struct cm_context *ctx)
# 1672| {
# 1673| struct cm_store_entry *entry;
Error: COMPILER_WARNING (CWE-563): [#def314]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘base_find_ca_by_nickname’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:1715:49: warning[-Wunused-parameter]: unused parameter ‘ci’
# 1715 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 1713| static DBusHandlerResult
# 1714| base_find_ca_by_nickname(DBusConnection *conn, DBusMessage *msg,
# 1715|-> struct cm_client_info *ci, struct cm_context *ctx)
# 1716| {
# 1717| struct cm_store_ca *ca;
Error: COMPILER_WARNING (CWE-563): [#def315]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘base_get_known_cas’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:1759:43: warning[-Wunused-parameter]: unused parameter ‘ci’
# 1759 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 1757| static DBusHandlerResult
# 1758| base_get_known_cas(DBusConnection *conn, DBusMessage *msg,
# 1759|-> struct cm_client_info *ci, struct cm_context *ctx)
# 1760| {
# 1761| int i, n_cas;
Error: COMPILER_WARNING (CWE-563): [#def316]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘base_get_requests’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:1795:42: warning[-Wunused-parameter]: unused parameter ‘ci’
# 1795 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 1793| static DBusHandlerResult
# 1794| base_get_requests(DBusConnection *conn, DBusMessage *msg,
# 1795|-> struct cm_client_info *ci, struct cm_context *ctx)
# 1796| {
# 1797| int i, n_entries;
Error: COMPILER_WARNING (CWE-563): [#def317]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘base_get_supported_key_types’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:1831:53: warning[-Wunused-parameter]: unused parameter ‘ci’
# 1831 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 1829| static DBusHandlerResult
# 1830| base_get_supported_key_types(DBusConnection *conn, DBusMessage *msg,
# 1831|-> struct cm_client_info *ci, struct cm_context *ctx)
# 1832| {
# 1833| const char *key_types[] = {
Error: COMPILER_WARNING (CWE-563): [#def318]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:1831:76: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 1831 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~^~~
# 1829| static DBusHandlerResult
# 1830| base_get_supported_key_types(DBusConnection *conn, DBusMessage *msg,
# 1831|-> struct cm_client_info *ci, struct cm_context *ctx)
# 1832| {
# 1833| const char *key_types[] = {
Error: COMPILER_WARNING (CWE-563): [#def319]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘base_get_supported_key_and_cert_storage’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:1857:64: warning[-Wunused-parameter]: unused parameter ‘ci’
# 1857 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 1855| static DBusHandlerResult
# 1856| base_get_supported_key_and_cert_storage(DBusConnection *conn, DBusMessage *msg,
# 1857|-> struct cm_client_info *ci, struct cm_context *ctx)
# 1858| {
# 1859| #ifdef HAVE_OPENSSL
Error: COMPILER_WARNING (CWE-563): [#def320]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:1857:87: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 1857 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~^~~
# 1855| static DBusHandlerResult
# 1856| base_get_supported_key_and_cert_storage(DBusConnection *conn, DBusMessage *msg,
# 1857|-> struct cm_client_info *ci, struct cm_context *ctx)
# 1858| {
# 1859| #ifdef HAVE_OPENSSL
Error: COMPILER_WARNING (CWE-563): [#def321]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘base_remove_known_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:1896:45: warning[-Wunused-parameter]: unused parameter ‘ci’
# 1896 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 1894| static DBusHandlerResult
# 1895| base_remove_known_ca(DBusConnection *conn, DBusMessage *msg,
# 1896|-> struct cm_client_info *ci, struct cm_context *ctx)
# 1897| {
# 1898| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def322]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘base_remove_request’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:1934:44: warning[-Wunused-parameter]: unused parameter ‘ci’
# 1934 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 1932| static DBusHandlerResult
# 1933| base_remove_request(DBusConnection *conn, DBusMessage *msg,
# 1934|-> struct cm_client_info *ci, struct cm_context *ctx)
# 1935| {
# 1936| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def323]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_get_nickname’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:1990:40: warning[-Wunused-parameter]: unused parameter ‘ci’
# 1990 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 1988| static DBusHandlerResult
# 1989| ca_get_nickname(DBusConnection *conn, DBusMessage *msg,
# 1990|-> struct cm_client_info *ci, struct cm_context *ctx)
# 1991| {
# 1992| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def324]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_get_is_default’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2015:42: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2015 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2013| static DBusHandlerResult
# 2014| ca_get_is_default(DBusConnection *conn, DBusMessage *msg,
# 2015|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2016| {
# 2017| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def325]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_get_issuer_names’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2037:44: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2037 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2035| static DBusHandlerResult
# 2036| ca_get_issuer_names(DBusConnection *conn, DBusMessage *msg,
# 2037|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2038| {
# 2039| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def326]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_get_location’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2061:40: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2061 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2059| static DBusHandlerResult
# 2060| ca_get_location(DBusConnection *conn, DBusMessage *msg,
# 2061|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2062| {
# 2063| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def327]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_get_type’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2083:36: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2083 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2081| static DBusHandlerResult
# 2082| ca_get_type(DBusConnection *conn, DBusMessage *msg,
# 2083|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2084| {
# 2085| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def328]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_get_serial’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2115:38: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2115 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2113| static DBusHandlerResult
# 2114| ca_get_serial(DBusConnection *conn, DBusMessage *msg,
# 2115|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2116| {
# 2117| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def329]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_get_config_file_path’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2145:40: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2145 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2143| static DBusHandlerResult
# 2144| ca_get_config_file_path(DBusConnection *conn, DBusMessage *msg,
# 2145|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2146| {
# 2147| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def330]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_refresh’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2167:35: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2167 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2165| static DBusHandlerResult
# 2166| ca_refresh(DBusConnection *conn, DBusMessage *msg,
# 2167|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2168| {
# 2169| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def331]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_prop_get_is_default’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2196:43: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 2196 | ca_prop_get_is_default(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 2194| /* Custom property get/set logic for CA structures. */
# 2195| static dbus_bool_t
# 2196|-> ca_prop_get_is_default(struct cm_context *ctx, void *parent,
# 2197| void *record, const char *name)
# 2198| {
Error: COMPILER_WARNING (CWE-563): [#def332]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2196:54: warning[-Wunused-parameter]: unused parameter ‘parent’
# 2196 | ca_prop_get_is_default(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 2194| /* Custom property get/set logic for CA structures. */
# 2195| static dbus_bool_t
# 2196|-> ca_prop_get_is_default(struct cm_context *ctx, void *parent,
# 2197| void *record, const char *name)
# 2198| {
Error: COMPILER_WARNING (CWE-563): [#def333]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_prop_get_external_helper’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2248:48: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 2248 | ca_prop_get_external_helper(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 2246|
# 2247| static const char *
# 2248|-> ca_prop_get_external_helper(struct cm_context *ctx, void *parent,
# 2249| void *record, const char *name)
# 2250| {
Error: COMPILER_WARNING (CWE-563): [#def334]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2248:59: warning[-Wunused-parameter]: unused parameter ‘parent’
# 2248 | ca_prop_get_external_helper(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 2246|
# 2247| static const char *
# 2248|-> ca_prop_get_external_helper(struct cm_context *ctx, void *parent,
# 2249| void *record, const char *name)
# 2250| {
Error: COMPILER_WARNING (CWE-563): [#def335]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_prop_get_scep_cipher’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2298:44: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 2298 | ca_prop_get_scep_cipher(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 2296|
# 2297| static const char *
# 2298|-> ca_prop_get_scep_cipher(struct cm_context *ctx, void *parent,
# 2299| void *record, const char *name)
# 2300| {
Error: COMPILER_WARNING (CWE-563): [#def336]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2298:55: warning[-Wunused-parameter]: unused parameter ‘parent’
# 2298 | ca_prop_get_scep_cipher(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 2296|
# 2297| static const char *
# 2298|-> ca_prop_get_scep_cipher(struct cm_context *ctx, void *parent,
# 2299| void *record, const char *name)
# 2300| {
Error: COMPILER_WARNING (CWE-563): [#def337]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_prop_get_scep_digest’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2348:44: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 2348 | ca_prop_get_scep_digest(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 2346|
# 2347| static const char *
# 2348|-> ca_prop_get_scep_digest(struct cm_context *ctx, void *parent,
# 2349| void *record, const char *name)
# 2350| {
Error: COMPILER_WARNING (CWE-563): [#def338]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2348:55: warning[-Wunused-parameter]: unused parameter ‘parent’
# 2348 | ca_prop_get_scep_digest(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 2346|
# 2347| static const char *
# 2348|-> ca_prop_get_scep_digest(struct cm_context *ctx, void *parent,
# 2349| void *record, const char *name)
# 2350| {
Error: COMPILER_WARNING (CWE-563): [#def339]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_prop_get_scep_ca_identifier’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2398:51: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 2398 | ca_prop_get_scep_ca_identifier(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 2396|
# 2397| static const char *
# 2398|-> ca_prop_get_scep_ca_identifier(struct cm_context *ctx, void *parent,
# 2399| void *record, const char *name)
# 2400| {
Error: COMPILER_WARNING (CWE-563): [#def340]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2398:62: warning[-Wunused-parameter]: unused parameter ‘parent’
# 2398 | ca_prop_get_scep_ca_identifier(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 2396|
# 2397| static const char *
# 2398|-> ca_prop_get_scep_ca_identifier(struct cm_context *ctx, void *parent,
# 2399| void *record, const char *name)
# 2400| {
Error: COMPILER_WARNING (CWE-563): [#def341]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘ca_prop_read_nickcerts’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2448:43: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 2448 | ca_prop_read_nickcerts(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 2446|
# 2447| static const char **
# 2448|-> ca_prop_read_nickcerts(struct cm_context *ctx, void *parent,
# 2449| struct cm_nickcert **nickcerts)
# 2450| {
Error: COMPILER_WARNING (CWE-563): [#def342]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_nickname’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2519:45: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2519 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2517| static DBusHandlerResult
# 2518| request_get_nickname(DBusConnection *conn, DBusMessage *msg,
# 2519|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2520| {
# 2521| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def343]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_key_pin’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2543:44: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2543 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2541| static DBusHandlerResult
# 2542| request_get_key_pin(DBusConnection *conn, DBusMessage *msg,
# 2543|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2544| {
# 2545| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def344]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_key_pin_file’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2565:49: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2565 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2563| static DBusHandlerResult
# 2564| request_get_key_pin_file(DBusConnection *conn, DBusMessage *msg,
# 2565|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2566| {
# 2567| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def345]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_autorenew’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2587:46: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2587 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2585| static DBusHandlerResult
# 2586| request_get_autorenew(DBusConnection *conn, DBusMessage *msg,
# 2587|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2588| {
# 2589| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def346]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_cert_data’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2609:46: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2609 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2607| static DBusHandlerResult
# 2608| request_get_cert_data(DBusConnection *conn, DBusMessage *msg,
# 2609|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2610| {
# 2611| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def347]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_cert_info’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2703:46: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2703 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2701| static DBusHandlerResult
# 2702| request_get_cert_info(DBusConnection *conn, DBusMessage *msg,
# 2703|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2704| {
# 2705| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def348]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_cert_last_checked’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2738:54: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2738 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2736| static DBusHandlerResult
# 2737| request_get_cert_last_checked(DBusConnection *conn, DBusMessage *msg,
# 2738|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2739| {
# 2740| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def349]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_cert_storage_info’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2762:54: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2762 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2760| static DBusHandlerResult
# 2761| request_get_cert_storage_info(DBusConnection *conn, DBusMessage *msg,
# 2762|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2763| {
# 2764| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def350]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_csr_data’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2808:45: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2808 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2806| static DBusHandlerResult
# 2807| request_get_csr_data(DBusConnection *conn, DBusMessage *msg,
# 2808|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2809| {
# 2810| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def351]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_csr_info’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2832:45: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2832 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2830| static DBusHandlerResult
# 2831| request_get_csr_info(DBusConnection *conn, DBusMessage *msg,
# 2832|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2833| {
# 2834| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def352]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_key_storage_info’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2865:53: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2865 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2863| static DBusHandlerResult
# 2864| request_get_key_storage_info(DBusConnection *conn, DBusMessage *msg,
# 2865|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2866| {
# 2867| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def353]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_key_type_and_size’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2916:54: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2916 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2914| static DBusHandlerResult
# 2915| request_get_key_type_and_size(DBusConnection *conn, DBusMessage *msg,
# 2916|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2917| {
# 2918| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def354]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_monitoring’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2962:47: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2962 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2960| static DBusHandlerResult
# 2961| request_get_monitoring(DBusConnection *conn, DBusMessage *msg,
# 2962|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2963| {
# 2964| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def355]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_notification_info’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:2984:54: warning[-Wunused-parameter]: unused parameter ‘ci’
# 2984 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 2982| static DBusHandlerResult
# 2983| request_get_notification_info(DBusConnection *conn, DBusMessage *msg,
# 2984|-> struct cm_client_info *ci, struct cm_context *ctx)
# 2985| {
# 2986| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def356]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_status’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3034:43: warning[-Wunused-parameter]: unused parameter ‘ci’
# 3034 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 3032| static DBusHandlerResult
# 3033| request_get_status(DBusConnection *conn, DBusMessage *msg,
# 3034|-> struct cm_client_info *ci, struct cm_context *ctx)
# 3035| {
# 3036| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def357]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3060:39: warning[-Wunused-parameter]: unused parameter ‘ci’
# 3060 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 3058| static DBusHandlerResult
# 3059| request_get_ca(DBusConnection *conn, DBusMessage *msg,
# 3060|-> struct cm_client_info *ci, struct cm_context *ctx)
# 3061| {
# 3062| void *parent;
Error: COMPILER_WARNING (CWE-563): [#def358]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_ca_error’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3098:45: warning[-Wunused-parameter]: unused parameter ‘ci’
# 3098 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 3096| static DBusHandlerResult
# 3097| request_get_ca_error(DBusConnection *conn, DBusMessage *msg,
# 3098|-> struct cm_client_info *ci, struct cm_context *ctx)
# 3099| {
# 3100| void *parent;
Error: COMPILER_WARNING (CWE-563): [#def359]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_submitted_cookie’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3126:53: warning[-Wunused-parameter]: unused parameter ‘ci’
# 3126 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 3124| static DBusHandlerResult
# 3125| request_get_submitted_cookie(DBusConnection *conn, DBusMessage *msg,
# 3126|-> struct cm_client_info *ci, struct cm_context *ctx)
# 3127| {
# 3128| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def360]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_get_submitted_date’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3150:51: warning[-Wunused-parameter]: unused parameter ‘ci’
# 3150 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 3148| static DBusHandlerResult
# 3149| request_get_submitted_date(DBusConnection *conn, DBusMessage *msg,
# 3150|-> struct cm_client_info *ci, struct cm_context *ctx)
# 3151| {
# 3152| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def361]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_resubmit’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3720:41: warning[-Wunused-parameter]: unused parameter ‘ci’
# 3720 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 3718| static DBusHandlerResult
# 3719| request_resubmit(DBusConnection *conn, DBusMessage *msg,
# 3720|-> struct cm_client_info *ci, struct cm_context *ctx)
# 3721| {
# 3722| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def362]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_refresh’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3773:40: warning[-Wunused-parameter]: unused parameter ‘ci’
# 3773 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 3771| static DBusHandlerResult
# 3772| request_refresh(DBusConnection *conn, DBusMessage *msg,
# 3773|-> struct cm_client_info *ci, struct cm_context *ctx)
# 3774| {
# 3775| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def363]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_rekey’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3812:38: warning[-Wunused-parameter]: unused parameter ‘ci’
# 3812 | struct cm_client_info *ci, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 3810| static DBusHandlerResult
# 3811| request_rekey(DBusConnection *conn, DBusMessage *msg,
# 3812|-> struct cm_client_info *ci, struct cm_context *ctx)
# 3813| {
# 3814| DBusMessage *rep;
Error: COMPILER_WARNING (CWE-563): [#def364]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_autorenew’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3856:47: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 3856 | request_prop_get_autorenew(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 3854| /* Custom property get/set logic for request structures. */
# 3855| static dbus_bool_t
# 3856|-> request_prop_get_autorenew(struct cm_context *ctx, void *parent,
# 3857| void *record, const char *name)
# 3858| {
Error: COMPILER_WARNING (CWE-563): [#def365]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3856:58: warning[-Wunused-parameter]: unused parameter ‘parent’
# 3856 | request_prop_get_autorenew(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 3854| /* Custom property get/set logic for request structures. */
# 3855| static dbus_bool_t
# 3856|-> request_prop_get_autorenew(struct cm_context *ctx, void *parent,
# 3857| void *record, const char *name)
# 3858| {
Error: COMPILER_WARNING (CWE-563): [#def366]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3857:54: warning[-Wunused-parameter]: unused parameter ‘name’
# 3857 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 3855| static dbus_bool_t
# 3856| request_prop_get_autorenew(struct cm_context *ctx, void *parent,
# 3857|-> void *record, const char *name)
# 3858| {
# 3859| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def367]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_monitoring’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3864:48: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 3864 | request_prop_get_monitoring(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 3862|
# 3863| static dbus_bool_t
# 3864|-> request_prop_get_monitoring(struct cm_context *ctx, void *parent,
# 3865| void *record, const char *name)
# 3866| {
Error: COMPILER_WARNING (CWE-563): [#def368]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3864:59: warning[-Wunused-parameter]: unused parameter ‘parent’
# 3864 | request_prop_get_monitoring(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 3862|
# 3863| static dbus_bool_t
# 3864|-> request_prop_get_monitoring(struct cm_context *ctx, void *parent,
# 3865| void *record, const char *name)
# 3866| {
Error: COMPILER_WARNING (CWE-563): [#def369]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3865:55: warning[-Wunused-parameter]: unused parameter ‘name’
# 3865 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 3863| static dbus_bool_t
# 3864| request_prop_get_monitoring(struct cm_context *ctx, void *parent,
# 3865|-> void *record, const char *name)
# 3866| {
# 3867| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def370]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_cert_location_type’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3872:56: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 3872 | request_prop_get_cert_location_type(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 3870|
# 3871| static const char *
# 3872|-> request_prop_get_cert_location_type(struct cm_context *ctx, void *parent,
# 3873| void *record, const char *name)
# 3874| {
Error: COMPILER_WARNING (CWE-563): [#def371]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3872:67: warning[-Wunused-parameter]: unused parameter ‘parent’
# 3872 | request_prop_get_cert_location_type(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 3870|
# 3871| static const char *
# 3872|-> request_prop_get_cert_location_type(struct cm_context *ctx, void *parent,
# 3873| void *record, const char *name)
# 3874| {
Error: COMPILER_WARNING (CWE-563): [#def372]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3873:63: warning[-Wunused-parameter]: unused parameter ‘name’
# 3873 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 3871| static const char *
# 3872| request_prop_get_cert_location_type(struct cm_context *ctx, void *parent,
# 3873|-> void *record, const char *name)
# 3874| {
# 3875| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def373]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_cert_location_file’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3888:56: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 3888 | request_prop_get_cert_location_file(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 3886|
# 3887| static const char *
# 3888|-> request_prop_get_cert_location_file(struct cm_context *ctx, void *parent,
# 3889| void *record, const char *name)
# 3890| {
Error: COMPILER_WARNING (CWE-563): [#def374]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3888:67: warning[-Wunused-parameter]: unused parameter ‘parent’
# 3888 | request_prop_get_cert_location_file(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 3886|
# 3887| static const char *
# 3888|-> request_prop_get_cert_location_file(struct cm_context *ctx, void *parent,
# 3889| void *record, const char *name)
# 3890| {
Error: COMPILER_WARNING (CWE-563): [#def375]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3889:63: warning[-Wunused-parameter]: unused parameter ‘name’
# 3889 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 3887| static const char *
# 3888| request_prop_get_cert_location_file(struct cm_context *ctx, void *parent,
# 3889|-> void *record, const char *name)
# 3890| {
# 3891| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def376]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_cert_location_database’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3903:60: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 3903 | request_prop_get_cert_location_database(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 3901|
# 3902| static const char *
# 3903|-> request_prop_get_cert_location_database(struct cm_context *ctx, void *parent,
# 3904| void *record, const char *name)
# 3905| {
Error: COMPILER_WARNING (CWE-563): [#def377]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3903:71: warning[-Wunused-parameter]: unused parameter ‘parent’
# 3903 | request_prop_get_cert_location_database(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 3901|
# 3902| static const char *
# 3903|-> request_prop_get_cert_location_database(struct cm_context *ctx, void *parent,
# 3904| void *record, const char *name)
# 3905| {
Error: COMPILER_WARNING (CWE-563): [#def378]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3904:67: warning[-Wunused-parameter]: unused parameter ‘name’
# 3904 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 3902| static const char *
# 3903| request_prop_get_cert_location_database(struct cm_context *ctx, void *parent,
# 3904|-> void *record, const char *name)
# 3905| {
# 3906| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def379]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_cert_location_nickname’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3918:60: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 3918 | request_prop_get_cert_location_nickname(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 3916|
# 3917| static const char *
# 3918|-> request_prop_get_cert_location_nickname(struct cm_context *ctx, void *parent,
# 3919| void *record, const char *name)
# 3920| {
Error: COMPILER_WARNING (CWE-563): [#def380]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3918:71: warning[-Wunused-parameter]: unused parameter ‘parent’
# 3918 | request_prop_get_cert_location_nickname(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 3916|
# 3917| static const char *
# 3918|-> request_prop_get_cert_location_nickname(struct cm_context *ctx, void *parent,
# 3919| void *record, const char *name)
# 3920| {
Error: COMPILER_WARNING (CWE-563): [#def381]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3919:67: warning[-Wunused-parameter]: unused parameter ‘name’
# 3919 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 3917| static const char *
# 3918| request_prop_get_cert_location_nickname(struct cm_context *ctx, void *parent,
# 3919|-> void *record, const char *name)
# 3920| {
# 3921| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def382]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_cert_location_token’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3933:57: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 3933 | request_prop_get_cert_location_token(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 3931|
# 3932| static const char *
# 3933|-> request_prop_get_cert_location_token(struct cm_context *ctx, void *parent,
# 3934| void *record, const char *name)
# 3935| {
Error: COMPILER_WARNING (CWE-563): [#def383]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3933:68: warning[-Wunused-parameter]: unused parameter ‘parent’
# 3933 | request_prop_get_cert_location_token(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 3931|
# 3932| static const char *
# 3933|-> request_prop_get_cert_location_token(struct cm_context *ctx, void *parent,
# 3934| void *record, const char *name)
# 3935| {
Error: COMPILER_WARNING (CWE-563): [#def384]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3934:64: warning[-Wunused-parameter]: unused parameter ‘name’
# 3934 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 3932| static const char *
# 3933| request_prop_get_cert_location_token(struct cm_context *ctx, void *parent,
# 3934|-> void *record, const char *name)
# 3935| {
# 3936| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def385]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_key_location_type’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3948:55: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 3948 | request_prop_get_key_location_type(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 3946|
# 3947| static const char *
# 3948|-> request_prop_get_key_location_type(struct cm_context *ctx, void *parent,
# 3949| void *record, const char *name)
# 3950| {
Error: COMPILER_WARNING (CWE-563): [#def386]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3948:66: warning[-Wunused-parameter]: unused parameter ‘parent’
# 3948 | request_prop_get_key_location_type(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 3946|
# 3947| static const char *
# 3948|-> request_prop_get_key_location_type(struct cm_context *ctx, void *parent,
# 3949| void *record, const char *name)
# 3950| {
Error: COMPILER_WARNING (CWE-563): [#def387]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3949:62: warning[-Wunused-parameter]: unused parameter ‘name’
# 3949 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 3947| static const char *
# 3948| request_prop_get_key_location_type(struct cm_context *ctx, void *parent,
# 3949|-> void *record, const char *name)
# 3950| {
# 3951| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def388]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_key_location_file’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3967:55: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 3967 | request_prop_get_key_location_file(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 3965|
# 3966| static const char *
# 3967|-> request_prop_get_key_location_file(struct cm_context *ctx, void *parent,
# 3968| void *record, const char *name)
# 3969| {
Error: COMPILER_WARNING (CWE-563): [#def389]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3967:66: warning[-Wunused-parameter]: unused parameter ‘parent’
# 3967 | request_prop_get_key_location_file(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 3965|
# 3966| static const char *
# 3967|-> request_prop_get_key_location_file(struct cm_context *ctx, void *parent,
# 3968| void *record, const char *name)
# 3969| {
Error: COMPILER_WARNING (CWE-563): [#def390]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3968:62: warning[-Wunused-parameter]: unused parameter ‘name’
# 3968 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 3966| static const char *
# 3967| request_prop_get_key_location_file(struct cm_context *ctx, void *parent,
# 3968|-> void *record, const char *name)
# 3969| {
# 3970| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def391]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_key_location_database’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3983:59: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 3983 | request_prop_get_key_location_database(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 3981|
# 3982| static const char *
# 3983|-> request_prop_get_key_location_database(struct cm_context *ctx, void *parent,
# 3984| void *record, const char *name)
# 3985| {
Error: COMPILER_WARNING (CWE-563): [#def392]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3983:70: warning[-Wunused-parameter]: unused parameter ‘parent’
# 3983 | request_prop_get_key_location_database(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 3981|
# 3982| static const char *
# 3983|-> request_prop_get_key_location_database(struct cm_context *ctx, void *parent,
# 3984| void *record, const char *name)
# 3985| {
Error: COMPILER_WARNING (CWE-563): [#def393]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3984:66: warning[-Wunused-parameter]: unused parameter ‘name’
# 3984 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 3982| static const char *
# 3983| request_prop_get_key_location_database(struct cm_context *ctx, void *parent,
# 3984|-> void *record, const char *name)
# 3985| {
# 3986| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def394]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_key_location_nickname’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3999:59: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 3999 | request_prop_get_key_location_nickname(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 3997|
# 3998| static const char *
# 3999|-> request_prop_get_key_location_nickname(struct cm_context *ctx, void *parent,
# 4000| void *record, const char *name)
# 4001| {
Error: COMPILER_WARNING (CWE-563): [#def395]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:3999:70: warning[-Wunused-parameter]: unused parameter ‘parent’
# 3999 | request_prop_get_key_location_nickname(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 3997|
# 3998| static const char *
# 3999|-> request_prop_get_key_location_nickname(struct cm_context *ctx, void *parent,
# 4000| void *record, const char *name)
# 4001| {
Error: COMPILER_WARNING (CWE-563): [#def396]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4000:66: warning[-Wunused-parameter]: unused parameter ‘name’
# 4000 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 3998| static const char *
# 3999| request_prop_get_key_location_nickname(struct cm_context *ctx, void *parent,
# 4000|-> void *record, const char *name)
# 4001| {
# 4002| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def397]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_key_location_token’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4015:56: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4015 | request_prop_get_key_location_token(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4013|
# 4014| static const char *
# 4015|-> request_prop_get_key_location_token(struct cm_context *ctx, void *parent,
# 4016| void *record, const char *name)
# 4017| {
Error: COMPILER_WARNING (CWE-563): [#def398]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4015:67: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4015 | request_prop_get_key_location_token(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4013|
# 4014| static const char *
# 4015|-> request_prop_get_key_location_token(struct cm_context *ctx, void *parent,
# 4016| void *record, const char *name)
# 4017| {
Error: COMPILER_WARNING (CWE-563): [#def399]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4016:63: warning[-Wunused-parameter]: unused parameter ‘name’
# 4016 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4014| static const char *
# 4015| request_prop_get_key_location_token(struct cm_context *ctx, void *parent,
# 4016|-> void *record, const char *name)
# 4017| {
# 4018| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def400]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_key_type’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4031:46: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4031 | request_prop_get_key_type(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4029|
# 4030| static const char *
# 4031|-> request_prop_get_key_type(struct cm_context *ctx, void *parent,
# 4032| void *record, const char *name)
# 4033| {
Error: COMPILER_WARNING (CWE-563): [#def401]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4031:57: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4031 | request_prop_get_key_type(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4029|
# 4030| static const char *
# 4031|-> request_prop_get_key_type(struct cm_context *ctx, void *parent,
# 4032| void *record, const char *name)
# 4033| {
Error: COMPILER_WARNING (CWE-563): [#def402]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4032:53: warning[-Wunused-parameter]: unused parameter ‘name’
# 4032 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4030| static const char *
# 4031| request_prop_get_key_type(struct cm_context *ctx, void *parent,
# 4032|-> void *record, const char *name)
# 4033| {
# 4034| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def403]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_key_size’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4057:46: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4057 | request_prop_get_key_size(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4055|
# 4056| static long
# 4057|-> request_prop_get_key_size(struct cm_context *ctx, void *parent,
# 4058| void *record, const char *name)
# 4059| {
Error: COMPILER_WARNING (CWE-563): [#def404]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4057:57: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4057 | request_prop_get_key_size(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4055|
# 4056| static long
# 4057|-> request_prop_get_key_size(struct cm_context *ctx, void *parent,
# 4058| void *record, const char *name)
# 4059| {
Error: COMPILER_WARNING (CWE-563): [#def405]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4058:53: warning[-Wunused-parameter]: unused parameter ‘name’
# 4058 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4056| static long
# 4057| request_prop_get_key_size(struct cm_context *ctx, void *parent,
# 4058|-> void *record, const char *name)
# 4059| {
# 4060| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def406]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_notification_type’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4081:55: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4081 | request_prop_get_notification_type(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4079|
# 4080| static const char *
# 4081|-> request_prop_get_notification_type(struct cm_context *ctx, void *parent,
# 4082| void *record, const char *name)
# 4083| {
Error: COMPILER_WARNING (CWE-563): [#def407]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4081:66: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4081 | request_prop_get_notification_type(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4079|
# 4080| static const char *
# 4081|-> request_prop_get_notification_type(struct cm_context *ctx, void *parent,
# 4082| void *record, const char *name)
# 4083| {
Error: COMPILER_WARNING (CWE-563): [#def408]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4082:62: warning[-Wunused-parameter]: unused parameter ‘name’
# 4082 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4080| static const char *
# 4081| request_prop_get_notification_type(struct cm_context *ctx, void *parent,
# 4082|-> void *record, const char *name)
# 4083| {
# 4084| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def409]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_notification_syslog’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4107:57: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4107 | request_prop_get_notification_syslog(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4105|
# 4106| static const char *
# 4107|-> request_prop_get_notification_syslog(struct cm_context *ctx, void *parent,
# 4108| void *record, const char *name)
# 4109| {
Error: COMPILER_WARNING (CWE-563): [#def410]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4107:68: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4107 | request_prop_get_notification_syslog(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4105|
# 4106| static const char *
# 4107|-> request_prop_get_notification_syslog(struct cm_context *ctx, void *parent,
# 4108| void *record, const char *name)
# 4109| {
Error: COMPILER_WARNING (CWE-563): [#def411]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4108:64: warning[-Wunused-parameter]: unused parameter ‘name’
# 4108 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4106| static const char *
# 4107| request_prop_get_notification_syslog(struct cm_context *ctx, void *parent,
# 4108|-> void *record, const char *name)
# 4109| {
# 4110| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def412]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_notification_email’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4127:56: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4127 | request_prop_get_notification_email(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4125|
# 4126| static const char *
# 4127|-> request_prop_get_notification_email(struct cm_context *ctx, void *parent,
# 4128| void *record, const char *name)
# 4129| {
Error: COMPILER_WARNING (CWE-563): [#def413]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4127:67: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4127 | request_prop_get_notification_email(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4125|
# 4126| static const char *
# 4127|-> request_prop_get_notification_email(struct cm_context *ctx, void *parent,
# 4128| void *record, const char *name)
# 4129| {
Error: COMPILER_WARNING (CWE-563): [#def414]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4128:63: warning[-Wunused-parameter]: unused parameter ‘name’
# 4128 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4126| static const char *
# 4127| request_prop_get_notification_email(struct cm_context *ctx, void *parent,
# 4128|-> void *record, const char *name)
# 4129| {
# 4130| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def415]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_notification_command’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4147:58: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4147 | request_prop_get_notification_command(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4145|
# 4146| static const char *
# 4147|-> request_prop_get_notification_command(struct cm_context *ctx, void *parent,
# 4148| void *record, const char *name)
# 4149| {
Error: COMPILER_WARNING (CWE-563): [#def416]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4147:69: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4147 | request_prop_get_notification_command(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4145|
# 4146| static const char *
# 4147|-> request_prop_get_notification_command(struct cm_context *ctx, void *parent,
# 4148| void *record, const char *name)
# 4149| {
Error: COMPILER_WARNING (CWE-563): [#def417]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4148:65: warning[-Wunused-parameter]: unused parameter ‘name’
# 4148 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4146| static const char *
# 4147| request_prop_get_notification_command(struct cm_context *ctx, void *parent,
# 4148|-> void *record, const char *name)
# 4149| {
# 4150| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def418]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_key_pin’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4167:45: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4167 | request_prop_get_key_pin(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4165|
# 4166| static const char *
# 4167|-> request_prop_get_key_pin(struct cm_context *ctx, void *parent,
# 4168| void *record, const char *name)
# 4169| {
Error: COMPILER_WARNING (CWE-563): [#def419]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4167:56: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4167 | request_prop_get_key_pin(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4165|
# 4166| static const char *
# 4167|-> request_prop_get_key_pin(struct cm_context *ctx, void *parent,
# 4168| void *record, const char *name)
# 4169| {
Error: COMPILER_WARNING (CWE-563): [#def420]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4168:52: warning[-Wunused-parameter]: unused parameter ‘name’
# 4168 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4166| static const char *
# 4167| request_prop_get_key_pin(struct cm_context *ctx, void *parent,
# 4168|-> void *record, const char *name)
# 4169| {
# 4170| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def421]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_set_key_pin’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4175:56: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4175 | request_prop_set_key_pin(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4173|
# 4174| static void
# 4175|-> request_prop_set_key_pin(struct cm_context *ctx, void *parent,
# 4176| void *record, const char *name, const char *value)
# 4177| {
Error: COMPILER_WARNING (CWE-563): [#def422]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4176:52: warning[-Wunused-parameter]: unused parameter ‘name’
# 4176 | void *record, const char *name, const char *value)
# | ~~~~~~~~~~~~^~~~
# 4174| static void
# 4175| request_prop_set_key_pin(struct cm_context *ctx, void *parent,
# 4176|-> void *record, const char *name, const char *value)
# 4177| {
# 4178| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def423]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_key_pin_file’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4197:50: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4197 | request_prop_get_key_pin_file(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4195|
# 4196| static const char *
# 4197|-> request_prop_get_key_pin_file(struct cm_context *ctx, void *parent,
# 4198| void *record, const char *name)
# 4199| {
Error: COMPILER_WARNING (CWE-563): [#def424]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4197:61: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4197 | request_prop_get_key_pin_file(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4195|
# 4196| static const char *
# 4197|-> request_prop_get_key_pin_file(struct cm_context *ctx, void *parent,
# 4198| void *record, const char *name)
# 4199| {
Error: COMPILER_WARNING (CWE-563): [#def425]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4198:57: warning[-Wunused-parameter]: unused parameter ‘name’
# 4198 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4196| static const char *
# 4197| request_prop_get_key_pin_file(struct cm_context *ctx, void *parent,
# 4198|-> void *record, const char *name)
# 4199| {
# 4200| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def426]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_set_key_pin_file’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4205:61: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4205 | request_prop_set_key_pin_file(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4203|
# 4204| static void
# 4205|-> request_prop_set_key_pin_file(struct cm_context *ctx, void *parent,
# 4206| void *record, const char *name, const char *value)
# 4207| {
Error: COMPILER_WARNING (CWE-563): [#def427]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4206:57: warning[-Wunused-parameter]: unused parameter ‘name’
# 4206 | void *record, const char *name, const char *value)
# | ~~~~~~~~~~~~^~~~
# 4204| static void
# 4205| request_prop_set_key_pin_file(struct cm_context *ctx, void *parent,
# 4206|-> void *record, const char *name, const char *value)
# 4207| {
# 4208| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def428]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_key_issued_count’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4227:54: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4227 | request_prop_get_key_issued_count(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4225|
# 4226| static long
# 4227|-> request_prop_get_key_issued_count(struct cm_context *ctx, void *parent,
# 4228| void *record, const char *name)
# 4229| {
Error: COMPILER_WARNING (CWE-563): [#def429]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4227:65: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4227 | request_prop_get_key_issued_count(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4225|
# 4226| static long
# 4227|-> request_prop_get_key_issued_count(struct cm_context *ctx, void *parent,
# 4228| void *record, const char *name)
# 4229| {
Error: COMPILER_WARNING (CWE-563): [#def430]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4228:61: warning[-Wunused-parameter]: unused parameter ‘name’
# 4228 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4226| static long
# 4227| request_prop_get_key_issued_count(struct cm_context *ctx, void *parent,
# 4228|-> void *record, const char *name)
# 4229| {
# 4230| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def431]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_challenge_password’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4235:56: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4235 | request_prop_get_challenge_password(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4233|
# 4234| static const char *
# 4235|-> request_prop_get_challenge_password(struct cm_context *ctx, void *parent,
# 4236| void *record, const char *name)
# 4237| {
Error: COMPILER_WARNING (CWE-563): [#def432]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4235:67: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4235 | request_prop_get_challenge_password(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4233|
# 4234| static const char *
# 4235|-> request_prop_get_challenge_password(struct cm_context *ctx, void *parent,
# 4236| void *record, const char *name)
# 4237| {
Error: COMPILER_WARNING (CWE-563): [#def433]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4236:63: warning[-Wunused-parameter]: unused parameter ‘name’
# 4236 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4234| static const char *
# 4235| request_prop_get_challenge_password(struct cm_context *ctx, void *parent,
# 4236|-> void *record, const char *name)
# 4237| {
# 4238| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def434]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_set_challenge_password’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4244:67: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4244 | request_prop_set_challenge_password(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4242|
# 4243| static void
# 4244|-> request_prop_set_challenge_password(struct cm_context *ctx, void *parent,
# 4245| void *record, const char *name,
# 4246| const char *value)
Error: COMPILER_WARNING (CWE-563): [#def435]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4245:63: warning[-Wunused-parameter]: unused parameter ‘name’
# 4245 | void *record, const char *name,
# | ~~~~~~~~~~~~^~~~
# 4243| static void
# 4244| request_prop_set_challenge_password(struct cm_context *ctx, void *parent,
# 4245|-> void *record, const char *name,
# 4246| const char *value)
# 4247| {
Error: COMPILER_WARNING (CWE-563): [#def436]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_challenge_password_file’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4267:61: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4267 | request_prop_get_challenge_password_file(struct cm_context *ctx,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4265|
# 4266| static const char *
# 4267|-> request_prop_get_challenge_password_file(struct cm_context *ctx,
# 4268| void *parent,
# 4269| void *record, const char *name)
Error: COMPILER_WARNING (CWE-563): [#def437]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4268:48: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4268 | void *parent,
# | ~~~~~~^~~~~~
# 4266| static const char *
# 4267| request_prop_get_challenge_password_file(struct cm_context *ctx,
# 4268|-> void *parent,
# 4269| void *record, const char *name)
# 4270| {
Error: COMPILER_WARNING (CWE-563): [#def438]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4269:68: warning[-Wunused-parameter]: unused parameter ‘name’
# 4269 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4267| request_prop_get_challenge_password_file(struct cm_context *ctx,
# 4268| void *parent,
# 4269|-> void *record, const char *name)
# 4270| {
# 4271| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def439]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_set_challenge_password_file’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4278:48: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4278 | void *parent,
# | ~~~~~~^~~~~~
# 4276| static void
# 4277| request_prop_set_challenge_password_file(struct cm_context *ctx,
# 4278|-> void *parent,
# 4279| void *record, const char *name,
# 4280| const char *value)
Error: COMPILER_WARNING (CWE-563): [#def440]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4279:68: warning[-Wunused-parameter]: unused parameter ‘name’
# 4279 | void *record, const char *name,
# | ~~~~~~~~~~~~^~~~
# 4277| request_prop_set_challenge_password_file(struct cm_context *ctx,
# 4278| void *parent,
# 4279|-> void *record, const char *name,
# 4280| const char *value)
# 4281| {
Error: COMPILER_WARNING (CWE-563): [#def441]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_status’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4301:44: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4301 | request_prop_get_status(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4299|
# 4300| static const char *
# 4301|-> request_prop_get_status(struct cm_context *ctx, void *parent,
# 4302| void *record, const char *name)
# 4303| {
Error: COMPILER_WARNING (CWE-563): [#def442]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4301:55: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4301 | request_prop_get_status(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4299|
# 4300| static const char *
# 4301|-> request_prop_get_status(struct cm_context *ctx, void *parent,
# 4302| void *record, const char *name)
# 4303| {
Error: COMPILER_WARNING (CWE-563): [#def443]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4302:51: warning[-Wunused-parameter]: unused parameter ‘name’
# 4302 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4300| static const char *
# 4301| request_prop_get_status(struct cm_context *ctx, void *parent,
# 4302|-> void *record, const char *name)
# 4303| {
# 4304| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def444]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_stuck’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4309:43: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4309 | request_prop_get_stuck(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4307|
# 4308| static dbus_bool_t
# 4309|-> request_prop_get_stuck(struct cm_context *ctx, void *parent,
# 4310| void *record, const char *name)
# 4311| {
Error: COMPILER_WARNING (CWE-563): [#def445]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4309:54: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4309 | request_prop_get_stuck(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4307|
# 4308| static dbus_bool_t
# 4309|-> request_prop_get_stuck(struct cm_context *ctx, void *parent,
# 4310| void *record, const char *name)
# 4311| {
Error: COMPILER_WARNING (CWE-563): [#def446]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4310:50: warning[-Wunused-parameter]: unused parameter ‘name’
# 4310 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4308| static dbus_bool_t
# 4309| request_prop_get_stuck(struct cm_context *ctx, void *parent,
# 4310|-> void *record, const char *name)
# 4311| {
# 4312| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def447]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4397:47: warning[-Wunused-parameter]: unused parameter ‘name’
# 4397 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4395| static const char *
# 4396| request_prop_get_ca(struct cm_context *ctx, void *parent,
# 4397|-> void *record, const char *name)
# 4398| {
# 4399| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def448]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_template_is_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4413:52: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4413 | request_prop_get_template_is_ca(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4411|
# 4412| static dbus_bool_t
# 4413|-> request_prop_get_template_is_ca(struct cm_context *ctx, void *parent,
# 4414| void *record, const char *name)
# 4415| {
Error: COMPILER_WARNING (CWE-563): [#def449]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4413:63: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4413 | request_prop_get_template_is_ca(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4411|
# 4412| static dbus_bool_t
# 4413|-> request_prop_get_template_is_ca(struct cm_context *ctx, void *parent,
# 4414| void *record, const char *name)
# 4415| {
Error: COMPILER_WARNING (CWE-563): [#def450]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4414:59: warning[-Wunused-parameter]: unused parameter ‘name’
# 4414 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4412| static dbus_bool_t
# 4413| request_prop_get_template_is_ca(struct cm_context *ctx, void *parent,
# 4414|-> void *record, const char *name)
# 4415| {
# 4416| struct cm_store_entry *entry = record;
Error: COMPILER_WARNING (CWE-563): [#def451]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘request_prop_get_template_ca_path_length’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4421:61: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 4421 | request_prop_get_template_ca_path_length(struct cm_context *ctx, void *parent,
# | ~~~~~~~~~~~~~~~~~~~^~~
# 4419|
# 4420| static long
# 4421|-> request_prop_get_template_ca_path_length(struct cm_context *ctx, void *parent,
# 4422| void *record, const char *name)
# 4423| {
Error: COMPILER_WARNING (CWE-563): [#def452]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4421:72: warning[-Wunused-parameter]: unused parameter ‘parent’
# 4421 | request_prop_get_template_ca_path_length(struct cm_context *ctx, void *parent,
# | ~~~~~~^~~~~~
# 4419|
# 4420| static long
# 4421|-> request_prop_get_template_ca_path_length(struct cm_context *ctx, void *parent,
# 4422| void *record, const char *name)
# 4423| {
Error: COMPILER_WARNING (CWE-563): [#def453]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4422:68: warning[-Wunused-parameter]: unused parameter ‘name’
# 4422 | void *record, const char *name)
# | ~~~~~~~~~~~~^~~~
# 4420| static long
# 4421| request_prop_get_template_ca_path_length(struct cm_context *ctx, void *parent,
# 4422|-> void *record, const char *name)
# 4423| {
# 4424| struct cm_store_entry *entry = record;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4716:65: warning[-Wanalyzer-malloc-leak]: leak of ‘make_property("other-certs", 3, 0, 0, 0, 0, 0, &ca_prop_get_nickcerts, 0, 0, 0, 0, 0, 0, 0, 0)’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
# 4714| case cm_tdbush_property_special:
# 4715| assert(ret->cm_offset == 0);
# 4716|-> if ((ret->cm_access == cm_tdbush_property_read) ||
# 4717| (ret->cm_access == cm_tdbush_property_readwrite)) {
# 4718| switch (ret->cm_bus_type) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4716:65: warning[-Wanalyzer-malloc-leak]: leak of ‘make_property("root-certs", 3, 0, 0, 0, 0, 0, &ca_prop_get_nickcerts, 0, 0, 0, 0, 0, 0, 0, 0)’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
# 4714| case cm_tdbush_property_special:
# 4715| assert(ret->cm_offset == 0);
# 4716|-> if ((ret->cm_access == cm_tdbush_property_read) ||
# 4717| (ret->cm_access == cm_tdbush_property_readwrite)) {
# 4718| switch (ret->cm_bus_type) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4716:65: warning[-Wanalyzer-malloc-leak]: leak of ‘make_property("root-other-certs", 3, 0, 0, 0, 0, 0, &ca_prop_get_nickcerts, 0, 0, 0, 0, 0, 0, 0, 0)’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
# 4714| case cm_tdbush_property_special:
# 4715| assert(ret->cm_offset == 0);
# 4716|-> if ((ret->cm_access == cm_tdbush_property_read) ||
# 4717| (ret->cm_access == cm_tdbush_property_readwrite)) {
# 4718| switch (ret->cm_bus_type) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4716:65: warning[-Wanalyzer-malloc-leak]: leak of ‘make_property("scep-ca-identifier", 1, 2, 0, 0, &ca_prop_get_scep_ca_identifier, 0, 0, 0, 0, & ca_prop_set_scep_ca_identifier, 0, 0, 0, 0, 0)’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:22: included_from: Included from here.
# 4714| case cm_tdbush_property_special:
# 4715| assert(ret->cm_offset == 0);
# 4716|-> if ((ret->cm_access == cm_tdbush_property_read) ||
# 4717| (ret->cm_access == cm_tdbush_property_readwrite)) {
# 4718| switch (ret->cm_bus_type) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4716:65: warning[-Wanalyzer-malloc-leak]: leak of ‘make_property("scep-cipher", 1, 2, 0, 0, &ca_prop_get_scep_cipher, 0, 0, 0, 0, & ca_prop_set_scep_cipher, 0, 0, 0, 0, 0)’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
# 4714| case cm_tdbush_property_special:
# 4715| assert(ret->cm_offset == 0);
# 4716|-> if ((ret->cm_access == cm_tdbush_property_read) ||
# 4717| (ret->cm_access == cm_tdbush_property_readwrite)) {
# 4718| switch (ret->cm_bus_type) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:4716:65: warning[-Wanalyzer-malloc-leak]: leak of ‘make_property("scep-digest", 1, 2, 0, 0, &ca_prop_get_scep_digest, 0, 0, 0, 0, & ca_prop_set_scep_digest, 0, 0, 0, 0, 0)’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_iface_ca’
# 4714| case cm_tdbush_property_special:
# 4715| assert(ret->cm_offset == 0);
# 4716|-> if ((ret->cm_access == cm_tdbush_property_read) ||
# 4717| (ret->cm_access == cm_tdbush_property_readwrite)) {
# 4718| switch (ret->cm_bus_type) {
Error: COMPILER_WARNING (CWE-563): [#def460]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_introspect’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:5032:45: warning[-Wunused-parameter]: unused parameter ‘ci’
# 5032 | struct cm_client_info *ci,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 5030| cm_tdbush_introspect(DBusConnection *conn,
# 5031| DBusMessage *msg,
# 5032|-> struct cm_client_info *ci,
# 5033| struct cm_context *ctx)
# 5034| {
Error: COMPILER_WARNING (CWE-563): [#def461]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_property_get’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:5186:47: warning[-Wunused-parameter]: unused parameter ‘ci’
# 5186 | struct cm_client_info *ci,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 5184| cm_tdbush_property_get(DBusConnection *conn,
# 5185| DBusMessage *msg,
# 5186|-> struct cm_client_info *ci,
# 5187| struct cm_context *ctx)
# 5188| {
Error: COMPILER_WARNING (CWE-563): [#def462]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_property_set’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:5446:47: warning[-Wunused-parameter]: unused parameter ‘ci’
# 5446 | struct cm_client_info *ci,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 5444| cm_tdbush_property_set(DBusConnection *conn,
# 5445| DBusMessage *msg,
# 5446|-> struct cm_client_info *ci,
# 5447| struct cm_context *ctx)
# 5448| {
Error: COMPILER_WARNING (CWE-563): [#def463]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_property_get_all’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:6281:51: warning[-Wunused-parameter]: unused parameter ‘ci’
# 6281 | struct cm_client_info *ci,
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
# 6279| cm_tdbush_property_get_all(DBusConnection *conn,
# 6280| DBusMessage *msg,
# 6281|-> struct cm_client_info *ci,
# 6282| struct cm_context *ctx)
# 6283| {
Error: COMPILER_WARNING (CWE-563): [#def464]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_property_emit_entry_changes’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:6314:62: warning[-Wunused-parameter]: unused parameter ‘new_entry’
# 6314 | struct cm_store_entry *new_entry)
# | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
# 6312| cm_tdbush_property_emit_entry_changes(struct cm_context *ctx,
# 6313| struct cm_store_entry *old_entry,
# 6314|-> struct cm_store_entry *new_entry)
# 6315| {
# 6316| char *path;
Error: COMPILER_WARNING (CWE-563): [#def465]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_property_emit_ca_changes’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:6366:56: warning[-Wunused-parameter]: unused parameter ‘new_ca’
# 6366 | struct cm_store_ca *new_ca)
# | ~~~~~~~~~~~~~~~~~~~~^~~~~~
# 6364| cm_tdbush_property_emit_ca_changes(struct cm_context *ctx,
# 6365| struct cm_store_ca *old_ca,
# 6366|-> struct cm_store_ca *new_ca)
# 6367| {
# 6368| char *path;
Error: COMPILER_WARNING (CWE-563): [#def466]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c: scope_hint: In function ‘cm_tdbush_handle_method_return’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbush.c:8167:51: warning[-Wunused-parameter]: unused parameter ‘bus’
# 8167 | enum cm_tdbus_type bus, struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~^~~
# 8165| DBusHandlerResult
# 8166| cm_tdbush_handle_method_return(DBusConnection *conn, DBusMessage *msg,
# 8167|-> enum cm_tdbus_type bus, struct cm_context *ctx)
# 8168| {
# 8169| struct cm_tdbush_pending_call **p, *call = NULL, *next = NULL;
Error: CPPCHECK_WARNING: [#def467]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm-check.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-1164): [#def468]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm-check.c:542:1: warning[-Wunused-function]: ‘get_sssnasasasnasn’ defined but not used
# 542 | get_sssnasasasnasn(DBusMessage *rep, int msgid)
# | ^~~~~~~~~~~~~~~~~~
# 540| }
# 541| static int
# 542|-> get_sssnasasasnasn(DBusMessage *rep, int msgid)
# 543| {
# 544| int ret, i;
Error: CPPCHECK_WARNING: [#def469]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def470]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c: scope_hint: In function ‘cm_tdbusm_get_b’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c:90:41: warning[-Wunused-parameter]: unused parameter ‘parent’
# 90 | cm_tdbusm_get_b(DBusMessage *msg, void *parent, dbus_bool_t *b)
# | ~~~~~~^~~~~~
# 88|
# 89| int
# 90|-> cm_tdbusm_get_b(DBusMessage *msg, void *parent, dbus_bool_t *b)
# 91| {
# 92| DBusError err;
Error: COMPILER_WARNING (CWE-563): [#def471]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c: scope_hint: In function ‘cm_tdbusm_get_n’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c:108:41: warning[-Wunused-parameter]: unused parameter ‘parent’
# 108 | cm_tdbusm_get_n(DBusMessage *msg, void *parent, long *n)
# | ~~~~~~^~~~~~
# 106|
# 107| int
# 108|-> cm_tdbusm_get_n(DBusMessage *msg, void *parent, long *n)
# 109| {
# 110| DBusError err;
Error: COMPILER_WARNING (CWE-563): [#def472]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c: scope_hint: In function ‘cm_tdbusm_get_vn’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c:222:42: warning[-Wunused-parameter]: unused parameter ‘parent’
# 222 | cm_tdbusm_get_vn(DBusMessage *msg, void *parent, long *n)
# | ~~~~~~^~~~~~
# 220|
# 221| int
# 222|-> cm_tdbusm_get_vn(DBusMessage *msg, void *parent, long *n)
# 223| {
# 224| DBusError err;
Error: COMPILER_WARNING (CWE-563): [#def473]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c: scope_hint: In function ‘cm_tdbusm_get_d_value’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c:1152:52: warning[-Wunused-parameter]: unused parameter ‘parent’
# 1152 | cm_tdbusm_get_d_value(DBusMessageIter *item, void *parent,
# | ~~~~~~^~~~~~
# 1150|
# 1151| static struct cm_tdbusm_dict *
# 1152|-> cm_tdbusm_get_d_value(DBusMessageIter *item, void *parent,
# 1153| struct cm_tdbusm_dict *dict)
# 1154| {
Error: COMPILER_WARNING (CWE-563): [#def474]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c: scope_hint: In function ‘cm_tdbusm_hint’
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c:2337:22: warning[-Wunused-parameter]: unused parameter ‘parent’
# 2337 | cm_tdbusm_hint(void *parent, const char *error, const char *message)
# | ~~~~~~^~~~~~
# 2335|
# 2336| char *
# 2337|-> cm_tdbusm_hint(void *parent, const char *error, const char *message)
# 2338| {
# 2339| char *text = NULL;
Error: COMPILER_WARNING (CWE-563): [#def475]
certmonger-0.79.20-build/certmonger-0.79.20/src/tdbusm.c:2337:61: warning[-Wunused-parameter]: unused parameter ‘message’
# 2337 | cm_tdbusm_hint(void *parent, const char *error, const char *message)
# | ~~~~~~~~~~~~^~~~~~~
# 2335|
# 2336| char *
# 2337|-> cm_tdbusm_hint(void *parent, const char *error, const char *message)
# 2338| {
# 2339| char *text = NULL;
Error: CPPCHECK_WARNING: [#def476]
certmonger-0.79.20-build/certmonger-0.79.20/src/toklist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def477]
certmonger-0.79.20-build/certmonger-0.79.20/src/util-n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def478]
certmonger-0.79.20-build/certmonger-0.79.20/src/util-n.c: scope_hint: In function ‘util_set_db_owner_perms’
certmonger-0.79.20-build/certmonger-0.79.20/src/util-n.c:181:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘user’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
# 179| if (owner != NULL) {
# 180| user = strdup(owner);
# 181|-> group = strchr(user, ':');
# 182| if (group != NULL) {
# 183| *group++ = '\0';
Error: CPPCHECK_WARNING: [#def479]
certmonger-0.79.20-build/certmonger-0.79.20/src/util-o.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def480]
certmonger-0.79.20-build/certmonger-0.79.20/src/util-o.c: scope_hint: In function ‘util_set_fd_owner_perms’
certmonger-0.79.20-build/certmonger-0.79.20/src/util-o.c:103:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘user’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
# 101| if (owner != NULL) {
# 102| user = strdup(owner);
# 103|-> group = strchr(user, ':');
# 104| if (group != NULL) {
# 105| *group++ = '\0';
Error: CPPCHECK_WARNING (CWE-562): [#def481]
certmonger-0.79.20-build/certmonger-0.79.20/src/util-o.c:587: error[returnDanglingLifetime]: Returning pointer to local variable 'd' that will be invalid when returning.
# 585| return NULL;
# 586| }
# 587|-> return k;
# 588| }
# 589|
Error: COMPILER_WARNING (CWE-563): [#def482]
certmonger-0.79.20-build/certmonger-0.79.20/src/util-o.c: scope_hint: In function ‘validate_pem’
certmonger-0.79.20-build/certmonger-0.79.20/src/util-o.c:632:20: warning[-Wunused-parameter]: unused parameter ‘parent’
# 632 | validate_pem(void *parent, const char *path)
# | ~~~~~~^~~~~~
# 630|
# 631| int
# 632|-> validate_pem(void *parent, const char *path)
# 633| {
# 634| char *p;
Error: CLANG_WARNING: [#def483]
certmonger-0.79.20-build/certmonger-0.79.20/src/util-o.c:705:8: warning[unix.Malloc]: Potential leak of memory pointed to by 'tmp1'
# 703| /* Strip down to pure base64 so no headers, new lines or cr */
# 704| tmp1 = strndup(sp, sq - sp);
# 705|-> p = strstr(tmp1, "-----BEGIN");
# 706| if (p != NULL) {
# 707| p += strcspn(p, "\n");
Error: GCC_ANALYZER_WARNING (CWE-688): [#def484]
certmonger-0.79.20-build/certmonger-0.79.20/src/util-o.c: scope_hint: In function ‘validate_pem’
certmonger-0.79.20-build/certmonger-0.79.20/src/util-o.c:705:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tmp1’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
# 703| /* Strip down to pure base64 so no headers, new lines or cr */
# 704| tmp1 = strndup(sp, sq - sp);
# 705|-> p = strstr(tmp1, "-----BEGIN");
# 706| if (p != NULL) {
# 707| p += strcspn(p, "\n");
Error: CLANG_WARNING: [#def485]
certmonger-0.79.20-build/certmonger-0.79.20/src/util-o.c:726:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'tmp2'
# 724| tmp2 = decode_base64((unsigned char *)tmp1, strlen(tmp1), &length);
# 725| if (length < 0) {
# 726|-> ret = -1;
# 727| goto done;
# 728| }
Error: CPPCHECK_WARNING: [#def486]
certmonger-0.79.20-build/certmonger-0.79.20/src/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def487]
certmonger-0.79.20-build/certmonger-0.79.20/src/util.c: scope_hint: In function ‘get_config_entry’
certmonger-0.79.20-build/certmonger-0.79.20/src/util.c:131:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tmp’ where non-null expected
certmonger-0.79.20-build/certmonger-0.79.20/src/util.c:35: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
# 129| return NULL;
# 130| }
# 131|-> if (strcmp(section, tmp) == 0) {
# 132| free(tmp);
# 133| tmp = NULL;
Error: GCC_ANALYZER_WARNING (CWE-688): [#def488]
certmonger-0.79.20-build/certmonger-0.79.20/src/util.c:150:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tmp’ where non-null expected
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
# 148| /* Save the key. */
# 149| tmp = strndup(line, p - line);
# 150|-> if (strcmp(key, tmp) != 0) {
# 151| free(tmp);
# 152| tmp = NULL;
Error: COMPILER_WARNING (CWE-563): [#def489]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/addcinfo.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/addcinfo.c:64:10: warning[-Wunused-parameter]: unused parameter ‘argc’
# 64 | main(int argc, char **argv)
# | ~~~~^~~~
# 62|
# 63| int
# 64|-> main(int argc, char **argv)
# 65| {
# 66| unsigned char *buffer = NULL, buf[BUFSIZ];
Error: COMPILER_WARNING (CWE-563): [#def490]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/addcinfo.c:64:23: warning[-Wunused-parameter]: unused parameter ‘argv’
# 64 | main(int argc, char **argv)
# | ~~~~~~~^~~~
# 62|
# 63| int
# 64|-> main(int argc, char **argv)
# 65| {
# 66| unsigned char *buffer = NULL, buf[BUFSIZ];
Error: CPPCHECK_WARNING (CWE-401): [#def491]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/addcinfo.c:76: error[memleakOnRealloc]: Common realloc mistake: 'buffer' nulled but not freed upon failure
# 74| cm_log_set_level(3);
# 75| while ((i = read(STDIN_FILENO, buf, sizeof(buf))) > 0) {
# 76|-> buffer = realloc(buffer, n + i);
# 77| if (buffer == NULL) {
# 78| cm_log(0, "Out of memory.\n");
Error: CLANG_WARNING: [#def492]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/addcinfo.c:78:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'buffer'
# 76| buffer = realloc(buffer, n + i);
# 77| if (buffer == NULL) {
# 78|-> cm_log(0, "Out of memory.\n");
# 79| return 1;
# 80| }
Error: CPPCHECK_WARNING: [#def493]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/base64.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def494]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/cadata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def495]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/casave.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def496]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/certsave.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def497]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/checksig.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def498]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/checksig.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/checksig.c:46:10: warning[-Wunused-parameter]: unused parameter ‘argc’
# 46 | main(int argc, char **argv)
# | ~~~~^~~~
# 44|
# 45| int
# 46|-> main(int argc, char **argv)
# 47| {
# 48| int i;
Error: COMPILER_WARNING (CWE-563): [#def499]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/checksig.c:46:23: warning[-Wunused-parameter]: unused parameter ‘argv’
# 46 | main(int argc, char **argv)
# | ~~~~~~~^~~~
# 44|
# 45| int
# 46|-> main(int argc, char **argv)
# 47| {
# 48| int i;
Error: CPPCHECK_WARNING: [#def500]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/citerate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def501]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/csrgen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def502]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/dparse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def503]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/fromfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-127): [#def504]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/fromfile.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/fromfile.c:43:30: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
# └──────────────────────────────────┘
# ^
# 41| result = 1;
# 42| }
# 43|-> else if (cert[strlen(cert) - 1] != '\n') {
# 44| printf("Missing trailing newline\n");
# 45| result = 1;
Error: COMPILER_WARNING (CWE-563): [#def505]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/hooks.c: scope_hint: In function ‘get_n_cas’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/hooks.c:57:30: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 57 | get_n_cas(struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~^~~
# 55|
# 56| static int
# 57|-> get_n_cas(struct cm_context *ctx)
# 58| {
# 59| return n_cas;
Error: COMPILER_WARNING (CWE-563): [#def506]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/hooks.c: scope_hint: In function ‘get_ca_by_index’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/hooks.c:62:36: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 62 | get_ca_by_index(struct cm_context *ctx, int n)
# | ~~~~~~~~~~~~~~~~~~~^~~
# 60| }
# 61| static struct cm_store_ca *
# 62|-> get_ca_by_index(struct cm_context *ctx, int n)
# 63| {
# 64| return ca[n];
Error: COMPILER_WARNING (CWE-563): [#def507]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/hooks.c: scope_hint: In function ‘get_n_entries’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/hooks.c:67:34: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 67 | get_n_entries(struct cm_context *ctx)
# | ~~~~~~~~~~~~~~~~~~~^~~
# 65| }
# 66| static int
# 67|-> get_n_entries(struct cm_context *ctx)
# 68| {
# 69| return n_entries;
Error: COMPILER_WARNING (CWE-563): [#def508]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/hooks.c: scope_hint: In function ‘get_entry_by_index’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/hooks.c:72:39: warning[-Wunused-parameter]: unused parameter ‘ctx’
# 72 | get_entry_by_index(struct cm_context *ctx, int n)
# | ~~~~~~~~~~~~~~~~~~~^~~
# 70| }
# 71| static struct cm_store_entry *
# 72|-> get_entry_by_index(struct cm_context *ctx, int n)
# 73| {
# 74| return entry[n];
Error: CPPCHECK_WARNING: [#def509]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/iterate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def510]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/json-utf8.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/json-utf8.c:35:10: warning[-Wunused-parameter]: unused parameter ‘argc’
# 35 | main(int argc, char **argv)
# | ~~~~^~~~
# 33|
# 34| int
# 35|-> main(int argc, char **argv)
# 36| {
# 37| uint32_t point, point2;
Error: COMPILER_WARNING (CWE-563): [#def511]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/json-utf8.c:35:23: warning[-Wunused-parameter]: unused parameter ‘argv’
# 35 | main(int argc, char **argv)
# | ~~~~~~~^~~~
# 33|
# 34| int
# 35|-> main(int argc, char **argv)
# 36| {
# 37| uint32_t point, point2;
Error: CPPCHECK_WARNING: [#def512]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/json.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def513]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/keygen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def514]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/keygen.c:53:14: warning[deadcode.DeadStores]: Value stored to 'ktype' during its initialization is never read
# 51| int fd, ret;
# 52| void *parent;
# 53|-> const char *ktype = "UNKNOWN";
# 54|
# 55| cm_log_set_method(cm_log_stderr);
Error: CPPCHECK_WARNING: [#def515]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/keyiread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def516]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/libexecdir.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/libexecdir.c:22:10: warning[-Wunused-parameter]: unused parameter ‘argc’
# 22 | main(int argc, char **argv)
# | ~~~~^~~~
# 20|
# 21| int
# 22|-> main(int argc, char **argv)
# 23| {
# 24| printf("%s\n", CM_DEFAULT_HELPER_PATH);
Error: COMPILER_WARNING (CWE-563): [#def517]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/libexecdir.c:22:23: warning[-Wunused-parameter]: unused parameter ‘argv’
# 22 | main(int argc, char **argv)
# | ~~~~~~~^~~~
# 20|
# 21| int
# 22|-> main(int argc, char **argv)
# 23| {
# 24| printf("%s\n", CM_DEFAULT_HELPER_PATH);
Error: COMPILER_WARNING (CWE-563): [#def518]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/payload.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/payload.c:41:10: warning[-Wunused-parameter]: unused parameter ‘argc’
# 41 | main(int argc, char **argv)
# | ~~~~^~~~
# 39|
# 40| int
# 41|-> main(int argc, char **argv)
# 42| {
# 43| int i;
Error: COMPILER_WARNING (CWE-563): [#def519]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/payload.c:41:23: warning[-Wunused-parameter]: unused parameter ‘argv’
# 41 | main(int argc, char **argv)
# | ~~~~~~~^~~~
# 39|
# 40| int
# 41|-> main(int argc, char **argv)
# 42| {
# 43| int i;
Error: COMPILER_WARNING (CWE-563): [#def520]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/pem2base.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/pem2base.c:33:10: warning[-Wunused-parameter]: unused parameter ‘argc’
# 33 | main(int argc, char **argv)
# | ~~~~^~~~
# 31|
# 32| int
# 33|-> main(int argc, char **argv)
# 34| {
# 35| char buf[LINE_MAX], *p = NULL, *q;
Error: COMPILER_WARNING (CWE-563): [#def521]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/pem2base.c:33:23: warning[-Wunused-parameter]: unused parameter ‘argv’
# 33 | main(int argc, char **argv)
# | ~~~~~~~^~~~
# 31|
# 32| int
# 33|-> main(int argc, char **argv)
# 34| {
# 35| char buf[LINE_MAX], *p = NULL, *q;
Error: CPPCHECK_WARNING: [#def522]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/pk7decrypt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def523]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/pk7env.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def524]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/pk7verify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def525]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/prefs.c: scope_hint: In function ‘main’
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/prefs.c:28:10: warning[-Wunused-parameter]: unused parameter ‘argc’
# 28 | main(int argc, char **argv)
# | ~~~~^~~~
# 26|
# 27| int
# 28|-> main(int argc, char **argv)
# 29| {
# 30| const char *dest;
Error: COMPILER_WARNING (CWE-563): [#def526]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/prefs.c:28:23: warning[-Wunused-parameter]: unused parameter ‘argv’
# 28 | main(int argc, char **argv)
# | ~~~~~~~^~~~
# 26|
# 27| int
# 28|-> main(int argc, char **argv)
# 29| {
# 30| const char *dest;
Error: CPPCHECK_WARNING: [#def527]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/scepgen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def528]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/submit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def529]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/tm.c:30:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 28| long t;
# 29| if (getenv("CM_FORCE_TIME") != NULL) {
# 30|-> t = atol(getenv("CM_FORCE_TIME"));
# 31| if (dest != NULL) {
# 32| *dest = t;
Error: CLANG_WARNING: [#def530]
certmonger-0.79.20-build/certmonger-0.79.20/tests/tools/tools.c:31:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 29| enum force_fips_mode force;
# 30| if ((getenv("CERTMONGER_FORCE_FIPS") != NULL) &&
# 31|-> (atoi(getenv("CERTMONGER_FORCE_FIPS")) != 0)) {
# 32| force = do_force_fips;
# 33| } else {
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-85.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | certmonger-0.79.20-1.fc41 |
store-results-to | /tmp/tmpjd1riw8o/certmonger-0.79.20-1.fc41.tar.xz |
time-created | 2024-07-03 12:13:17 |
time-finished | 2024-07-03 12:16:21 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpjd1riw8o/certmonger-0.79.20-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpjd1riw8o/certmonger-0.79.20-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |