Task #72301 - fixed.err
back to task #72301download
Error: CPPCHECK_WARNING (CWE-457):
sssd-2.12.0/src/providers/ipa/selinux_child.c:203: error[uninitvar]: Uninitialized variable: &chain_id
# 201| {"debug-fd", 0, POPT_ARG_INT, &debug_fd, 0,
# 202| _("An open file descriptor for the debug logs"), NULL},
# 203|-> {"chain-id", 0, POPT_ARG_LONG, &chain_id,
# 204| 0, _("Tevent chain ID used for logging purposes"), NULL},
# 205| SSSD_LOGGER_OPTS
Error: COMPILER_WARNING (CWE-252):
sssd-2.12.0/src/providers/ipa/selinux_child.c: scope_hint: In function ‘main’
sssd-2.12.0/src/providers/ipa/selinux_child.c:360:9: warning[-Wunused-result]: ignoring return value of ‘setresuid’ declared with attribute ‘warn_unused_result’
# 360 | setresuid(suid, suid, suid);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 358|
# 359| if (getresuid(&ruid, &euid, &suid) == 0) {
# 360|-> setresuid(suid, suid, suid);
# 361| }
# 362| if (getresgid(&rgid, &egid, &sgid) == 0) {
Error: COMPILER_WARNING (CWE-252):
sssd-2.12.0/src/providers/ipa/selinux_child.c:363:9: warning[-Wunused-result]: ignoring return value of ‘setresgid’ declared with attribute ‘warn_unused_result’
# 363 | setresgid(sgid, sgid, sgid);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 361| }
# 362| if (getresgid(&rgid, &egid, &sgid) == 0) {
# 363|-> setresgid(sgid, sgid, sgid);
# 364| }
# 365|