Task #61982 - fixed.err
back to task #61982download
Error: GCC_ANALYZER_WARNING (CWE-775):
sssd-2.11.0/src/krb5_plugin/passkey/passkey_clpreauth.c:173:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipe_to_child[0]'
# 171| if (buf == NULL) {
# 172| ret = ENOMEM;
# 173|-> return ret;
# 174| }
# 175|
Error: GCC_ANALYZER_WARNING (CWE-775):
sssd-2.11.0/src/krb5_plugin/passkey/passkey_clpreauth.c: scope_hint: In function 'sss_passkeycl_exec_child'
sssd-2.11.0/src/krb5_plugin/passkey/passkey_clpreauth.c:173:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipe_to_child[1]'
# 171| if (buf == NULL) {
# 172| ret = ENOMEM;
# 173|-> return ret;
# 174| }
# 175|
Error: GCC_ANALYZER_WARNING (CWE-775):
sssd-2.11.0/src/krb5_plugin/passkey/passkey_clpreauth.c:173:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipe_to_parent[0]'
# 171| if (buf == NULL) {
# 172| ret = ENOMEM;
# 173|-> return ret;
# 174| }
# 175|
Error: COMPILER_WARNING (CWE-252):
sssd-2.11.0/src/krb5_plugin/passkey/passkey_clpreauth.c: scope_hint: In function 'sss_passkeycl_exec_child'
sssd-2.11.0/src/krb5_plugin/passkey/passkey_clpreauth.c:222:9: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result'
# 222 | write(pipe_to_child[1], pin, strlen(pin));
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 220| close(pipe_to_parent[1]);
# 221|
# 222|-> write(pipe_to_child[1], pin, strlen(pin));
# 223| close(pipe_to_child[1]);
# 224|
Error: GCC_ANALYZER_WARNING (CWE-416):
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c: scope_hint: In function 'sss_passkey_challenge_free.part.0'
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c:111:14: warning[-Wanalyzer-use-after-free]: use after 'free' of 'data'
# 109| }
# 110|
# 111|-> free(data->domain);
# 112| free(data->cryptographic_challenge);
# 113| sss_string_array_free(data->credential_id_list);
Error: GCC_ANALYZER_WARNING (CWE-416):
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c: scope_hint: In function ‘sss_passkey_challenge_free.part.0’
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c:111:14: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘data’
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c: scope_hint: In function ‘sss_passkey_challenge_free.part.0’
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c: scope_hint: In function ‘sss_passkey_challenge_free.part.0’
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c: scope_hint: In function ‘sss_passkey_challenge_free.part.0’
# 109| }
# 110|
# 111|-> free(data->domain);
# 112| free(data->cryptographic_challenge);
# 113| sss_string_array_free(data->credential_id_list);
Error: GCC_ANALYZER_WARNING (CWE-401):
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c:115:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
# 113| sss_string_array_free(data->credential_id_list);
# 114|
# 115|-> free(data);
# 116| }
# 117|
Error: GCC_ANALYZER_WARNING (CWE-401):
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c:115:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c: scope_hint: In function ‘sss_passkey_challenge_free.part.0’
# 113| sss_string_array_free(data->credential_id_list);
# 114|
# 115|-> free(data);
# 116| }
# 117|
Error: GCC_ANALYZER_WARNING (CWE-416):
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c: scope_hint: In function 'sss_passkey_reply_free.part.0'
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c:243:14: warning[-Wanalyzer-use-after-free]: use after 'free' of 'data'
# 241| }
# 242|
# 243|-> free(data->credential_id);
# 244| free(data->cryptographic_challenge);
# 245| free(data->authenticator_data);
Error: GCC_ANALYZER_WARNING (CWE-416):
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c: scope_hint: In function ‘sss_passkey_reply_free.part.0’
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c:243:14: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘data’
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c: scope_hint: In function ‘sss_passkey_reply_free.part.0’
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c: scope_hint: In function ‘sss_passkey_reply_free.part.0’
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c: scope_hint: In function ‘sss_passkey_reply_free.part.0’
# 241| }
# 242|
# 243|-> free(data->credential_id);
# 244| free(data->cryptographic_challenge);
# 245| free(data->authenticator_data);
Error: GCC_ANALYZER_WARNING (CWE-126):
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c:247:14: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
sssd-2.11.0/src/krb5_plugin/passkey/passkey_utils.c:247:14: note: read of 8 bytes from after the end of the region
# 245| free(data->authenticator_data);
# 246| free(data->assertion_signature);
# 247|-> free(data->user_id);
# 248| free(data);
# 249| }
Error: GCC_ANALYZER_WARNING (CWE-775):
sssd-2.11.0/src/providers/ipa/ipa_selinux.c:689:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipefd_to_child[0]'
# 687| DEBUG(SSSDBG_OP_FAILURE, "talloc_asprintf failed.\n");
# 688| ret = ENOMEM;
# 689|-> return ret;
# 690| }
# 691| c++;
Error: GCC_ANALYZER_WARNING (CWE-775):
sssd-2.11.0/src/providers/ipa/ipa_selinux.c: scope_hint: In function 'selinux_fork_child'
sssd-2.11.0/src/providers/ipa/ipa_selinux.c:689:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'pipefd_to_child[1]'
sssd-2.11.0/src/util/atomic_io.h:27: included_from: Included from here.
sssd-2.11.0/src/util/util.h:55: included_from: Included from here.
sssd-2.11.0/src/db/sysdb.h:25: included_from: Included from here.
sssd-2.11.0/src/db/sysdb_selinux.h:25: included_from: Included from here.
sssd-2.11.0/src/providers/ipa/ipa_selinux.c:26: included_from: Included from here.
# 687| DEBUG(SSSDBG_OP_FAILURE, "talloc_asprintf failed.\n");
# 688| ret = ENOMEM;
# 689|-> return ret;
# 690| }
# 691| c++;
Error: CPPCHECK_WARNING (CWE-457):
sssd-2.11.0/src/providers/ipa/selinux_child.c:202: error[uninitvar]: Uninitialized variable: &chain_id
# 200| {"debug-fd", 0, POPT_ARG_INT, &debug_fd, 0,
# 201| _("An open file descriptor for the debug logs"), NULL},
# 202|-> {"chain-id", 0, POPT_ARG_LONG, &chain_id,
# 203| 0, _("Tevent chain ID used for logging purposes"), NULL},
# 204| SSSD_LOGGER_OPTS
Error: COMPILER_WARNING (CWE-252):
sssd-2.11.0/src/providers/ipa/selinux_child.c: scope_hint: In function ‘main’
sssd-2.11.0/src/providers/ipa/selinux_child.c:359:9: warning[-Wunused-result]: ignoring return value of ‘setresuid’ declared with attribute ‘warn_unused_result’
# 359 | setresuid(suid, suid, suid);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 357|
# 358| if (getresuid(&ruid, &euid, &suid) == 0) {
# 359|-> setresuid(suid, suid, suid);
# 360| }
# 361| if (getresgid(&rgid, &egid, &sgid) == 0) {
Error: COMPILER_WARNING (CWE-252):
sssd-2.11.0/src/providers/ipa/selinux_child.c:362:9: warning[-Wunused-result]: ignoring return value of ‘setresgid’ declared with attribute ‘warn_unused_result’
# 362 | setresgid(sgid, sgid, sgid);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 360| }
# 361| if (getresgid(&rgid, &egid, &sgid) == 0) {
# 362|-> setresgid(sgid, sgid, sgid);
# 363| }
# 364|