shadow-utils-4.16.0-7.fc42
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>.gr_name)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>.gr_passwd)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>.pw_dir)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>.pw_gecos)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>.pw_name)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>.pw_passwd)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>.pw_shell)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>.sg_name)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>.sg_passwd)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>.sp_pwdp)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*sp.sp_namp)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(group)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(new)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(old)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(pwent.pw_name)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:37: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(string)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sgetgrent.c:19: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h: scope_hint: In function ‘reallocarrayf’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:88:15: warning[-Wanalyzer-malloc-leak]: leak of ‘reallocarrayf(members, i + 100, 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sgetgrent.c:47:35: note: in expansion of macro ‘REALLOCF’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sgetgrent.c:47:35: note: in expansion of macro ‘REALLOCF’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.c:24: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h: scope_hint: In function ‘reallocarrayf’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:88:15: warning[-Wanalyzer-malloc-leak]: leak of ‘reallocarrayf(p, nmemb, size)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.c:24: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h: scope_hint: In function ‘reallocarrayf’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:88:15: warning[-Wanalyzer-malloc-leak]: leak of ‘reallocarrayf.localalias(p, nmemb, size)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h: scope_hint: In function ‘xreallocarray’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:88:15: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, 1, size)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.c: scope_hint: In function ‘xreallocarray’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:88:15: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, nmemb, size)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:88:15: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.c: scope_hint: In function ‘xreallocarray’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup("/")’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/defines.h:16: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:18: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/setupenv.c:205:30: note: in expansion of macro ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup("/bin/sh")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(&crypt_passwd)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*<unknown>.pw_name)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*list)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(*sp.sp_pwdp)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(ccp)’
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c:389:26: note: in expansion of macro ‘MATCH’
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c:396:26: note: in expansion of macro ‘MATCH’
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c:403:26: note: in expansion of macro ‘MATCH’
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c:419:26: note: in expansion of macro ‘MATCH’
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c:426:26: note: in expansion of macro ‘MATCH’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(comma)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:11: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(cp)’
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c:389:26: note: in expansion of macro ‘MATCH’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(getdef_str("MOTD_FILE"))’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(getlogin())’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(member)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(new)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(old)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(optarg)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
shadow-utils-4.16.0-build/shadow-4.16.0/src/login.c:28: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h: scope_hint: In function ‘xstrdup’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(ptr_user)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/must_be.h:13: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sizeof.h:15: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/memzero.h:18: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/src/login.c:35: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/src/login.c:398:9: note: in expansion of macro ‘PAM_FAIL_CHECK’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(pwent.pw_passwd)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(shellname)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(string)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/must_be.h:13: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sizeof.h:15: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/string/sprintf.h:19: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/env.c:23: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/env.c:168:32: note: in expansion of macro ‘SNPRINTF’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(tty)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(users)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def45]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/env.c:19: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h: scope_hint: In function ‘xstrdup’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xreallocarray(0, strlen(str) + 1, 1)’ where non-null expected
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h: scope_hint: In function ‘xstrdup’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
Error: COMPILER_WARNING (CWE-252): [#def46]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/audit_help.c: scope_hint: In function ‘audit_logger’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/audit_help.c:66:17: warning[-Wunused-result]: ignoring return value of ‘audit_log_acct_message’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def47]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/audit_help.c: scope_hint: In function ‘audit_logger_with_group’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/audit_help.c:100:9: warning[-Wunused-result]: ignoring return value of ‘audit_log_acct_message’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def48]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/audit_help.c: scope_hint: In function ‘audit_logger_message’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/audit_help.c:109:17: warning[-Wunused-result]: ignoring return value of ‘audit_log_user_message’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/commonio.c: scope_hint: In function ‘commonio_sort_wrt’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/commonio.c:858:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*shadow.head’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/copydir.c: scope_hint: In function ‘check_link’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/copydir.c:230:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, 1, 40)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:12: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/copydir.c:21: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/copydir.c:15: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/must_be.h:13: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sizeof.h:15: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/string/sprintf.h:19: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/copydir.c:39: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/copydir.c:229:14: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/copydir.c: scope_hint: In function ‘check_link’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/fd.c: scope_hint: In function ‘check_fd.part.0’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/fd.c:39:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
Error: GCC_ANALYZER_WARNING (CWE-122): [#def52]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/find_new_gid.c: scope_hint: In function ‘check_gid.part.0’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/find_new_gid.c:125:43: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:11: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/find_new_gid.c:15: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-122): [#def53]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/find_new_uid.c: scope_hint: In function ‘check_uid.part.0’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/find_new_uid.c:125:43: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:11: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/find_new_uid.c:15: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def54]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdate.c: scope_hint: In function ‘gd_parse’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdate.c:671:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdate.c:656:9: note: in expansion of macro ‘YYCOPY’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdate.c:1220:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdate.c:656:9: note: in expansion of macro ‘YYCOPY’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdate.c:1220:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdate.c:656:9: note: in expansion of macro ‘YYCOPY’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdate.c:1220:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def55]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdate.c:1347:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(unsigned int *)<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdef.c: scope_hint: In function ‘putdef_str’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdef.c:395:18: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
Error: COMPILER_WARNING (CWE-477): [#def57]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdef.c: scope_hint: In function ‘def_load’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdef.c:485:9: warning[-Wdeprecated-declarations]: ‘econf_readDirs’ is deprecated: Use the econf_readConfig/econf_readConfigWithCallback instead
shadow-utils-4.16.0-build/shadow-4.16.0/lib/getdef.c:22: included_from: Included from here.
/usr/include/libeconf.h:497:1: note: declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘add_list’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:59:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, (long unsigned int)(i + 2), 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:50:15: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘add_list’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:62:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, (long unsigned int)(i + 2), 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:50:15: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘add_list’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘del_list’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:115:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, (long unsigned int)(j + 1), 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:50: note: in definition of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:105:15: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘del_list’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:120:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, (long unsigned int)(j + 1), 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:50: note: in definition of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:105:15: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘del_list’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘dup_list’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:145:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, (long unsigned int)(i + 1), 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:141:15: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘dup_list’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:150:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, (long unsigned int)(i + 1), 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:141:15: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘dup_list’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘comma_to_list’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:225:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, (long unsigned int)i, 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:218:17: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘comma_to_list’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:236:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, (long unsigned int)i, 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c:218:17: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/list.c: scope_hint: In function ‘comma_to_list’
Error: COMPILER_WARNING: [#def66]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sizeof.h:15: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:26: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/must_be.h:53:17: warning: anonymous struct declared inside parameter list will not be visible outside of this definition or declaration
shadow-utils-4.16.0-build/shadow-4.16.0/lib/must_be.h:96:31: note: in expansion of macro ‘must_be’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sizeof.h:20:43: note: in expansion of macro ‘must_be_array’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sizeof.h:21:31: note: in expansion of macro ‘SIZEOF_ARRAY’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:34:23: note: in expansion of macro ‘NITEMS’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:41:26: note: in expansion of macro ‘UTX_LINESIZE’
Error: COMPILER_WARNING (CWE-563): [#def67]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/commonio.c:27: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/commonio.c: scope_hint: In function ‘dec_lock_count’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/nscd.h:10:35: warning[-Wunused-value]: statement with no effect
shadow-utils-4.16.0-build/shadow-4.16.0/lib/commonio.c:456:33: note: in expansion of macro ‘nscd_flush_cache’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def68]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/obscure.c: scope_hint: In function ‘password_check.part.0’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/obscure.c:103:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xreallocarray(0, strlen(str_lower(xstrdup(old))) * 2 + 1, 1)’ where non-null expected
shadow-utils-4.16.0-build/shadow-4.16.0/lib/obscure.c:102:19: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/obscure.c: scope_hint: In function ‘password_check.part.0’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
Error: COMPILER_WARNING (CWE-563): [#def69]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/prefix_flag.c:40:14: warning[-Wunused-variable]: ‘def_conf_file’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/readpassphrase.c: scope_hint: In function ‘readpassphrase’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/readpassphrase.c:93:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 2)’
Error: COMPILER_WARNING (CWE-252): [#def71]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/readpassphrase.c: scope_hint: In function ‘readpassphrase’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/readpassphrase.c:128:23: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def72]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/readpassphrase.c:147:23: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-563): [#def73]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/commonio.c:28: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sssd.h:13:35: warning[-Wunused-value]: statement with no effect
shadow-utils-4.16.0-build/shadow-4.16.0/lib/commonio.c:458:33: note: in expansion of macro ‘sssd_flush_cache’
Error: COMPILER_WARNING: [#def74]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/log.c:22: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/log.c: scope_hint: In function ‘dolastlog’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/string/strncpy.h:18:28: warning[-Wstringop-truncation]: ‘strncpy’ specified bound 256 equals destination size
Error: GCC_ANALYZER_WARNING (CWE-688): [#def75]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:29: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c: scope_hint: In function ‘get_session_host’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/string/zustr2stp.h:54:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xreallocarray(0, 257, 1)’ where non-null expected
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:191:17: note: in expansion of macro ‘ZUSTR2STP’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:168:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c: scope_hint: In function ‘get_session_host’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:190:28: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c: scope_hint: In function ‘get_session_host’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:191:17: note: in expansion of macro ‘ZUSTR2STP’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/defines.h:30: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:12: included_from: Included from here.
/usr/include/string.h:400:14: note: argument 1 of ‘mempcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sulog.c: scope_hint: In function ‘sulog’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sulog.c:59:27: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(getdef_str("SULOG_FILE"), "a+")’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/prototypes.h:35: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sulog.c:18: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sulog.c:35:17: note: in expansion of macro ‘SYSLOG’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sulog.c:59:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(getdef_str("SULOG_FILE"), "a+")’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/sulog.c:35:17: note: in expansion of macro ‘SYSLOG’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c: scope_hint: In function ‘get_session_host’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:155:27: warning[-Wanalyzer-malloc-leak]: leak of ‘get_current_utmp()’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:25: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:168:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c: scope_hint: In function ‘get_session_host’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def79]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c: scope_hint: In function ‘get_current_utmp’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:169:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xreallocarray(0, 1, 384)’ where non-null expected
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:168:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c: scope_hint: In function ‘get_current_utmp’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def80]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c: scope_hint: In function ‘prepare_utmp’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:260:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xreallocarray(0, strlen(host) + 1, 1)’ where non-null expected
shadow-utils-4.16.0-build/shadow-4.16.0/lib/string/zustr2stp.h:11: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:50: note: in definition of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:259:28: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c: scope_hint: In function ‘prepare_utmp’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:277:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xcalloc(1, 384)’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/utmp.c:274:17: note: in expansion of macro ‘XCALLOC’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def82]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetpwnam.c:40: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c: scope_hint: In function ‘xgetpwnam’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetpwnam.c:34:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xreallocarray(buffer, length, 1)’ where non-null expected
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:43:25: note: in definition of macro ‘APPEND_R1’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:41:24: note: in expansion of macro ‘APPEND_R’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:41:34: note: in expansion of macro ‘FUNCTION_NAME’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:64:26: note: in expansion of macro ‘REENTRANT_NAME’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:34: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:63:26: note: in expansion of macro ‘XREALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:43:25: note: in definition of macro ‘APPEND_R1’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:41:24: note: in expansion of macro ‘APPEND_R’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:41:34: note: in expansion of macro ‘FUNCTION_NAME’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:64:26: note: in expansion of macro ‘REENTRANT_NAME’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/pwio.h:16: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetpwnam.c:31: included_from: Included from here.
/usr/include/pwd.h:153:12: note: argument 3 of ‘getpwnam_r’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def83]
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetpwuid.c:40: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c: scope_hint: In function ‘xgetpwuid’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetpwuid.c:34:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xreallocarray(buffer, length, 1)’ where non-null expected
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:43:25: note: in definition of macro ‘APPEND_R1’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:41:24: note: in expansion of macro ‘APPEND_R’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:41:34: note: in expansion of macro ‘FUNCTION_NAME’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:64:26: note: in expansion of macro ‘REENTRANT_NAME’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:34: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:63:26: note: in expansion of macro ‘XREALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:43:25: note: in definition of macro ‘APPEND_R1’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:41:24: note: in expansion of macro ‘APPEND_R’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:41:34: note: in expansion of macro ‘FUNCTION_NAME’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetXXbyYY.c:64:26: note: in expansion of macro ‘REENTRANT_NAME’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/pwio.h:16: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/lib/xgetpwuid.c:31: included_from: Included from here.
/usr/include/pwd.h:146:12: note: argument 3 of ‘getpwuid_r’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
shadow-utils-4.16.0-build/shadow-4.16.0/libsubid/api.c: scope_hint: In function ‘subid_init’
shadow-utils-4.16.0-build/shadow-4.16.0/libsubid/api.c:33:17: warning[-Wanalyzer-malloc-leak]: leak of ‘progname’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
shadow-utils-4.16.0-build/shadow-4.16.0/libsubid/api.c:38:17: warning[-Wanalyzer-malloc-leak]: leak of ‘progname’
Error: CPPCHECK_WARNING (CWE-908): [#def86]
shadow-utils-4.16.0-build/shadow-4.16.0/src/faillog.c:681: error[useClosedFile]: Used file that is not opened.
Error: COMPILER_WARNING (CWE-252): [#def87]
shadow-utils-4.16.0-build/shadow-4.16.0/src/gpasswd.c: scope_hint: In function ‘catch_signals’
shadow-utils-4.16.0-build/shadow-4.16.0/src/gpasswd.c:160:24: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
shadow-utils-4.16.0-build/shadow-4.16.0/src/gpasswd.c: scope_hint: In function ‘get_group’
shadow-utils-4.16.0-build/shadow-4.16.0/src/gpasswd.c:793:47: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, 2, 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/src/gpasswd.c:785:38: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/src/gpasswd.c: scope_hint: In function ‘get_group’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
shadow-utils-4.16.0-build/shadow-4.16.0/src/groupmems.c: scope_hint: In function ‘process_flags’
shadow-utils-4.16.0-build/shadow-4.16.0/src/groupmems.c:391:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h: scope_hint: In function ‘process_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
shadow-utils-4.16.0-build/shadow-4.16.0/src/groups.c: scope_hint: In function ‘main’
shadow-utils-4.16.0-build/shadow-4.16.0/src/groups.c:103:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, (long unsigned int)sys_ngroups, 4)’
shadow-utils-4.16.0-build/shadow-4.16.0/src/groups.c:18: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/src/groups.c:94:18: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/src/groups.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
shadow-utils-4.16.0-build/shadow-4.16.0/src/id.c: scope_hint: In function ‘main’
shadow-utils-4.16.0-build/shadow-4.16.0/src/id.c:78:20: warning[-Wanalyzer-malloc-leak]: leak of ‘reallocarray(0, (long unsigned int)sys_ngroups, 4)’
shadow-utils-4.16.0-build/shadow-4.16.0/src/id.c:27: included_from: Included from here.
shadow-utils-4.16.0-build/shadow-4.16.0/src/id.c:70:18: note: in expansion of macro ‘MALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/src/id.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
shadow-utils-4.16.0-build/shadow-4.16.0/src/id.c:78:33: warning[-Wanalyzer-malloc-leak]: leak of ‘reallocarray(0, (long unsigned int)sys_ngroups, 4)’
shadow-utils-4.16.0-build/shadow-4.16.0/src/id.c:70:18: note: in expansion of macro ‘MALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/src/id.c: scope_hint: In function ‘main’
Error: COMPILER_WARNING (CWE-563): [#def93]
shadow-utils-4.16.0-build/shadow-4.16.0/src/login.c: scope_hint: In function ‘main’
shadow-utils-4.16.0-build/shadow-4.16.0/src/login.c:452:24: warning[-Wunused-but-set-variable]: variable ‘subroot’ set but not used
Error: COMPILER_WARNING (CWE-252): [#def94]
shadow-utils-4.16.0-build/shadow-4.16.0/src/login.c:720:25: warning[-Wunused-result]: ignoring return value of ‘audit_log_acct_message’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def95]
shadow-utils-4.16.0-build/shadow-4.16.0/src/login.c:1036:9: warning[-Wunused-result]: ignoring return value of ‘audit_log_acct_message’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def96]
shadow-utils-4.16.0-build/shadow-4.16.0/src/passwd.c: scope_hint: In function ‘update_crypt_pw’
shadow-utils-4.16.0-build/shadow-4.16.0/src/passwd.c:536:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xreallocarray(0, strlen(cp) + 2, 1)’ where non-null expected
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:50: note: in definition of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/src/passwd.c:534:31: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/src/passwd.c: scope_hint: In function ‘update_crypt_pw’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
shadow-utils-4.16.0-build/shadow-4.16.0/src/passwd.c:546:16: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h: scope_hint: In function ‘update_crypt_pw’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:24:50: note: in definition of macro ‘XMALLOC’
Error: COMPILER_WARNING (CWE-252): [#def98]
shadow-utils-4.16.0-build/shadow-4.16.0/src/su.c: scope_hint: In function ‘su_failure’
shadow-utils-4.16.0-build/shadow-4.16.0/src/su.c:211:9: warning[-Wunused-result]: ignoring return value of ‘audit_log_acct_message’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
shadow-utils-4.16.0-build/shadow-4.16.0/src/su.c: scope_hint: In function ‘execve_shell’
shadow-utils-4.16.0-build/shadow-4.16.0/src/su.c:250:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, n_args + 3, 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/src/su.c:249:25: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/src/su.c: scope_hint: In function ‘execve_shell’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
shadow-utils-4.16.0-build/shadow-4.16.0/src/su.c:259:24: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, n_args + 3, 8)’
shadow-utils-4.16.0-build/shadow-4.16.0/src/su.c:249:25: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/src/su.c: scope_hint: In function ‘execve_shell’
Error: COMPILER_WARNING (CWE-252): [#def101]
shadow-utils-4.16.0-build/shadow-4.16.0/src/su.c: scope_hint: In function ‘main’
shadow-utils-4.16.0-build/shadow-4.16.0/src/su.c:1136:9: warning[-Wunused-result]: ignoring return value of ‘audit_log_acct_message’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
shadow-utils-4.16.0-build/shadow-4.16.0/src/sulogin.c: scope_hint: In function ‘main’
shadow-utils-4.16.0-build/shadow-4.16.0/src/sulogin.c:87:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(argv[1], 2)’
Error: GCC_ANALYZER_WARNING (CWE-910): [#def103]
shadow-utils-4.16.0-build/shadow-4.16.0/src/sulogin.c:89:17: warning[-Wanalyzer-fd-use-after-close]: ‘dup’ on closed file descriptor ‘0’
Error: COMPILER_WARNING (CWE-252): [#def104]
shadow-utils-4.16.0-build/shadow-4.16.0/src/sulogin.c: scope_hint: In function ‘main’
shadow-utils-4.16.0-build/shadow-4.16.0/src/sulogin.c:89:17: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-910): [#def105]
shadow-utils-4.16.0-build/shadow-4.16.0/src/sulogin.c:90:17: warning[-Wanalyzer-fd-use-after-close]: ‘dup’ on closed file descriptor ‘0’
Error: COMPILER_WARNING (CWE-252): [#def106]
shadow-utils-4.16.0-build/shadow-4.16.0/src/sulogin.c:90:17: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c: scope_hint: In function ‘get_defaults’
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c:390:34: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h:97:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/lib/alloc.h: scope_hint: In function ‘get_defaults’
Error: COMPILER_WARNING (CWE-252): [#def108]
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c: scope_hint: In function ‘create_home’
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c:2276:16: warning[-Wunused-result]: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c: scope_hint: In function ‘main’
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c:2442:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘user_groups’
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c:2438:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/src/useradd.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def110]
shadow-utils-4.16.0-build/shadow-4.16.0/src/usermod.c: scope_hint: In function ‘main’
shadow-utils-4.16.0-build/shadow-4.16.0/src/usermod.c:2172:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘user_groups’
shadow-utils-4.16.0-build/shadow-4.16.0/src/usermod.c:2171:23: note: in expansion of macro ‘XMALLOC’
shadow-utils-4.16.0-build/shadow-4.16.0/src/usermod.c: scope_hint: In function ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def111]
shadow-utils-4.16.0-build/shadow-4.16.0/src/vipw.c: scope_hint: In function ‘vipwedit’
shadow-utils-4.16.0-build/shadow-4.16.0/src/vipw.c:277:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
shadow-utils-4.16.0-build/shadow-4.16.0/src/vipw.c:277:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
Error: COMPILER_WARNING (CWE-252): [#def113]
shadow-utils-4.16.0-build/shadow-4.16.0/src/vipw.c: scope_hint: In function ‘vipwedit’
shadow-utils-4.16.0-build/shadow-4.16.0/src/vipw.c:439:9: warning[-Wunused-result]: ignoring return value of ‘link’ declared with attribute ‘warn_unused_result’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-218.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | shadow-utils-4.16.0-7.fc42 |
store-results-to | /tmp/tmpfq3nx0vz/shadow-utils-4.16.0-7.fc42.tar.xz |
time-created | 2024-11-13 03:14:34 |
time-finished | 2024-11-13 03:18:10 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpfq3nx0vz/shadow-utils-4.16.0-7.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpfq3nx0vz/shadow-utils-4.16.0-7.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |