shadow-utils-4.18.0-7.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
shadow-4.18.0/lib/agetpass.c:113:13: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarray(0, 8193, 1)'
shadow-4.18.0/lib/agetpass.c:96:1: enter_function: entry to 'agetpass_internal'
shadow-4.18.0/lib/agetpass.c:109:16: call_function: inlined call to 'mallocarray' from 'agetpass_internal'
shadow-4.18.0/lib/agetpass.c:110:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/agetpass.c:113:13: branch_false: ...to here
shadow-4.18.0/lib/agetpass.c:113:13: throw: if 'readpassphrase' throws an exception...
shadow-4.18.0/lib/agetpass.c:113:13: danger: 'reallocarray(0, 8193, 1)' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
shadow-4.18.0/lib/alloc/reallocf.h:33:13: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarrayf(buf, max(buflen, 1), 1)'
shadow-4.18.0/lib/commonio.c:574:5: enter_function: entry to 'commonio_open'
shadow-4.18.0/lib/commonio.c:586:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:587:20: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:586:16: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:592:9: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:628:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:637:15: call_function: inlined call to 'mallocarray' from 'commonio_open'
shadow-4.18.0/lib/commonio.c:638:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:638:12: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:641:16: branch_true: following 'true' branch...
shadow-4.18.0/lib/commonio.c:641:16: branch_true: ...to here
shadow-4.18.0/lib/commonio.c:644:27: branch_true: following 'true' branch...
shadow-4.18.0/lib/commonio.c:645:28: branch_true: ...to here
shadow-4.18.0/lib/commonio.c:649:31: call_function: calling 'reallocarrayf' from 'commonio_open'
shadow-4.18.0/lib/commonio.c:649:31: return_function: returning to 'commonio_open' from 'reallocarrayf'
shadow-4.18.0/lib/commonio.c:650:28: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:653:31: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:654:29: throw: if the called function throws an exception...
shadow-4.18.0/lib/alloc/reallocf.h:33:13: danger: 'reallocarrayf(buf, max(buflen, 1), 1)' leaks here; was allocated at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
shadow-4.18.0/lib/alloc/x/xmalloc.h:31:16: warning[-Wanalyzer-malloc-leak]: leak of 'dst_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
shadow-4.18.0/lib/alloc/x/xmalloc.h:31:16: warning[-Wanalyzer-malloc-leak]: leak of 'src_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
shadow-4.18.0/lib/alloc/x/xmalloc.h:31:16: warning[-Wanalyzer-malloc-leak]: leak of ‘default_file’
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2442:9: call_function: calling ‘get_defaults’ from ‘main’
Error: COMPILER_WARNING (CWE-252): [#def6]
shadow-4.18.0/lib/audit_help.c: scope_hint: In function 'audit_logger'
shadow-4.18.0/lib/audit_help.c:72:17: warning[-Wunused-result]: ignoring return value of 'audit_log_acct_message' declared with attribute 'warn_unused_result'
Error: COMPILER_WARNING (CWE-252): [#def7]
shadow-4.18.0/lib/audit_help.c: scope_hint: In function 'audit_logger_with_group'
shadow-4.18.0/lib/audit_help.c:114:9: warning[-Wunused-result]: ignoring return value of 'audit_log_acct_message' declared with attribute 'warn_unused_result'
Error: COMPILER_WARNING (CWE-252): [#def8]
shadow-4.18.0/lib/audit_help.c: scope_hint: In function 'audit_logger_message'
shadow-4.18.0/lib/audit_help.c:123:17: warning[-Wunused-result]: ignoring return value of 'audit_log_user_message' declared with attribute 'warn_unused_result'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
shadow-4.18.0/lib/chowndir.c:54:23: warning[-Wanalyzer-malloc-leak]: leak of 'fdopendir(openat(at_fd, path, 720896))'
shadow-4.18.0/lib/chowndir.c:38:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/chowndir.c:42:15: branch_false: ...to here
shadow-4.18.0/lib/chowndir.c:42:15: acquire_memory: allocated here
shadow-4.18.0/lib/chowndir.c:43:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/chowndir.c:43:12: branch_false: ...to here
shadow-4.18.0/lib/chowndir.c:54:23: throw: if 'readdir' throws an exception...
shadow-4.18.0/lib/chowndir.c:54:23: danger: 'fdopendir(openat(at_fd, path, 720896))' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
shadow-4.18.0/lib/chowntty.c:61:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/chowntty.c:61:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/chowntty.c:61:17: branch_true: ...to here
shadow-4.18.0/lib/chowntty.c:61:17: acquire_memory: allocated here
shadow-4.18.0/lib/chowntty.c:61:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/chowntty.c:61:17: branch_true: ...to here
shadow-4.18.0/lib/chowntty.c:61:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/chowntty.c:61:17: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
shadow-4.18.0/lib/cleanup_group.c:28:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_group.c:28:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:28:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:28:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_group.c:28:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:28:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:28:9: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/cleanup_group.c:28:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
shadow-4.18.0/lib/cleanup_group.c:46:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_group.c:46:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:46:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:46:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_group.c:46:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:46:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:46:9: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/cleanup_group.c:46:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
shadow-4.18.0/lib/cleanup_group.c:60:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_group.c:60:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:60:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:60:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_group.c:60:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:60:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:60:9: throw: if 'gr_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_group.c:60:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
shadow-4.18.0/lib/cleanup_group.c:78:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_group.c:78:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:78:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:78:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_group.c:78:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:78:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:78:9: throw: if 'sgr_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_group.c:78:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
shadow-4.18.0/lib/cleanup_group.c:101:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_group.c:101:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:101:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:101:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_group.c:101:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:101:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:101:9: throw: if 'gr_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_group.c:101:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
shadow-4.18.0/lib/cleanup_group.c:121:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_group.c:121:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:121:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:121:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_group.c:121:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:121:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:121:9: throw: if 'sgr_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_group.c:121:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
shadow-4.18.0/lib/cleanup_group.c:142:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_group.c:142:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:142:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:142:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_group.c:142:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:142:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:142:9: throw: if 'gr_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_group.c:142:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
shadow-4.18.0/lib/cleanup_group.c:165:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_group.c:165:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:165:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:165:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_group.c:165:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:165:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:165:9: throw: if 'sgr_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_group.c:165:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
shadow-4.18.0/lib/cleanup_group.c:188:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_group.c:184:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/cleanup_group.c:185:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:188:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:188:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:188:17: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_group.c:188:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:188:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:188:17: throw: if 'gr_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_group.c:188:17: danger: 'saved_locale' leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
shadow-4.18.0/lib/cleanup_group.c:208:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_group.c:204:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/cleanup_group.c:205:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:208:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:208:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:208:17: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_group.c:208:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_group.c:208:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_group.c:208:17: throw: if 'sgr_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_group.c:208:17: danger: 'saved_locale' leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
shadow-4.18.0/lib/cleanup_user.c:28:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_user.c:28:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:28:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:28:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_user.c:28:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:28:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:28:9: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/cleanup_user.c:28:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
shadow-4.18.0/lib/cleanup_user.c:42:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_user.c:42:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:42:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:42:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_user.c:42:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:42:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:42:9: throw: if 'pw_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_user.c:42:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
shadow-4.18.0/lib/cleanup_user.c:65:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_user.c:65:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:65:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:65:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_user.c:65:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:65:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:65:9: throw: if 'pw_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_user.c:65:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
shadow-4.18.0/lib/cleanup_user.c:85:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_user.c:85:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:85:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:85:9: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_user.c:85:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:85:9: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:85:9: throw: if 'spw_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_user.c:85:9: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
shadow-4.18.0/lib/cleanup_user.c:105:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_user.c:101:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/cleanup_user.c:102:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:105:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:105:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:105:17: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_user.c:105:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:105:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:105:17: throw: if 'pw_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_user.c:105:17: danger: 'saved_locale' leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
shadow-4.18.0/lib/cleanup_user.c:124:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/cleanup_user.c:120:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/cleanup_user.c:121:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:124:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:124:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:124:17: acquire_memory: allocated here
shadow-4.18.0/lib/cleanup_user.c:124:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/cleanup_user.c:124:17: branch_true: ...to here
shadow-4.18.0/lib/cleanup_user.c:124:17: throw: if 'spw_dbname' throws an exception...
shadow-4.18.0/lib/cleanup_user.c:124:17: danger: 'saved_locale' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
shadow-4.18.0/lib/commonio.c:131:14: warning[-Wanalyzer-malloc-leak]: leak of 'aprintf("%s.%ju", &*db.filename, (long unsigned int)getpid())'
shadow-4.18.0/lib/commonio.c:355:5: enter_function: entry to 'commonio_lock_nowait'
shadow-4.18.0/lib/commonio.c:365:16: acquire_memory: allocated here
shadow-4.18.0/lib/commonio.c:366:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:369:16: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:370:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:373:13: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:373:13: call_function: calling 'do_lock_file' from 'commonio_lock_nowait'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
shadow-4.18.0/lib/commonio.c:131:14: warning[-Wanalyzer-malloc-leak]: leak of 'aprintf("%s.lock", &*db.filename)'
shadow-4.18.0/lib/commonio.c:355:5: enter_function: entry to 'commonio_lock_nowait'
shadow-4.18.0/lib/commonio.c:366:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:369:16: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:369:16: acquire_memory: allocated here
shadow-4.18.0/lib/commonio.c:370:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:373:13: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:373:13: call_function: calling 'do_lock_file' from 'commonio_lock_nowait'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
shadow-4.18.0/lib/commonio.c:142:9: warning[-Wanalyzer-malloc-leak]: leak of 'aprintf("%s.%ju", &*db.filename, (long unsigned int)getpid())'
shadow-4.18.0/lib/commonio.c:355:5: enter_function: entry to 'commonio_lock_nowait'
shadow-4.18.0/lib/commonio.c:365:16: acquire_memory: allocated here
shadow-4.18.0/lib/commonio.c:366:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:369:16: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:370:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:373:13: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:373:13: call_function: calling 'do_lock_file' from 'commonio_lock_nowait'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
shadow-4.18.0/lib/commonio.c:142:9: warning[-Wanalyzer-malloc-leak]: leak of 'aprintf("%s.lock", &*db.filename)'
shadow-4.18.0/lib/commonio.c:355:5: enter_function: entry to 'commonio_lock_nowait'
shadow-4.18.0/lib/commonio.c:366:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:369:16: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:369:16: acquire_memory: allocated here
shadow-4.18.0/lib/commonio.c:370:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:373:13: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:373:13: call_function: calling 'do_lock_file' from 'commonio_lock_nowait'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
shadow-4.18.0/lib/commonio.c:184:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(lock, 2)'
shadow-4.18.0/lib/commonio.c:132:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:141:15: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:144:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:154:13: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:154:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:164:9: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:166:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:172:14: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:172:14: acquire_resource: opened here
shadow-4.18.0/lib/commonio.c:173:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:183:15: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:184:9: danger: 'open(lock, 2)' leaks here; was opened at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
shadow-4.18.0/lib/commonio.c:257:46: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen_set_perms(backup, "w", & sb)'
shadow-4.18.0/lib/commonio.c:274:12: enter_function: entry to 'create_backup'
shadow-4.18.0/lib/commonio.c:281:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:285:16: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:285:16: call_function: calling 'fopen_set_perms' from 'create_backup'
shadow-4.18.0/lib/commonio.c:285:16: return_function: returning to 'create_backup' from 'fopen_set_perms'
shadow-4.18.0/lib/commonio.c:286:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:292:13: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:292:13: throw: if 'fseek' throws an exception...
shadow-4.18.0/lib/commonio.c:257:46: danger: 'fopen_set_perms(backup, "w", & sb)' leaks here; was opened at [(6)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
shadow-4.18.0/lib/commonio.c:257:46: warning[-Wanalyzer-malloc-leak]: leak of 'fopen_set_perms(backup, "w", & sb)'
shadow-4.18.0/lib/commonio.c:274:12: enter_function: entry to 'create_backup'
shadow-4.18.0/lib/commonio.c:281:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:285:16: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:285:16: call_function: calling 'fopen_set_perms' from 'create_backup'
shadow-4.18.0/lib/commonio.c:285:16: return_function: returning to 'create_backup' from 'fopen_set_perms'
shadow-4.18.0/lib/commonio.c:286:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:292:13: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:292:13: throw: if 'fseek' throws an exception...
shadow-4.18.0/lib/commonio.c:257:46: danger: 'fopen_set_perms(backup, "w", & sb)' leaks here; was allocated at [(6)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
shadow-4.18.0/lib/commonio.c:551:34: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarray(0, 1, 40)'
shadow-4.18.0/lib/commonio.c:1047:5: enter_function: entry to 'commonio_update'
shadow-4.18.0/lib/commonio.c:1052:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/commonio.c:1052:25: branch_true: ...to here
shadow-4.18.0/lib/commonio.c:1052:13: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:1056:18: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:1057:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:1061:37: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:1062:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:1077:13: call_function: inlined call to 'mallocarray' from 'commonio_update'
shadow-4.18.0/lib/commonio.c:1078:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:1084:9: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:1089:9: call_function: calling 'add_one_entry_nis' from 'commonio_update'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
shadow-4.18.0/lib/commonio.c:641:16: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
shadow-4.18.0/lib/commonio.c:574:5: enter_function: entry to 'commonio_open'
shadow-4.18.0/lib/commonio.c:586:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:587:20: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:586:16: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:592:9: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:628:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:637:15: call_function: inlined call to 'mallocarray' from 'commonio_open'
shadow-4.18.0/lib/commonio.c:638:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:638:12: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:641:16: throw: if the called function throws an exception...
shadow-4.18.0/lib/commonio.c:641:16: danger: 'buf' leaks here; was allocated at [(9)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
shadow-4.18.0/lib/commonio.c:670:32: warning[-Wanalyzer-malloc-leak]: leak of 'line'
shadow-4.18.0/lib/commonio.c:574:5: enter_function: entry to 'commonio_open'
shadow-4.18.0/lib/commonio.c:586:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:587:20: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:586:16: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:592:9: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:628:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:637:15: call_function: inlined call to 'mallocarray' from 'commonio_open'
shadow-4.18.0/lib/commonio.c:638:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:638:12: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:641:16: branch_true: following 'true' branch...
shadow-4.18.0/lib/commonio.c:641:16: branch_true: ...to here
shadow-4.18.0/lib/commonio.c:644:27: branch_true: following 'true' branch...
shadow-4.18.0/lib/commonio.c:645:28: branch_true: ...to here
shadow-4.18.0/lib/commonio.c:644:27: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:644:27: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:662:24: acquire_memory: allocated here
shadow-4.18.0/lib/commonio.c:663:20: branch_false: following 'false' branch (when 'line' is non-NULL)...
shadow-4.18.0/lib/commonio.c:667:21: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:667:21: call_function: calling 'name_is_nis' from 'commonio_open'
shadow-4.18.0/lib/commonio.c:667:21: return_function: returning to 'commonio_open' from 'name_is_nis'
shadow-4.18.0/lib/commonio.c:667:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:670:32: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:670:32: throw: if the called function throws an exception...
shadow-4.18.0/lib/commonio.c:670:32: danger: 'line' leaks here; was allocated at [(17)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
shadow-4.18.0/lib/commonio.c:771:24: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarray(0, n, 8)'
shadow-4.18.0/lib/commonio.c:726:1: enter_function: entry to 'commonio_sort'
shadow-4.18.0/lib/commonio.c:735:17: branch_true: following 'true' branch...
shadow-4.18.0/lib/commonio.c:751:12: branch_false: following 'false' branch (when 'n > 1')...
shadow-4.18.0/lib/commonio.c:755:19: call_function: inlined call to 'mallocarray' from 'commonio_sort'
shadow-4.18.0/lib/commonio.c:756:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:761:14: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:763:14: branch_true: following 'true' branch (when 'ptr != ptr')...
shadow-4.18.0/lib/commonio.c:771:24: branch_true: ...to here
shadow-4.18.0/lib/commonio.c:774:9: throw: if 'qsort' throws an exception...
shadow-4.18.0/lib/commonio.c:771:24: danger: 'reallocarray(0, n, 8)' leaks here; was allocated at [(7)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
shadow-4.18.0/lib/commonio.c:774:9: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarray(0, n, 8)'
shadow-4.18.0/lib/commonio.c:726:1: enter_function: entry to 'commonio_sort'
shadow-4.18.0/lib/commonio.c:735:17: branch_true: following 'true' branch...
shadow-4.18.0/lib/commonio.c:751:12: branch_false: following 'false' branch (when 'n > 1')...
shadow-4.18.0/lib/commonio.c:755:19: call_function: inlined call to 'mallocarray' from 'commonio_sort'
shadow-4.18.0/lib/commonio.c:756:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/commonio.c:761:14: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:763:14: branch_false: following 'false' branch (when 'ptr == ptr')...
shadow-4.18.0/lib/commonio.c:774:9: branch_false: ...to here
shadow-4.18.0/lib/commonio.c:774:9: throw: if 'qsort' throws an exception...
shadow-4.18.0/lib/commonio.c:774:9: danger: 'reallocarray(0, n, 8)' leaks here; was allocated at [(7)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
shadow-4.18.0/lib/copydir.c:234:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xreallocarray(0, 1, 40)'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
shadow-4.18.0/lib/copydir.c:234:22: warning[-Wanalyzer-malloc-leak]: leak of 'xreallocarray(0, 1, 40)'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
shadow-4.18.0/lib/copydir.c:283:18: warning[-Wanalyzer-malloc-leak]: leak of 'dst_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
shadow-4.18.0/lib/copydir.c:283:18: warning[-Wanalyzer-malloc-leak]: leak of 'src_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
shadow-4.18.0/lib/copydir.c:288:18: warning[-Wanalyzer-malloc-leak]: leak of 'dst_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
shadow-4.18.0/lib/copydir.c:288:18: warning[-Wanalyzer-malloc-leak]: leak of 'src_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
shadow-4.18.0/lib/copydir.c:290:24: warning[-Wanalyzer-malloc-leak]: leak of 'dst_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
shadow-4.18.0/lib/copydir.c:290:24: warning[-Wanalyzer-malloc-leak]: leak of 'src_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
shadow-4.18.0/lib/copydir.c:301:15: warning[-Wanalyzer-malloc-leak]: leak of 'dst_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
shadow-4.18.0/lib/copydir.c:301:15: warning[-Wanalyzer-malloc-leak]: leak of 'src_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
shadow-4.18.0/lib/copydir.c:303:24: warning[-Wanalyzer-malloc-leak]: leak of 'dst_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
shadow-4.18.0/lib/copydir.c:303:24: warning[-Wanalyzer-malloc-leak]: leak of 'src_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
shadow-4.18.0/lib/copydir.c:304:24: warning[-Wanalyzer-malloc-leak]: leak of 'dst_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
shadow-4.18.0/lib/copydir.c:304:24: warning[-Wanalyzer-malloc-leak]: leak of 'src_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
shadow-4.18.0/lib/copydir.c:308:13: warning[-Wanalyzer-malloc-leak]: leak of 'fdopendir(openat(*src.dirfd, *src.name, 720896))'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
shadow-4.18.0/lib/copydir.c:313:37: warning[-Wanalyzer-malloc-leak]: leak of 'dst_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
shadow-4.18.0/lib/copydir.c:313:37: warning[-Wanalyzer-malloc-leak]: leak of 'src_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
shadow-4.18.0/lib/copydir.c:501:13: warning[-Wanalyzer-malloc-leak]: leak of 'dst_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
shadow-4.18.0/lib/copydir.c:501:13: warning[-Wanalyzer-malloc-leak]: leak of 'src_entry.full_path'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
shadow-4.18.0/lib/copydir.c:663:13: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
shadow-4.18.0/lib/copydir.c:721:15: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
shadow-4.18.0/lib/copydir.c:874:5: enter_function: entry to 'copy_tree'
shadow-4.18.0/lib/copydir.c:890:16: call_function: calling 'copy_tree_impl' from 'copy_tree'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
shadow-4.18.0/lib/failure.c:49:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/failure.c:43:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/failure.c:47:14: branch_false: ...to here
shadow-4.18.0/lib/failure.c:48:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/failure.c:49:17: branch_true: ...to here
shadow-4.18.0/lib/failure.c:49:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/failure.c:49:17: branch_true: ...to here
shadow-4.18.0/lib/failure.c:49:17: acquire_memory: allocated here
shadow-4.18.0/lib/failure.c:49:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/failure.c:49:17: branch_true: ...to here
shadow-4.18.0/lib/failure.c:49:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/failure.c:49:17: danger: 'saved_locale' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
shadow-4.18.0/lib/failure.c:112:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/failure.c:34:6: enter_function: entry to 'failure'
shadow-4.18.0/lib/failure.c:43:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/failure.c:47:14: branch_false: ...to here
shadow-4.18.0/lib/failure.c:48:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/failure.c:61:17: branch_false: ...to here
shadow-4.18.0/lib/failure.c:84:9: call_function: calling 'strtcpy' from 'failure'
shadow-4.18.0/lib/failure.c:84:9: return_function: returning to 'failure' from 'strtcpy'
shadow-4.18.0/lib/failure.c:112:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/failure.c:112:9: branch_true: ...to here
shadow-4.18.0/lib/failure.c:112:9: acquire_memory: allocated here
shadow-4.18.0/lib/failure.c:112:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/failure.c:112:9: branch_true: ...to here
shadow-4.18.0/lib/failure.c:112:9: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/failure.c:112:9: danger: 'saved_locale' leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
shadow-4.18.0/lib/failure.c:165:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/failure.c:159:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/failure.c:163:14: branch_false: ...to here
shadow-4.18.0/lib/failure.c:164:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/failure.c:165:17: branch_true: ...to here
shadow-4.18.0/lib/failure.c:165:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/failure.c:165:17: branch_true: ...to here
shadow-4.18.0/lib/failure.c:165:17: acquire_memory: allocated here
shadow-4.18.0/lib/failure.c:165:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/failure.c:165:17: branch_true: ...to here
shadow-4.18.0/lib/failure.c:165:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/failure.c:165:17: danger: 'saved_locale' leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
shadow-4.18.0/lib/failure.c:227:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/failure.c:159:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/failure.c:163:14: branch_false: ...to here
shadow-4.18.0/lib/failure.c:164:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/failure.c:184:17: branch_false: ...to here
shadow-4.18.0/lib/failure.c:184:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/failure.c:185:17: branch_false: ...to here
shadow-4.18.0/lib/failure.c:184:16: branch_false: following 'false' branch...
shadow-4.18.0/lib/failure.c:190:13: branch_false: ...to here
shadow-4.18.0/lib/failure.c:190:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/failure.c:202:12: branch_false: ...to here
shadow-4.18.0/lib/failure.c:202:12: branch_false: following 'false' branch (when 'failed == 0')...
shadow-4.18.0/lib/failure.c:203:17: branch_false: ...to here
shadow-4.18.0/lib/failure.c:227:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/failure.c:227:9: branch_true: ...to here
shadow-4.18.0/lib/failure.c:227:9: acquire_memory: allocated here
shadow-4.18.0/lib/failure.c:227:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/failure.c:227:9: branch_true: ...to here
shadow-4.18.0/lib/failure.c:227:9: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/failure.c:227:9: danger: 'saved_locale' leaks here; was allocated at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
shadow-4.18.0/lib/fd.c:39:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/null", 2)'
shadow-4.18.0/lib/fd.c:38:19: acquire_resource: opened here
shadow-4.18.0/lib/fd.c:39:12: danger: 'open("/dev/null", 2)' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
shadow-4.18.0/lib/find_new_sub_gids.c:54:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/find_new_sub_gids.c:34:9: branch_true: following 'true' branch (when 'range_start' is non-NULL)...
shadow-4.18.0/lib/find_new_sub_gids.c:35:9: branch_true: ...to here
shadow-4.18.0/lib/find_new_sub_gids.c:35:9: branch_true: following 'true' branch (when 'range_count' is non-NULL)...
shadow-4.18.0/lib/find_new_sub_gids.c:37:15: branch_true: ...to here
shadow-4.18.0/lib/find_new_sub_gids.c:41:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/find_new_sub_gids.c:50:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/find_new_sub_gids.c:51:17: branch_true: ...to here
shadow-4.18.0/lib/find_new_sub_gids.c:54:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/find_new_sub_gids.c:54:17: branch_true: ...to here
shadow-4.18.0/lib/find_new_sub_gids.c:54:17: acquire_memory: allocated here
shadow-4.18.0/lib/find_new_sub_gids.c:54:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/find_new_sub_gids.c:54:17: branch_true: ...to here
shadow-4.18.0/lib/find_new_sub_gids.c:54:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/find_new_sub_gids.c:54:17: danger: 'saved_locale' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
shadow-4.18.0/lib/find_new_sub_uids.c:54:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/find_new_sub_uids.c:34:9: branch_true: following 'true' branch (when 'range_start' is non-NULL)...
shadow-4.18.0/lib/find_new_sub_uids.c:35:9: branch_true: ...to here
shadow-4.18.0/lib/find_new_sub_uids.c:35:9: branch_true: following 'true' branch (when 'range_count' is non-NULL)...
shadow-4.18.0/lib/find_new_sub_uids.c:37:15: branch_true: ...to here
shadow-4.18.0/lib/find_new_sub_uids.c:41:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/find_new_sub_uids.c:50:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/find_new_sub_uids.c:51:17: branch_true: ...to here
shadow-4.18.0/lib/find_new_sub_uids.c:54:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/find_new_sub_uids.c:54:17: branch_true: ...to here
shadow-4.18.0/lib/find_new_sub_uids.c:54:17: acquire_memory: allocated here
shadow-4.18.0/lib/find_new_sub_uids.c:54:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/find_new_sub_uids.c:54:17: branch_true: ...to here
shadow-4.18.0/lib/find_new_sub_uids.c:54:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/find_new_sub_uids.c:54:17: danger: 'saved_locale' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING: [#def67]
shadow-4.18.0/lib/fputsx.c: scope_hint: In function 'fputsx'
shadow-4.18.0/lib/fputsx.c:48:13: warning[-Wunused-but-set-variable=]: variable 'i' set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
shadow-4.18.0/lib/getdef.c:397:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/getdef.c:397:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/getdef.c:397:17: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:397:17: acquire_memory: allocated here
shadow-4.18.0/lib/getdef.c:397:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/getdef.c:397:17: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:397:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/getdef.c:397:17: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
shadow-4.18.0/lib/getdef.c:444:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/getdef.c:443:12: branch_true: following 'true' branch (when 'srcfile' is non-NULL)...
shadow-4.18.0/lib/getdef.c:444:17: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:444:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/getdef.c:444:17: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:444:17: acquire_memory: allocated here
shadow-4.18.0/lib/getdef.c:444:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/getdef.c:444:17: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:444:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/getdef.c:444:17: danger: 'saved_locale' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-477): [#def70]
shadow-4.18.0/lib/getdef.c: scope_hint: In function 'def_load'
shadow-4.18.0/lib/getdef.c:488:9: warning[-Wdeprecated-declarations]: 'econf_readDirs' is deprecated: Use the econf_readConfig/econf_readConfigWithCallback instead
shadow-4.18.0/lib/getdef.c:22: included_from: Included from here.
/usr/include/libeconf.h:497:1: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def71]
shadow-4.18.0/lib/getdef.c:488:9: warning[-Wdeprecated-declarations]: 'econf_readDirs' is deprecated: Use the econf_readConfig/econf_readConfigWithCallback instead
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
shadow-4.18.0/lib/getdef.c:493:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/getdef.c:489:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/getdef.c:490:20: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:490:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/getdef.c:493:17: branch_false: ...to here
shadow-4.18.0/lib/getdef.c:493:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/getdef.c:493:17: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:493:17: acquire_memory: allocated here
shadow-4.18.0/lib/getdef.c:493:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/getdef.c:493:17: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:493:17: throw: if 'econf_errString' throws an exception...
shadow-4.18.0/lib/getdef.c:493:17: danger: 'saved_locale' leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
shadow-4.18.0/lib/getdef.c:499:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/getdef.c:489:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/getdef.c:498:22: branch_false: ...to here
shadow-4.18.0/lib/getdef.c:498:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/getdef.c:499:17: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:499:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/getdef.c:499:17: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:499:17: acquire_memory: allocated here
shadow-4.18.0/lib/getdef.c:499:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/getdef.c:499:17: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:499:17: throw: if 'econf_errString' throws an exception...
shadow-4.18.0/lib/getdef.c:499:17: danger: 'saved_locale' leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
shadow-4.18.0/lib/getdef.c:509:25: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/getdef.c:489:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/getdef.c:498:22: branch_false: ...to here
shadow-4.18.0/lib/getdef.c:498:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/getdef.c:498:12: branch_false: ...to here
shadow-4.18.0/lib/getdef.c:504:28: branch_true: following 'true' branch...
shadow-4.18.0/lib/getdef.c:507:67: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:508:20: branch_true: following 'true' branch...
shadow-4.18.0/lib/getdef.c:509:25: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:509:25: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/getdef.c:509:25: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:509:25: acquire_memory: allocated here
shadow-4.18.0/lib/getdef.c:509:25: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/getdef.c:509:25: branch_true: ...to here
shadow-4.18.0/lib/getdef.c:509:25: throw: if 'econf_errString' throws an exception...
shadow-4.18.0/lib/getdef.c:509:25: danger: 'saved_locale' leaks here; was allocated at [(11)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
shadow-4.18.0/lib/groupio.c:378:1: warning[-Wanalyzer-malloc-leak]: leak of 'new_members'
shadow-4.18.0/lib/groupio.c:316:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/groupio.c:321:9: branch_false: ...to here
shadow-4.18.0/lib/groupio.c:323:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/groupio.c:329:20: branch_false: ...to here
shadow-4.18.0/lib/groupio.c:330:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/groupio.c:330:12: branch_false: ...to here
shadow-4.18.0/lib/groupio.c:348:23: acquire_memory: allocated here
shadow-4.18.0/lib/groupio.c:349:12: branch_false: following 'false' branch (when 'new_members' is non-NULL)...
shadow-4.18.0/lib/groupio.c:349:12: branch_false: ...to here
shadow-4.18.0/lib/groupio.c:353:19: branch_false: following 'false' branch...
shadow-4.18.0/lib/groupio.c:353:19: branch_false: ...to here
shadow-4.18.0/lib/groupio.c:359:19: branch_false: following 'false' branch...
shadow-4.18.0/lib/groupio.c:374:9: branch_false: ...to here
shadow-4.18.0/lib/groupio.c:378:1: danger: 'new_members' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
shadow-4.18.0/lib/groupio.c:413:39: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarray(0, 1, 40)'
shadow-4.18.0/lib/groupio.c:386:12: enter_function: entry to 'split_groups'
shadow-4.18.0/lib/groupio.c:390:34: branch_true: following 'true' branch (when 'gr' is non-NULL)...
shadow-4.18.0/lib/groupio.c:391:31: branch_true: ...to here
shadow-4.18.0/lib/groupio.c:409:23: call_function: inlined call to 'mallocarray' from 'split_groups'
shadow-4.18.0/lib/groupio.c:410:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/groupio.c:413:39: branch_false: ...to here
shadow-4.18.0/lib/groupio.c:413:29: call_function: inlined call to 'group_dup' from 'split_groups'
shadow-4.18.0/lib/groupio.c:413:39: danger: 'reallocarray(0, 1, 40)' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
shadow-4.18.0/lib/idmapping.c:189:17: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
shadow-4.18.0/lib/idmapping.c:123:6: enter_function: entry to 'write_mapping'
shadow-4.18.0/lib/idmapping.c:176:21: call_function: inlined call to 'xmallocarray' from 'write_mapping'
shadow-4.18.0/lib/idmapping.c:181:23: branch_false: following 'false' branch (when 'idx >= ranges')...
shadow-4.18.0/lib/idmapping.c:188:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:188:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/idmapping.c:189:17: branch_true: ...to here
shadow-4.18.0/lib/idmapping.c:189:17: throw: if 'log_get_progname' throws an exception...
shadow-4.18.0/lib/idmapping.c:189:17: danger: 'pos' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
shadow-4.18.0/lib/idmapping.c:189:25: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
shadow-4.18.0/lib/idmapping.c:123:6: enter_function: entry to 'write_mapping'
shadow-4.18.0/lib/idmapping.c:176:21: call_function: inlined call to 'xmallocarray' from 'write_mapping'
shadow-4.18.0/lib/idmapping.c:181:23: branch_false: following 'false' branch (when 'idx >= ranges')...
shadow-4.18.0/lib/idmapping.c:188:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:188:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/idmapping.c:189:17: branch_true: ...to here
shadow-4.18.0/lib/idmapping.c:189:25: throw: if 'log_get_logfd' throws an exception...
shadow-4.18.0/lib/idmapping.c:189:25: danger: 'pos' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
shadow-4.18.0/lib/idmapping.c:194:14: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
shadow-4.18.0/lib/idmapping.c:123:6: enter_function: entry to 'write_mapping'
shadow-4.18.0/lib/idmapping.c:176:21: call_function: inlined call to 'xmallocarray' from 'write_mapping'
shadow-4.18.0/lib/idmapping.c:181:23: branch_false: following 'false' branch (when 'idx >= ranges')...
shadow-4.18.0/lib/idmapping.c:188:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:188:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:194:14: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:194:14: throw: if 'openat' throws an exception...
shadow-4.18.0/lib/idmapping.c:194:14: danger: 'pos' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
shadow-4.18.0/lib/idmapping.c:196:17: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
shadow-4.18.0/lib/idmapping.c:123:6: enter_function: entry to 'write_mapping'
shadow-4.18.0/lib/idmapping.c:176:21: call_function: inlined call to 'xmallocarray' from 'write_mapping'
shadow-4.18.0/lib/idmapping.c:181:23: branch_false: following 'false' branch (when 'idx >= ranges')...
shadow-4.18.0/lib/idmapping.c:188:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:188:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:194:14: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:195:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/idmapping.c:197:64: branch_true: ...to here
shadow-4.18.0/lib/idmapping.c:196:17: throw: if 'log_get_progname' throws an exception...
shadow-4.18.0/lib/idmapping.c:196:17: danger: 'pos' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
shadow-4.18.0/lib/idmapping.c:196:25: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
shadow-4.18.0/lib/idmapping.c:123:6: enter_function: entry to 'write_mapping'
shadow-4.18.0/lib/idmapping.c:176:21: call_function: inlined call to 'xmallocarray' from 'write_mapping'
shadow-4.18.0/lib/idmapping.c:181:23: branch_false: following 'false' branch (when 'idx >= ranges')...
shadow-4.18.0/lib/idmapping.c:188:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:188:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:194:14: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:195:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/idmapping.c:197:64: branch_true: ...to here
shadow-4.18.0/lib/idmapping.c:196:25: throw: if 'log_get_logfd' throws an exception...
shadow-4.18.0/lib/idmapping.c:196:25: danger: 'pos' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
shadow-4.18.0/lib/idmapping.c:200:13: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
shadow-4.18.0/lib/idmapping.c:123:6: enter_function: entry to 'write_mapping'
shadow-4.18.0/lib/idmapping.c:176:21: call_function: inlined call to 'xmallocarray' from 'write_mapping'
shadow-4.18.0/lib/idmapping.c:181:23: branch_false: following 'false' branch (when 'idx >= ranges')...
shadow-4.18.0/lib/idmapping.c:188:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:188:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:194:14: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:195:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:200:33: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:200:13: throw: if 'write_full' throws an exception...
shadow-4.18.0/lib/idmapping.c:200:13: danger: 'pos' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
shadow-4.18.0/lib/idmapping.c:201:17: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
shadow-4.18.0/lib/idmapping.c:123:6: enter_function: entry to 'write_mapping'
shadow-4.18.0/lib/idmapping.c:176:21: call_function: inlined call to 'xmallocarray' from 'write_mapping'
shadow-4.18.0/lib/idmapping.c:181:23: branch_false: following 'false' branch (when 'idx >= ranges')...
shadow-4.18.0/lib/idmapping.c:188:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:188:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:194:14: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:195:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:200:33: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:200:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/idmapping.c:202:64: branch_true: ...to here
shadow-4.18.0/lib/idmapping.c:201:17: throw: if 'log_get_progname' throws an exception...
shadow-4.18.0/lib/idmapping.c:201:17: danger: 'pos' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
shadow-4.18.0/lib/idmapping.c:201:25: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
shadow-4.18.0/lib/idmapping.c:123:6: enter_function: entry to 'write_mapping'
shadow-4.18.0/lib/idmapping.c:176:21: call_function: inlined call to 'xmallocarray' from 'write_mapping'
shadow-4.18.0/lib/idmapping.c:181:23: branch_false: following 'false' branch (when 'idx >= ranges')...
shadow-4.18.0/lib/idmapping.c:188:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:188:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:194:14: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:195:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:200:33: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:200:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/idmapping.c:202:64: branch_true: ...to here
shadow-4.18.0/lib/idmapping.c:201:25: throw: if 'log_get_logfd' throws an exception...
shadow-4.18.0/lib/idmapping.c:201:25: danger: 'pos' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
shadow-4.18.0/lib/idmapping.c:205:13: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
shadow-4.18.0/lib/idmapping.c:123:6: enter_function: entry to 'write_mapping'
shadow-4.18.0/lib/idmapping.c:176:21: call_function: inlined call to 'xmallocarray' from 'write_mapping'
shadow-4.18.0/lib/idmapping.c:181:23: branch_false: following 'false' branch (when 'idx >= ranges')...
shadow-4.18.0/lib/idmapping.c:188:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:188:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:194:14: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:195:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:200:33: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:200:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:205:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:205:13: throw: if 'close' throws an exception...
shadow-4.18.0/lib/idmapping.c:205:13: danger: 'pos' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
shadow-4.18.0/lib/idmapping.c:206:17: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
shadow-4.18.0/lib/idmapping.c:123:6: enter_function: entry to 'write_mapping'
shadow-4.18.0/lib/idmapping.c:176:21: call_function: inlined call to 'xmallocarray' from 'write_mapping'
shadow-4.18.0/lib/idmapping.c:181:23: branch_false: following 'false' branch (when 'idx >= ranges')...
shadow-4.18.0/lib/idmapping.c:188:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:188:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:194:14: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:195:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:200:33: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:200:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:205:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:205:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/idmapping.c:206:17: throw: if 'log_get_progname' throws an exception...
shadow-4.18.0/lib/idmapping.c:206:17: danger: 'pos' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
shadow-4.18.0/lib/idmapping.c:206:25: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
shadow-4.18.0/lib/idmapping.c:123:6: enter_function: entry to 'write_mapping'
shadow-4.18.0/lib/idmapping.c:176:21: call_function: inlined call to 'xmallocarray' from 'write_mapping'
shadow-4.18.0/lib/idmapping.c:181:23: branch_false: following 'false' branch (when 'idx >= ranges')...
shadow-4.18.0/lib/idmapping.c:188:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:188:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:194:14: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:195:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:200:33: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:200:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/idmapping.c:205:13: branch_false: ...to here
shadow-4.18.0/lib/idmapping.c:205:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/idmapping.c:206:25: throw: if 'log_get_logfd' throws an exception...
shadow-4.18.0/lib/idmapping.c:206:25: danger: 'pos' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
shadow-4.18.0/lib/list.c:64:25: warning[-Wanalyzer-malloc-leak]: leak of 'xreallocarray(0, (long unsigned int)(i + 2), 8)'
shadow-4.18.0/lib/list.c:32:1: enter_function: entry to 'add_list'
shadow-4.18.0/lib/list.c:37:9: branch_true: following 'true' branch (when 'member' is non-NULL)...
shadow-4.18.0/lib/list.c:38:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:38:9: branch_true: following 'true' branch (when 'list' is non-NULL)...
shadow-4.18.0/lib/list.c:38:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:56:15: call_function: inlined call to 'xmallocarray' from 'add_list'
shadow-4.18.0/lib/list.c:64:21: branch_false: following 'false' branch...
shadow-4.18.0/lib/list.c:68:12: branch_false: ...to here
shadow-4.18.0/lib/list.c:68:18: call_function: calling 'xstrdup' from 'add_list'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
shadow-4.18.0/lib/list.c:65:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xreallocarray(0, (long unsigned int)(i + 2), 8)'
shadow-4.18.0/lib/list.c:32:1: enter_function: entry to 'add_list'
shadow-4.18.0/lib/list.c:37:9: branch_true: following 'true' branch (when 'member' is non-NULL)...
shadow-4.18.0/lib/list.c:38:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:38:9: branch_true: following 'true' branch (when 'list' is non-NULL)...
shadow-4.18.0/lib/list.c:38:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:56:15: call_function: inlined call to 'xmallocarray' from 'add_list'
shadow-4.18.0/lib/list.c:64:21: branch_true: following 'true' branch...
shadow-4.18.0/lib/list.c:65:20: branch_true: ...to here
shadow-4.18.0/lib/list.c:65:17: danger: 'xreallocarray(0, (long unsigned int)(i + 2), 8) + (long unsigned int)i * 8' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
shadow-4.18.0/lib/list.c:68:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xreallocarray(0, (long unsigned int)(i + 2), 8)'
shadow-4.18.0/lib/list.c:32:1: enter_function: entry to 'add_list'
shadow-4.18.0/lib/list.c:37:9: branch_true: following 'true' branch (when 'member' is non-NULL)...
shadow-4.18.0/lib/list.c:38:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:38:9: branch_true: following 'true' branch (when 'list' is non-NULL)...
shadow-4.18.0/lib/list.c:38:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:56:15: call_function: inlined call to 'xmallocarray' from 'add_list'
shadow-4.18.0/lib/list.c:64:21: branch_false: following 'false' branch...
shadow-4.18.0/lib/list.c:68:12: branch_false: ...to here
shadow-4.18.0/lib/list.c:68:9: danger: 'xreallocarray(0, (long unsigned int)(i + 2), 8) + (long unsigned int)i * 8' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
shadow-4.18.0/lib/list.c:121:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xreallocarray(0, (long unsigned int)(j + 1), 8)'
shadow-4.18.0/lib/list.c:83:1: enter_function: entry to 'del_list'
shadow-4.18.0/lib/list.c:88:9: branch_true: following 'true' branch (when 'member' is non-NULL)...
shadow-4.18.0/lib/list.c:89:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:89:9: branch_true: following 'true' branch (when 'list' is non-NULL)...
shadow-4.18.0/lib/list.c:89:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:102:12: branch_false: following 'false' branch (when 'i != j')...
shadow-4.18.0/lib/list.c:111:15: branch_false: ...to here
shadow-4.18.0/lib/list.c:111:15: call_function: inlined call to 'xmallocarray' from 'del_list'
shadow-4.18.0/lib/list.c:119:25: branch_true: following 'true' branch...
shadow-4.18.0/lib/list.c:120:22: call_function: inlined call to 'streq' from 'del_list'
shadow-4.18.0/lib/list.c:120:20: branch_true: following 'true' branch (when the strings are non-equal)...
shadow-4.18.0/lib/list.c:121:28: branch_true: ...to here
shadow-4.18.0/lib/list.c:121:25: danger: 'xreallocarray(0, (long unsigned int)(j + 1), 8) + (long unsigned int)j * 8' could be NULL: unchecked value from [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
shadow-4.18.0/lib/list.c:126:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xreallocarray(0, (long unsigned int)(j + 1), 8)'
shadow-4.18.0/lib/list.c:83:1: enter_function: entry to 'del_list'
shadow-4.18.0/lib/list.c:88:9: branch_true: following 'true' branch (when 'member' is non-NULL)...
shadow-4.18.0/lib/list.c:89:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:89:9: branch_true: following 'true' branch (when 'list' is non-NULL)...
shadow-4.18.0/lib/list.c:89:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:102:12: branch_false: following 'false' branch (when 'i != j')...
shadow-4.18.0/lib/list.c:111:15: branch_false: ...to here
shadow-4.18.0/lib/list.c:111:15: call_function: inlined call to 'xmallocarray' from 'del_list'
shadow-4.18.0/lib/list.c:126:9: danger: 'xreallocarray(0, (long unsigned int)(j + 1), 8) + (long unsigned int)j * 8' could be NULL: unchecked value from [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
shadow-4.18.0/lib/list.c:150:24: warning[-Wanalyzer-malloc-leak]: leak of 'xreallocarray(0, (long unsigned int)(i + 1), 8)'
shadow-4.18.0/lib/list.c:138:1: enter_function: entry to 'dup_list'
shadow-4.18.0/lib/list.c:143:9: branch_true: following 'true' branch (when 'list' is non-NULL)...
shadow-4.18.0/lib/list.c:143:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:147:15: call_function: inlined call to 'xmallocarray' from 'dup_list'
shadow-4.18.0/lib/list.c:150:16: branch_true: following 'true' branch...
shadow-4.18.0/lib/list.c:151:20: branch_true: ...to here
shadow-4.18.0/lib/list.c:151:26: call_function: calling 'xstrdup' from 'dup_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
shadow-4.18.0/lib/list.c:150:24: warning[-Wanalyzer-malloc-leak]: leak of 'xreallocarray(0, strlen(str) + 1, 1)'
shadow-4.18.0/lib/list.c:138:1: enter_function: entry to 'dup_list'
shadow-4.18.0/lib/list.c:143:9: branch_true: following 'true' branch (when 'list' is non-NULL)...
shadow-4.18.0/lib/list.c:143:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:150:16: branch_true: following 'true' branch...
shadow-4.18.0/lib/list.c:151:20: branch_true: ...to here
shadow-4.18.0/lib/list.c:151:26: call_function: calling 'xstrdup' from 'dup_list'
shadow-4.18.0/lib/list.c:151:26: return_function: returning to 'dup_list' from 'xstrdup'
shadow-4.18.0/lib/list.c:150:16: branch_true: following 'true' branch...
shadow-4.18.0/lib/list.c:151:20: branch_true: ...to here
shadow-4.18.0/lib/list.c:151:26: call_function: calling 'xstrdup' from 'dup_list'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
shadow-4.18.0/lib/list.c:151:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xreallocarray(0, (long unsigned int)(i + 1), 8)'
shadow-4.18.0/lib/list.c:138:1: enter_function: entry to 'dup_list'
shadow-4.18.0/lib/list.c:143:9: branch_true: following 'true' branch (when 'list' is non-NULL)...
shadow-4.18.0/lib/list.c:143:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:147:15: call_function: inlined call to 'xmallocarray' from 'dup_list'
shadow-4.18.0/lib/list.c:150:16: branch_true: following 'true' branch...
shadow-4.18.0/lib/list.c:151:20: branch_true: ...to here
shadow-4.18.0/lib/list.c:151:17: danger: 'xreallocarray(0, (long unsigned int)(i + 1), 8) + (long unsigned int)i * 8' could be NULL: unchecked value from [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
shadow-4.18.0/lib/list.c:156:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xreallocarray(0, (long unsigned int)(i + 1), 8)'
shadow-4.18.0/lib/list.c:138:1: enter_function: entry to 'dup_list'
shadow-4.18.0/lib/list.c:143:9: branch_true: following 'true' branch (when 'list' is non-NULL)...
shadow-4.18.0/lib/list.c:143:9: branch_true: ...to here
shadow-4.18.0/lib/list.c:147:15: call_function: inlined call to 'xmallocarray' from 'dup_list'
shadow-4.18.0/lib/list.c:150:16: branch_false: following 'false' branch...
shadow-4.18.0/lib/list.c:156:12: branch_false: ...to here
shadow-4.18.0/lib/list.c:156:9: danger: 'xreallocarray(0, (long unsigned int)(i + 1), 8) + (long unsigned int)i * 8' could be NULL: unchecked value from [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
shadow-4.18.0/lib/list.c:213:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xreallocarray(0, n, 8)'
shadow-4.18.0/lib/list.c:186:1: enter_function: entry to 'comma_to_list'
shadow-4.18.0/lib/list.c:192:9: branch_true: following 'true' branch (when 'comma' is non-NULL)...
shadow-4.18.0/lib/list.c:198:19: branch_true: ...to here
shadow-4.18.0/lib/list.c:206:17: call_function: inlined call to 'xmallocarray' from 'comma_to_list'
shadow-4.18.0/lib/list.c:212:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/list.c:213:17: branch_true: ...to here
shadow-4.18.0/lib/list.c:213:17: danger: 'xreallocarray(0, n, 8)' could be NULL: unchecked value from [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def98]
shadow-4.18.0/lib/mail.c:42:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xaprintf("%s/new", mailbox)' where non-null expected
shadow-4.18.0/lib/mail.c:29:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/mail.c:36:19: branch_true: ...to here
shadow-4.18.0/lib/mail.c:37:12: branch_true: following 'true' branch (when 'mailbox' is non-NULL)...
shadow-4.18.0/lib/mail.c:40:27: branch_true: ...to here
shadow-4.18.0/lib/mail.c:40:27: acquire_memory: this call could return NULL
shadow-4.18.0/lib/mail.c:42:21: danger: argument 1 ('xaprintf("%s/new", mailbox)') from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
shadow-4.18.0/lib/motd.c:57:9: warning[-Wanalyzer-malloc-leak]: leak of 'mb'
shadow-4.18.0/lib/motd.c:39:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/motd.c:42:20: branch_false: ...to here
shadow-4.18.0/lib/motd.c:42:20: acquire_memory: allocated here
shadow-4.18.0/lib/motd.c:43:12: branch_false: following 'false' branch (when 'motdlist' is non-NULL)...
shadow-4.18.0/lib/motd.c:46:9: branch_false: ...to here
shadow-4.18.0/lib/motd.c:57:9: throw: if 'fflush' throws an exception...
shadow-4.18.0/lib/motd.c:57:9: danger: 'mb' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-563): [#def100]
shadow-4.18.0/lib/commonio.c:30: included_from: Included from here.
shadow-4.18.0/lib/commonio.c: scope_hint: In function 'dec_lock_count'
shadow-4.18.0/lib/nscd.h:10:35: warning[-Wunused-value]: statement with no effect
shadow-4.18.0/lib/commonio.c:457:33: note: in expansion of macro 'nscd_flush_cache'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
shadow-4.18.0/lib/pam_pass_non_interactive.c:46:9: branch_true: following 'true' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_false: following 'false' branch (when 'num_msg > 0')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: following 'false' branch (when 'responses' is non-NULL)...
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:67:49: acquire_memory: allocated here
shadow-4.18.0/lib/pam_pass_non_interactive.c:68:28: branch_false: following 'false' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:40: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:25: throw: if 'log_get_progname' throws an exception...
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:25: danger: '<unknown>' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:25: warning[-Wanalyzer-malloc-leak]: leak of 'responses'
shadow-4.18.0/lib/pam_pass_non_interactive.c:46:9: branch_true: following 'true' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_false: following 'false' branch (when 'num_msg > 0')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: acquire_memory: allocated here
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: following 'false' branch (when 'responses' is non-NULL)...
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:25: throw: if 'log_get_progname' throws an exception...
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:25: danger: 'responses' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:34: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
shadow-4.18.0/lib/pam_pass_non_interactive.c:46:9: branch_true: following 'true' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_false: following 'false' branch (when 'num_msg > 0')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: following 'false' branch (when 'responses' is non-NULL)...
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:67:49: acquire_memory: allocated here
shadow-4.18.0/lib/pam_pass_non_interactive.c:68:28: branch_false: following 'false' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:40: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:34: throw: if 'log_get_logfd' throws an exception...
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:34: danger: '<unknown>' leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:34: warning[-Wanalyzer-malloc-leak]: leak of 'responses'
shadow-4.18.0/lib/pam_pass_non_interactive.c:46:9: branch_true: following 'true' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_false: following 'false' branch (when 'num_msg > 0')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: acquire_memory: allocated here
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: following 'false' branch (when 'responses' is non-NULL)...
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:34: throw: if 'log_get_logfd' throws an exception...
shadow-4.18.0/lib/pam_pass_non_interactive.c:62:34: danger: 'responses' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
shadow-4.18.0/lib/pam_pass_non_interactive.c:74:42: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
shadow-4.18.0/lib/pam_pass_non_interactive.c:46:9: branch_true: following 'true' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_false: following 'false' branch (when 'num_msg > 0')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: following 'false' branch (when 'responses' is non-NULL)...
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:67:49: acquire_memory: allocated here
shadow-4.18.0/lib/pam_pass_non_interactive.c:68:28: branch_false: following 'false' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:40: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:73:28: branch_false: following 'false' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:74:42: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:74:42: throw: if 'log_get_logfd' throws an exception...
shadow-4.18.0/lib/pam_pass_non_interactive.c:74:42: danger: '<unknown>' leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
shadow-4.18.0/lib/pam_pass_non_interactive.c:74:42: warning[-Wanalyzer-malloc-leak]: leak of 'responses'
shadow-4.18.0/lib/pam_pass_non_interactive.c:46:9: branch_true: following 'true' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_false: following 'false' branch (when 'num_msg > 0')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: acquire_memory: allocated here
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: following 'false' branch (when 'responses' is non-NULL)...
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:73:28: branch_false: following 'false' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:74:42: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:74:42: throw: if 'log_get_logfd' throws an exception...
shadow-4.18.0/lib/pam_pass_non_interactive.c:74:42: danger: 'responses' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:32: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
shadow-4.18.0/lib/pam_pass_non_interactive.c:46:9: branch_true: following 'true' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_false: following 'false' branch (when 'num_msg > 0')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: following 'false' branch (when 'responses' is non-NULL)...
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:67:49: acquire_memory: allocated here
shadow-4.18.0/lib/pam_pass_non_interactive.c:68:28: branch_false: following 'false' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:40: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:32: throw: if 'log_get_progname' throws an exception...
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:32: danger: '<unknown>' leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:32: warning[-Wanalyzer-malloc-leak]: leak of 'responses'
shadow-4.18.0/lib/pam_pass_non_interactive.c:46:9: branch_true: following 'true' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_false: following 'false' branch (when 'num_msg > 0')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: acquire_memory: allocated here
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: following 'false' branch (when 'responses' is non-NULL)...
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:32: throw: if 'log_get_progname' throws an exception...
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:32: danger: 'responses' leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:41: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
shadow-4.18.0/lib/pam_pass_non_interactive.c:46:9: branch_true: following 'true' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_false: following 'false' branch (when 'num_msg > 0')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: following 'false' branch (when 'responses' is non-NULL)...
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:67:49: acquire_memory: allocated here
shadow-4.18.0/lib/pam_pass_non_interactive.c:68:28: branch_false: following 'false' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:40: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:41: throw: if 'log_get_logfd' throws an exception...
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:41: danger: '<unknown>' leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:41: warning[-Wanalyzer-malloc-leak]: leak of 'responses'
shadow-4.18.0/lib/pam_pass_non_interactive.c:46:9: branch_true: following 'true' branch...
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:48:12: branch_false: following 'false' branch (when 'num_msg > 0')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:52:21: acquire_memory: allocated here
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: following 'false' branch (when 'responses' is non-NULL)...
shadow-4.18.0/lib/pam_pass_non_interactive.c:53:12: branch_false: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:57:23: branch_true: following 'true' branch (when 'count < num_msg')...
shadow-4.18.0/lib/pam_pass_non_interactive.c:58:26: branch_true: ...to here
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:41: throw: if 'log_get_logfd' throws an exception...
shadow-4.18.0/lib/pam_pass_non_interactive.c:87:41: danger: 'responses' leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-563): [#def111]
shadow-4.18.0/lib/prefix_flag.c:42:14: warning[-Wunused-variable]: 'def_conf_file' defined but not used
Error: GCC_ANALYZER_WARNING (CWE-775): [#def112]
shadow-4.18.0/lib/prefix_flag.c:156:31: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(group_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:149:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:153:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:153:22: acquire_resource: opened here
shadow-4.18.0/lib/prefix_flag.c:154:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:154:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:156:31: throw: if 'fgetgrent' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:156:31: danger: 'fopen(group_db_file, "rt")' leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
shadow-4.18.0/lib/prefix_flag.c:156:31: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(group_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:149:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:153:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:153:22: acquire_memory: allocated here
shadow-4.18.0/lib/prefix_flag.c:154:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:154:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:156:31: throw: if 'fgetgrent' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:156:31: danger: 'fopen(group_db_file, "rt")' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def114]
shadow-4.18.0/lib/prefix_flag.c:176:31: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(group_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:169:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:173:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:173:22: acquire_resource: opened here
shadow-4.18.0/lib/prefix_flag.c:174:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:174:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:176:31: throw: if 'fgetgrent' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:176:31: danger: 'fopen(group_db_file, "rt")' leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
shadow-4.18.0/lib/prefix_flag.c:176:31: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(group_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:169:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:173:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:173:22: acquire_memory: allocated here
shadow-4.18.0/lib/prefix_flag.c:174:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:174:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:176:31: throw: if 'fgetgrent' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:176:31: danger: 'fopen(group_db_file, "rt")' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def116]
shadow-4.18.0/lib/prefix_flag.c:196:31: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(passwd_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:189:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:193:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:193:22: acquire_resource: opened here
shadow-4.18.0/lib/prefix_flag.c:194:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:194:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:196:31: throw: if 'fgetpwent' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:196:31: danger: 'fopen(passwd_db_file, "rt")' leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
shadow-4.18.0/lib/prefix_flag.c:196:31: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(passwd_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:189:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:193:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:193:22: acquire_memory: allocated here
shadow-4.18.0/lib/prefix_flag.c:194:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:194:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:196:31: throw: if 'fgetpwent' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:196:31: danger: 'fopen(passwd_db_file, "rt")' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def118]
shadow-4.18.0/lib/prefix_flag.c:216:31: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(passwd_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:209:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:213:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:213:22: acquire_resource: opened here
shadow-4.18.0/lib/prefix_flag.c:214:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:214:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:216:31: throw: if 'fgetpwent' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:216:31: danger: 'fopen(passwd_db_file, "rt")' leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
shadow-4.18.0/lib/prefix_flag.c:216:31: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(passwd_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:209:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:213:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:213:22: acquire_memory: allocated here
shadow-4.18.0/lib/prefix_flag.c:214:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:214:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:216:31: throw: if 'fgetpwent' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:216:31: danger: 'fopen(passwd_db_file, "rt")' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def120]
shadow-4.18.0/lib/prefix_flag.c:238:31: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(passwd_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:231:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:235:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:235:22: acquire_resource: opened here
shadow-4.18.0/lib/prefix_flag.c:236:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:236:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:238:31: throw: if 'fgetpwent_r' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:238:31: danger: 'fopen(passwd_db_file, "rt")' leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
shadow-4.18.0/lib/prefix_flag.c:238:31: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(passwd_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:231:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:235:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:235:22: acquire_memory: allocated here
shadow-4.18.0/lib/prefix_flag.c:236:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:236:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:238:31: throw: if 'fgetpwent_r' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:238:31: danger: 'fopen(passwd_db_file, "rt")' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def122]
shadow-4.18.0/lib/prefix_flag.c:259:30: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(spw_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:252:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:256:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:256:22: acquire_resource: opened here
shadow-4.18.0/lib/prefix_flag.c:257:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:257:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:259:30: throw: if 'fgetspent' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:259:30: danger: 'fopen(spw_db_file, "rt")' leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
shadow-4.18.0/lib/prefix_flag.c:259:30: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(spw_db_file, "rt")'
shadow-4.18.0/lib/prefix_flag.c:252:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/prefix_flag.c:256:22: branch_true: ...to here
shadow-4.18.0/lib/prefix_flag.c:256:22: acquire_memory: allocated here
shadow-4.18.0/lib/prefix_flag.c:257:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/prefix_flag.c:257:20: branch_false: ...to here
shadow-4.18.0/lib/prefix_flag.c:259:30: throw: if 'fgetspent' throws an exception...
shadow-4.18.0/lib/prefix_flag.c:259:30: danger: 'fopen(spw_db_file, "rt")' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
shadow-4.18.0/lib/readpassphrase.c:93:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/tty", 2)'
shadow-4.18.0/lib/readpassphrase.c:63:12: branch_false: following 'false' branch (when 'bufsiz != 0')...
shadow-4.18.0/lib/readpassphrase.c:63:12: branch_false: ...to here
shadow-4.18.0/lib/readpassphrase.c:69:21: branch_true: following 'true' branch (when 'i != 65')...
shadow-4.18.0/lib/readpassphrase.c:70:17: branch_true: ...to here
shadow-4.18.0/lib/readpassphrase.c:78:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/readpassphrase.c:79:31: branch_false: ...to here
shadow-4.18.0/lib/readpassphrase.c:79:31: acquire_resource: opened here
shadow-4.18.0/lib/readpassphrase.c:78:13: branch_false: following 'false' branch...
shadow-4.18.0/lib/readpassphrase.c:93:12: branch_false: ...to here
shadow-4.18.0/lib/readpassphrase.c:93:12: danger: 'open("/dev/tty", 2)' leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: COMPILER_WARNING (CWE-252): [#def125]
shadow-4.18.0/lib/readpassphrase.c: scope_hint: In function 'readpassphrase'
shadow-4.18.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): [#def126]
shadow-4.18.0/lib/readpassphrase.c:147:23: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
shadow-4.18.0/lib/remove_tree.c:48:23: warning[-Wanalyzer-malloc-leak]: leak of 'fdopendir(openat(at_fd, path, 720896))'
shadow-4.18.0/lib/remove_tree.c:35:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/remove_tree.c:39:15: branch_false: ...to here
shadow-4.18.0/lib/remove_tree.c:39:15: acquire_memory: allocated here
shadow-4.18.0/lib/remove_tree.c:40:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/remove_tree.c:40:12: branch_false: ...to here
shadow-4.18.0/lib/remove_tree.c:48:23: throw: if 'readdir' throws an exception...
shadow-4.18.0/lib/remove_tree.c:48:23: danger: 'fdopendir(openat(at_fd, path, 720896))' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
shadow-4.18.0/lib/run_part.c:85:21: warning[-Wanalyzer-malloc-leak]: leak of 'aprintf("%s/%s", directory, &**_4.d_name)'
shadow-4.18.0/lib/run_part.c:48:5: enter_function: entry to 'run_parts'
shadow-4.18.0/lib/run_part.c:56:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/run_part.c:56:12: branch_false: ...to here
shadow-4.18.0/lib/run_part.c:60:19: branch_true: following 'true' branch...
shadow-4.18.0/lib/run_part.c:64:57: branch_true: ...to here
shadow-4.18.0/lib/run_part.c:64:21: acquire_memory: allocated here
shadow-4.18.0/lib/run_part.c:65:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/run_part.c:75:21: branch_false: ...to here
shadow-4.18.0/lib/run_part.c:75:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/run_part.c:85:21: branch_false: ...to here
shadow-4.18.0/lib/run_part.c:85:20: branch_true: following 'true' branch...
shadow-4.18.0/lib/run_part.c:86:42: branch_true: ...to here
shadow-4.18.0/lib/run_part.c:86:42: call_function: calling 'run_part' from 'run_parts'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
shadow-4.18.0/lib/selinux.c:141:29: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/selinux.c:115:12: enter_function: entry to 'selinux_log_cb'
shadow-4.18.0/lib/selinux.c:123:15: call_function: calling 'vaprintf' from 'selinux_log_cb'
shadow-4.18.0/lib/selinux.c:123:15: return_function: returning to 'selinux_log_cb' from 'vaprintf'
shadow-4.18.0/lib/selinux.c:125:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/selinux.c:129:13: branch_false: ...to here
shadow-4.18.0/lib/selinux.c:129:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/selinux.c:130:36: branch_true: ...to here
shadow-4.18.0/lib/selinux.c:132:20: branch_true: following 'true' branch...
shadow-4.18.0/lib/selinux.c:135:33: branch_true: ...to here
shadow-4.18.0/lib/selinux.c:135:28: branch_true: following 'true' branch...
shadow-4.18.0/lib/selinux.c:135:32: branch_true: ...to here
shadow-4.18.0/lib/selinux.c:135:32: branch_true: following 'true' branch...
shadow-4.18.0/lib/selinux.c:139:36: branch_true: ...to here
shadow-4.18.0/lib/selinux.c:141:29: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/selinux.c:141:29: branch_true: ...to here
shadow-4.18.0/lib/selinux.c:141:29: acquire_memory: allocated here
shadow-4.18.0/lib/selinux.c:141:29: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/selinux.c:141:29: branch_true: ...to here
shadow-4.18.0/lib/selinux.c:141:29: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/selinux.c:141:29: danger: 'saved_locale' leaks here; was allocated at [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
shadow-4.18.0/lib/selinux.c:163:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/selinux.c:115:12: enter_function: entry to 'selinux_log_cb'
shadow-4.18.0/lib/selinux.c:123:15: call_function: calling 'vaprintf' from 'selinux_log_cb'
shadow-4.18.0/lib/selinux.c:123:15: return_function: returning to 'selinux_log_cb' from 'vaprintf'
shadow-4.18.0/lib/selinux.c:125:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/selinux.c:129:13: branch_false: ...to here
shadow-4.18.0/lib/selinux.c:163:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/selinux.c:163:9: branch_true: ...to here
shadow-4.18.0/lib/selinux.c:163:9: acquire_memory: allocated here
shadow-4.18.0/lib/selinux.c:163:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/selinux.c:163:9: branch_true: ...to here
shadow-4.18.0/lib/selinux.c:163:9: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/selinux.c:163:9: danger: 'saved_locale' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
shadow-4.18.0/lib/selinux.c:196:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/selinux.c:186:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/selinux.c:190:72: branch_false: ...to here
shadow-4.18.0/lib/selinux.c:192:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/selinux.c:195:48: branch_true: ...to here
shadow-4.18.0/lib/selinux.c:196:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/selinux.c:196:17: branch_true: ...to here
shadow-4.18.0/lib/selinux.c:196:17: acquire_memory: allocated here
shadow-4.18.0/lib/selinux.c:196:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/selinux.c:196:17: branch_true: ...to here
shadow-4.18.0/lib/selinux.c:196:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/selinux.c:196:17: danger: 'saved_locale' leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
shadow-4.18.0/lib/setugid.c:45:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/setugid.c:42:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/setugid.c:43:27: branch_true: ...to here
shadow-4.18.0/lib/setugid.c:45:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/setugid.c:45:17: branch_true: ...to here
shadow-4.18.0/lib/setugid.c:45:17: acquire_memory: allocated here
shadow-4.18.0/lib/setugid.c:45:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/setugid.c:45:17: branch_true: ...to here
shadow-4.18.0/lib/setugid.c:45:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/setugid.c:45:17: danger: 'saved_locale' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
shadow-4.18.0/lib/setugid.c:58:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/setugid.c:42:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/setugid.c:55:40: branch_false: ...to here
shadow-4.18.0/lib/setugid.c:55:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/setugid.c:56:27: branch_true: ...to here
shadow-4.18.0/lib/setugid.c:58:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/setugid.c:58:17: branch_true: ...to here
shadow-4.18.0/lib/setugid.c:58:17: acquire_memory: allocated here
shadow-4.18.0/lib/setugid.c:58:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/setugid.c:58:17: branch_true: ...to here
shadow-4.18.0/lib/setugid.c:58:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/setugid.c:58:17: danger: 'saved_locale' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
shadow-4.18.0/lib/setugid.c:80:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/setugid.c:80:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/setugid.c:80:17: branch_true: ...to here
shadow-4.18.0/lib/setugid.c:80:17: acquire_memory: allocated here
shadow-4.18.0/lib/setugid.c:80:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/setugid.c:80:17: branch_true: ...to here
shadow-4.18.0/lib/setugid.c:80:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/setugid.c:80:17: danger: 'saved_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
shadow-4.18.0/lib/setupenv.c:193:25: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/setupenv.c:189:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/setupenv.c:190:22: branch_true: ...to here
shadow-4.18.0/lib/setupenv.c:193:25: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/setupenv.c:193:25: branch_true: ...to here
shadow-4.18.0/lib/setupenv.c:193:25: acquire_memory: allocated here
shadow-4.18.0/lib/setupenv.c:193:25: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/setupenv.c:193:25: branch_true: ...to here
shadow-4.18.0/lib/setupenv.c:193:25: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/setupenv.c:193:25: danger: 'saved_locale' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-563): [#def136]
shadow-4.18.0/lib/commonio.c:36: included_from: Included from here.
shadow-4.18.0/lib/sssd.h:13:35: warning[-Wunused-value]: statement with no effect
shadow-4.18.0/lib/commonio.c:459:33: note: in expansion of macro 'sssd_flush_cache'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def137]
shadow-4.18.0/lib/string/memset/memzero.h:44:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 's' where non-null expected
shadow-4.18.0/lib/obscure.c:82:44: enter_function: entry to 'password_check'
shadow-4.18.0/lib/obscure.c:96:19: acquire_memory: this call could return NULL
shadow-4.18.0/lib/obscure.c:109:14: call_function: calling 'strzero' from 'password_check'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
shadow-4.18.0/lib/string/strcmp/streq.h:27:16: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(getdef_str("TTYTYPE_FILE"), "r")'
shadow-4.18.0/lib/ttytype.c:36:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/ttytype.c:39:20: branch_false: ...to here
shadow-4.18.0/lib/ttytype.c:40:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/ttytype.c:44:14: branch_false: ...to here
shadow-4.18.0/lib/ttytype.c:44:14: acquire_resource: opened here
shadow-4.18.0/lib/ttytype.c:45:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/ttytype.c:45:12: branch_false: ...to here
shadow-4.18.0/lib/ttytype.c:51:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/ttytype.c:51:20: branch_false: ...to here
shadow-4.18.0/lib/ttytype.c:62:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/ttytype.c:63:17: throw: if 'addenv' throws an exception...
shadow-4.18.0/lib/ttytype.c:62:54: call_function: inlined call to 'streq' from 'ttytype'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
shadow-4.18.0/lib/string/strcmp/streq.h:27:16: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(getdef_str("TTYTYPE_FILE"), "r")'
shadow-4.18.0/lib/ttytype.c:36:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/ttytype.c:39:20: branch_false: ...to here
shadow-4.18.0/lib/ttytype.c:40:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/ttytype.c:44:14: branch_false: ...to here
shadow-4.18.0/lib/ttytype.c:44:14: acquire_memory: allocated here
shadow-4.18.0/lib/ttytype.c:45:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/ttytype.c:45:12: branch_false: ...to here
shadow-4.18.0/lib/ttytype.c:51:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/ttytype.c:51:20: branch_false: ...to here
shadow-4.18.0/lib/ttytype.c:62:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/ttytype.c:63:17: throw: if 'addenv' throws an exception...
shadow-4.18.0/lib/ttytype.c:62:54: call_function: inlined call to 'streq' from 'ttytype'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
shadow-4.18.0/lib/string/strcmp/streq.h:27:16: warning[-Wanalyzer-malloc-leak]: leak of 'strtolower(xstrdup(old))'
shadow-4.18.0/lib/obscure.c:82:44: enter_function: entry to 'password_check'
shadow-4.18.0/lib/obscure.c:94:19: call_function: calling 'xstrdup' from 'password_check'
shadow-4.18.0/lib/obscure.c:94:19: return_function: returning to 'password_check' from 'xstrdup'
shadow-4.18.0/lib/obscure.c:95:19: call_function: calling 'xstrdup' from 'password_check'
shadow-4.18.0/lib/obscure.c:95:19: return_function: returning to 'password_check' from 'xstrdup'
shadow-4.18.0/lib/obscure.c:96:19: throw: if 'xaprintf' throws an exception...
shadow-4.18.0/lib/string/ctype/strtoascii/strtolower.h:25:30: call_function: inlined call to 'streq' from 'strtolower'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
shadow-4.18.0/lib/string/strcmp/streq.h:27:16: warning[-Wanalyzer-malloc-leak]: leak of 'xreallocarray(0, strlen(str) + 1, 1)'
shadow-4.18.0/lib/obscure.c:82:44: enter_function: entry to 'password_check'
shadow-4.18.0/lib/obscure.c:94:19: call_function: calling 'xstrdup' from 'password_check'
shadow-4.18.0/lib/obscure.c:94:19: return_function: returning to 'password_check' from 'xstrdup'
shadow-4.18.0/lib/obscure.c:95:19: call_function: calling 'xstrdup' from 'password_check'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
shadow-4.18.0/lib/string/strcmp/streq.h:27:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2442:9: call_function: calling ‘get_defaults’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
shadow-4.18.0/lib/string/strcpy/strtcpy.h:66:16: warning[-Wanalyzer-malloc-leak]: leak of ‘agetpass(dcgettext(0, "New Password: ", 5))’
shadow-4.18.0/src/gpasswd.c:787:13: enter_function: entry to ‘change_passwd’
shadow-4.18.0/src/gpasswd.c:805:27: branch_true: following ‘true’ branch (when ‘retries != 3’)...
shadow-4.18.0/src/gpasswd.c:806:32: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:806:22: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:807:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:811:17: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:811:17: call_function: calling ‘strtcpy’ from ‘change_passwd’
shadow-4.18.0/src/gpasswd.c:811:17: return_function: returning to ‘change_passwd’ from ‘strtcpy’
shadow-4.18.0/lib/string/strcpy/strtcpy.h:66:16: danger: ‘agetpass(dcgettext(0, "New Password: ", 5))’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def144]
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xreallocarray(0, strlen(str) + 1, 1)' where non-null expected
shadow-4.18.0/lib/string/strdup/xstrdup.h:26:1: enter_function: entry to 'xstrdup'
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:23: call_function: inlined call to 'xmallocarray' from 'xstrdup'
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:16: danger: argument 1 ('xreallocarray(0, strlen(str) + 1, 1)') from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def145]
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xreallocarray(0, strlen(str) + 1, 1)’ where non-null expected
shadow-4.18.0/lib/string/strdup/xstrdup.h:26:1: enter_function: entry to ‘xstrdup’
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:23: call_function: inlined call to ‘xmallocarray’ from ‘xstrdup’
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:16: danger: argument 1 (‘xreallocarray(0, strlen(str) + 1, 1)’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:23: warning[-Wanalyzer-malloc-leak]: leak of 'xreallocarray(0, strlen(str) + 1, 1)'
shadow-4.18.0/lib/obscure.c:202:6: enter_function: entry to 'obscure'
shadow-4.18.0/lib/obscure.c:204:27: call_function: calling 'obscure_msg' from 'obscure'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:23: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(comma)'
shadow-4.18.0/lib/list.c:186:1: enter_function: entry to 'comma_to_list'
shadow-4.18.0/lib/list.c:192:9: branch_true: following 'true' branch (when 'comma' is non-NULL)...
shadow-4.18.0/lib/list.c:198:19: branch_true: ...to here
shadow-4.18.0/lib/list.c:198:19: call_function: calling 'xstrdup' from 'comma_to_list'
shadow-4.18.0/lib/list.c:198:19: return_function: returning to 'comma_to_list' from 'xstrdup'
shadow-4.18.0/lib/list.c:206:17: call_function: inlined call to 'xmallocarray' from 'comma_to_list'
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:23: danger: 'xstrdup(comma)' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:23: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(old)'
shadow-4.18.0/lib/obscure.c:202:6: enter_function: entry to 'obscure'
shadow-4.18.0/lib/obscure.c:204:27: call_function: calling 'obscure_msg' from 'obscure'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:23: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, n_args + 3, 8)’
shadow-4.18.0/src/su.c:235:13: enter_function: entry to ‘execve_shell’
shadow-4.18.0/src/su.c:243:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:243:12: branch_true: ...to here
shadow-4.18.0/src/su.c:253:25: call_function: inlined call to ‘xmallocarray’ from ‘execve_shell’
shadow-4.18.0/src/su.c:256:28: call_function: calling ‘xstrdup’ from ‘execve_shell’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
shadow-4.18.0/lib/string/strdup/xstrdup.h:28:23: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/newgrp.c:233:13: enter_function: entry to ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:239:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:240:30: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:240:30: call_function: calling ‘xstrdup’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:240:30: return_function: returning to ‘syslog_sg’ from ‘xstrdup’
shadow-4.18.0/src/newgrp.c:243:12: branch_true: following ‘true’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:244:28: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:244:28: call_function: calling ‘xstrdup’ from ‘syslog_sg’
Error: COMPILER_WARNING (CWE-704): [#def151]
shadow-4.18.0/lib/string/strspn/stprcspn.h:13: included_from: Included from here.
shadow-4.18.0/lib/basename.c:20: included_from: Included from here.
shadow-4.18.0/lib/string/strspn/strrcspn.h: scope_hint: In function 'strrcspn'
shadow-4.18.0/lib/string/strspn/strrcspn.h:29:11: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def152]
shadow-4.18.0/lib/string/strspn/strrcspn.h:29:11: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def153]
shadow-4.18.0/lib/string/strspn/stprspn.h:13: included_from: Included from here.
shadow-4.18.0/lib/fields.c:23: included_from: Included from here.
shadow-4.18.0/lib/string/strspn/strrspn.h: scope_hint: In function 'strrspn_'
shadow-4.18.0/lib/string/strspn/strrspn.h:29:11: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def154]
shadow-4.18.0/lib/string/strspn/strrspn.h:29:11: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def155]
shadow-4.18.0/lib/string/strspn/stprspn.h:13: included_from: Included from here.
shadow-4.18.0/src/suauth.c:25: included_from: Included from here.
shadow-4.18.0/lib/string/strspn/strrspn.h: scope_hint: In function ‘strrspn_’
shadow-4.18.0/lib/string/strspn/strrspn.h:29:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def156]
shadow-4.18.0/lib/string/strspn/strrspn.h:29:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def157]
shadow-4.18.0/lib/string/strtok/stpsep.h:30:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(default_file, "r")’
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2442:9: call_function: calling ‘get_defaults’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
shadow-4.18.0/lib/string/strtok/stpsep.h:30:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(default_file, "r")’
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2442:9: call_function: calling ‘get_defaults’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
shadow-4.18.0/lib/string/strtok/strsep2arr.h:41:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'a'
shadow-4.18.0/lib/list.c:186:1: enter_function: entry to 'comma_to_list'
shadow-4.18.0/lib/list.c:192:9: branch_true: following 'true' branch (when 'comma' is non-NULL)...
shadow-4.18.0/lib/list.c:198:19: branch_true: ...to here
shadow-4.18.0/lib/list.c:206:17: call_function: inlined call to 'xmallocarray' from 'comma_to_list'
shadow-4.18.0/lib/list.c:212:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/list.c:218:9: branch_false: ...to here
shadow-4.18.0/lib/list.c:218:9: call_function: calling 'strsep2ls' from 'comma_to_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
shadow-4.18.0/lib/sub.c:39:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/sub.c:37:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/sub.c:38:25: branch_true: ...to here
shadow-4.18.0/lib/sub.c:39:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/sub.c:39:17: branch_true: ...to here
shadow-4.18.0/lib/sub.c:39:17: acquire_memory: allocated here
shadow-4.18.0/lib/sub.c:39:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/sub.c:39:17: branch_true: ...to here
shadow-4.18.0/lib/sub.c:39:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/sub.c:39:17: danger: 'saved_locale' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
shadow-4.18.0/lib/sub.c:50:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/sub.c:37:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/sub.c:48:13: branch_false: ...to here
shadow-4.18.0/lib/sub.c:48:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/sub.c:49:25: branch_true: ...to here
shadow-4.18.0/lib/sub.c:50:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/sub.c:50:17: branch_true: ...to here
shadow-4.18.0/lib/sub.c:50:17: acquire_memory: allocated here
shadow-4.18.0/lib/sub.c:50:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/sub.c:50:17: branch_true: ...to here
shadow-4.18.0/lib/sub.c:50:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/sub.c:50:17: danger: 'saved_locale' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
shadow-4.18.0/lib/sub.c:64:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/sub.c:37:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/sub.c:48:13: branch_false: ...to here
shadow-4.18.0/lib/sub.c:48:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/sub.c:60:17: branch_false: ...to here
shadow-4.18.0/lib/sub.c:64:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/sub.c:64:17: branch_true: ...to here
shadow-4.18.0/lib/sub.c:64:17: acquire_memory: allocated here
shadow-4.18.0/lib/sub.c:64:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/sub.c:64:17: branch_true: ...to here
shadow-4.18.0/lib/sub.c:64:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/sub.c:64:17: danger: 'saved_locale' leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
shadow-4.18.0/lib/subordinateio.c:673:16: warning[-Wanalyzer-malloc-leak]: leak of 'ranges'
shadow-4.18.0/lib/subordinateio.c:845:5: enter_function: entry to 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:860:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/subordinateio.c:867:9: branch_false: ...to here
shadow-4.18.0/lib/subordinateio.c:869:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/subordinateio.c:884:25: branch_false: ...to here
shadow-4.18.0/lib/subordinateio.c:884:25: call_function: calling 'get_owner_id' from 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:884:25: return_function: returning to 'list_owner_ranges' from 'get_owner_id'
shadow-4.18.0/lib/subordinateio.c:887:16: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:888:27: branch_true: ...to here
shadow-4.18.0/lib/subordinateio.c:889:30: call_function: calling 'append_range' from 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:889:30: return_function: returning to 'list_owner_ranges' from 'append_range'
shadow-4.18.0/lib/subordinateio.c:889:28: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:898:20: branch_true: ...to here
shadow-4.18.0/lib/subordinateio.c:898:20: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:899:30: call_function: calling 'append_range' from 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:899:30: return_function: returning to 'list_owner_ranges' from 'append_range'
shadow-4.18.0/lib/subordinateio.c:899:28: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:899:28: branch_true: ...to here
shadow-4.18.0/lib/subordinateio.c:909:12: branch_true: following 'true' branch (when 'id_type == 1')...
shadow-4.18.0/lib/subordinateio.c:910:17: branch_true: ...to here
shadow-4.18.0/lib/subordinateio.c:910:17: call_function: calling 'sub_uid_close' from 'list_owner_ranges'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
shadow-4.18.0/lib/subordinateio.c:780:16: warning[-Wanalyzer-malloc-leak]: leak of 'ranges'
shadow-4.18.0/lib/subordinateio.c:845:5: enter_function: entry to 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:860:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/subordinateio.c:867:9: branch_false: ...to here
shadow-4.18.0/lib/subordinateio.c:875:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/subordinateio.c:884:25: branch_false: ...to here
shadow-4.18.0/lib/subordinateio.c:884:25: call_function: calling 'get_owner_id' from 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:884:25: return_function: returning to 'list_owner_ranges' from 'get_owner_id'
shadow-4.18.0/lib/subordinateio.c:887:16: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:888:27: branch_true: ...to here
shadow-4.18.0/lib/subordinateio.c:889:30: call_function: calling 'append_range' from 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:889:30: return_function: returning to 'list_owner_ranges' from 'append_range'
shadow-4.18.0/lib/subordinateio.c:889:28: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:898:20: branch_true: ...to here
shadow-4.18.0/lib/subordinateio.c:898:20: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:899:30: call_function: calling 'append_range' from 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:899:30: return_function: returning to 'list_owner_ranges' from 'append_range'
shadow-4.18.0/lib/subordinateio.c:899:28: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:899:28: branch_true: ...to here
shadow-4.18.0/lib/subordinateio.c:909:12: branch_false: following 'false' branch (when 'id_type != 1')...
shadow-4.18.0/lib/subordinateio.c:912:17: branch_false: ...to here
shadow-4.18.0/lib/subordinateio.c:912:17: call_function: calling 'sub_gid_close' from 'list_owner_ranges'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
shadow-4.18.0/lib/subordinateio.c:887:25: warning[-Wanalyzer-malloc-leak]: leak of 'ranges'
shadow-4.18.0/lib/subordinateio.c:845:5: enter_function: entry to 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:860:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/subordinateio.c:867:9: branch_false: ...to here
shadow-4.18.0/lib/subordinateio.c:869:20: branch_false: following 'false' branch...
shadow-4.18.0/lib/subordinateio.c:884:25: branch_false: ...to here
shadow-4.18.0/lib/subordinateio.c:884:25: call_function: calling 'get_owner_id' from 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:884:25: return_function: returning to 'list_owner_ranges' from 'get_owner_id'
shadow-4.18.0/lib/subordinateio.c:887:16: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:888:27: branch_true: ...to here
shadow-4.18.0/lib/subordinateio.c:889:30: call_function: calling 'append_range' from 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:889:30: return_function: returning to 'list_owner_ranges' from 'append_range'
shadow-4.18.0/lib/subordinateio.c:889:28: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:898:20: branch_true: ...to here
shadow-4.18.0/lib/subordinateio.c:898:20: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:899:30: call_function: calling 'append_range' from 'list_owner_ranges'
shadow-4.18.0/lib/subordinateio.c:899:30: return_function: returning to 'list_owner_ranges' from 'append_range'
shadow-4.18.0/lib/subordinateio.c:899:28: branch_true: following 'true' branch...
shadow-4.18.0/lib/subordinateio.c:899:28: branch_true: ...to here
shadow-4.18.0/lib/subordinateio.c:887:25: throw: if 'commonio_next' throws an exception...
shadow-4.18.0/lib/subordinateio.c:887:25: danger: 'ranges' leaks here; was allocated at [(30)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/29)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
shadow-4.18.0/lib/sulog.c:35:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/sulog.c:34:12: branch_true: following 'true' branch (when 'success != 0')...
shadow-4.18.0/lib/sulog.c:35:17: branch_true: ...to here
shadow-4.18.0/lib/sulog.c:35:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/sulog.c:35:17: branch_true: ...to here
shadow-4.18.0/lib/sulog.c:35:17: acquire_memory: allocated here
shadow-4.18.0/lib/sulog.c:35:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/sulog.c:35:17: branch_true: ...to here
shadow-4.18.0/lib/sulog.c:35:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/sulog.c:35:17: danger: 'saved_locale' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
shadow-4.18.0/lib/sulog.c:38:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/sulog.c:34:12: branch_false: following 'false' branch (when 'success == 0')...
shadow-4.18.0/lib/sulog.c:38:17: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:38:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/sulog.c:38:17: branch_true: ...to here
shadow-4.18.0/lib/sulog.c:38:17: acquire_memory: allocated here
shadow-4.18.0/lib/sulog.c:38:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/sulog.c:38:17: branch_true: ...to here
shadow-4.18.0/lib/sulog.c:38:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/sulog.c:38:17: danger: 'saved_locale' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
shadow-4.18.0/lib/sulog.c:52:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/sulog.c:35:17: branch_false: following 'false' branch (when 'saved_locale' is NULL)...
shadow-4.18.0/lib/sulog.c:42:22: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:43:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/sulog.c:47:18: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:51:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/sulog.c:52:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/sulog.c:52:17: branch_true: ...to here
shadow-4.18.0/lib/sulog.c:52:17: acquire_memory: allocated here
shadow-4.18.0/lib/sulog.c:52:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/sulog.c:52:17: branch_true: ...to here
shadow-4.18.0/lib/sulog.c:52:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/sulog.c:52:17: danger: 'saved_locale' leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def169]
shadow-4.18.0/lib/sulog.c:59:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(getdef_str("SULOG_FILE"), "a+")'
shadow-4.18.0/lib/sulog.c:35:17: branch_false: following 'false' branch (when 'saved_locale' is NULL)...
shadow-4.18.0/lib/sulog.c:42:22: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:43:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/sulog.c:47:18: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:57:14: acquire_resource: opened here
shadow-4.18.0/lib/sulog.c:59:12: branch_true: following 'true' branch (when 'oldgid != 0')...
shadow-4.18.0/lib/sulog.c:59:31: branch_true: ...to here
shadow-4.18.0/lib/sulog.c:59:13: danger: 'fopen(getdef_str("SULOG_FILE"), "a+")' leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
shadow-4.18.0/lib/sulog.c:59:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(getdef_str("SULOG_FILE"), "a+")'
shadow-4.18.0/lib/sulog.c:35:17: branch_false: following 'false' branch (when 'saved_locale' is NULL)...
shadow-4.18.0/lib/sulog.c:42:22: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:43:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/sulog.c:47:18: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:57:14: acquire_memory: allocated here
shadow-4.18.0/lib/sulog.c:59:12: branch_true: following 'true' branch (when 'oldgid != 0')...
shadow-4.18.0/lib/sulog.c:59:31: branch_true: ...to here
shadow-4.18.0/lib/sulog.c:59:13: danger: 'fopen(getdef_str("SULOG_FILE"), "a+")' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
shadow-4.18.0/lib/sulog.c:61:17: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/sulog.c:35:17: branch_false: following 'false' branch (when 'saved_locale' is NULL)...
shadow-4.18.0/lib/sulog.c:42:22: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:43:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/sulog.c:47:18: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:59:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/sulog.c:61:17: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/sulog.c:61:17: branch_true: ...to here
shadow-4.18.0/lib/sulog.c:61:17: acquire_memory: allocated here
shadow-4.18.0/lib/sulog.c:61:17: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/sulog.c:61:17: branch_true: ...to here
shadow-4.18.0/lib/sulog.c:61:17: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/sulog.c:61:17: danger: 'saved_locale' leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def172]
shadow-4.18.0/lib/sulog.c:74:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(getdef_str("SULOG_FILE"), "a+")'
shadow-4.18.0/lib/sulog.c:35:17: branch_false: following 'false' branch (when 'saved_locale' is NULL)...
shadow-4.18.0/lib/sulog.c:42:22: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:43:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/sulog.c:47:18: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:57:14: acquire_resource: opened here
shadow-4.18.0/lib/sulog.c:67:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/sulog.c:71:15: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:78:16: throw: if 'fflush' throws an exception...
shadow-4.18.0/lib/sulog.c:74:9: danger: 'fopen(getdef_str("SULOG_FILE"), "a+")' leaks here; was opened at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
shadow-4.18.0/lib/sulog.c:74:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(getdef_str("SULOG_FILE"), "a+")'
shadow-4.18.0/lib/sulog.c:35:17: branch_false: following 'false' branch (when 'saved_locale' is NULL)...
shadow-4.18.0/lib/sulog.c:42:22: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:43:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/sulog.c:47:18: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:57:14: acquire_memory: allocated here
shadow-4.18.0/lib/sulog.c:67:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/sulog.c:71:15: branch_false: ...to here
shadow-4.18.0/lib/sulog.c:78:16: throw: if 'fflush' throws an exception...
shadow-4.18.0/lib/sulog.c:74:9: danger: 'fopen(getdef_str("SULOG_FILE"), "a+")' leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
shadow-4.18.0/lib/user_busy.c:188:17: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/proc")'
shadow-4.18.0/lib/user_busy.c:179:16: acquire_memory: allocated here
shadow-4.18.0/lib/user_busy.c:180:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/user_busy.c:187:13: branch_false: ...to here
shadow-4.18.0/lib/user_busy.c:187:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/user_busy.c:188:17: branch_true: ...to here
shadow-4.18.0/lib/user_busy.c:188:17: throw: if 'perror' throws an exception...
shadow-4.18.0/lib/user_busy.c:188:17: danger: 'opendir("/proc")' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
shadow-4.18.0/lib/user_busy.c:189:24: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/proc")'
shadow-4.18.0/lib/user_busy.c:179:16: acquire_memory: allocated here
shadow-4.18.0/lib/user_busy.c:180:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/user_busy.c:187:13: branch_false: ...to here
shadow-4.18.0/lib/user_busy.c:187:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/user_busy.c:188:17: branch_true: ...to here
shadow-4.18.0/lib/user_busy.c:189:24: danger: 'opendir("/proc")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
shadow-4.18.0/lib/user_busy.c:196:23: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/proc")'
shadow-4.18.0/lib/user_busy.c:179:16: acquire_memory: allocated here
shadow-4.18.0/lib/user_busy.c:180:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/user_busy.c:187:13: branch_false: ...to here
shadow-4.18.0/lib/user_busy.c:187:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/user_busy.c:187:12: branch_false: ...to here
shadow-4.18.0/lib/user_busy.c:196:23: throw: if 'readdir' throws an exception...
shadow-4.18.0/lib/user_busy.c:196:23: danger: 'opendir("/proc")' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
shadow-4.18.0/lib/utmp.c:102:25: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/utmp.c:90:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/utmp.c:99:14: branch_false: ...to here
shadow-4.18.0/lib/utmp.c:100:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/utmp.c:101:21: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:101:20: branch_true: following 'true' branch...
shadow-4.18.0/lib/utmp.c:102:25: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:102:25: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/utmp.c:102:25: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:102:25: acquire_memory: allocated here
shadow-4.18.0/lib/utmp.c:102:25: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/utmp.c:102:25: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:102:25: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/utmp.c:102:25: danger: 'saved_locale' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def178]
shadow-4.18.0/lib/utmp.c:113:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(getdef_str("FTMP_FILE"), 1025)'
shadow-4.18.0/lib/utmp.c:90:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/utmp.c:99:14: branch_false: ...to here
shadow-4.18.0/lib/utmp.c:99:14: acquire_resource: opened here
shadow-4.18.0/lib/utmp.c:100:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/utmp.c:113:13: branch_false: ...to here
shadow-4.18.0/lib/utmp.c:113:13: throw: if 'write_full' throws an exception...
shadow-4.18.0/lib/utmp.c:113:13: danger: 'open(getdef_str("FTMP_FILE"), 1025)' leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
shadow-4.18.0/lib/utmp.c:130:9: warning[-Wanalyzer-malloc-leak]: leak of 'saved_locale'
shadow-4.18.0/lib/utmp.c:90:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/utmp.c:99:14: branch_false: ...to here
shadow-4.18.0/lib/utmp.c:100:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/utmp.c:113:13: branch_false: ...to here
shadow-4.18.0/lib/utmp.c:130:9: branch_true: following 'true' branch (when 'old_locale' is non-NULL)...
shadow-4.18.0/lib/utmp.c:130:9: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:130:9: acquire_memory: allocated here
shadow-4.18.0/lib/utmp.c:130:9: branch_true: following 'true' branch (when 'saved_locale' is non-NULL)...
shadow-4.18.0/lib/utmp.c:130:9: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:130:9: throw: if 'syslog' throws an exception...
shadow-4.18.0/lib/utmp.c:130:9: danger: 'saved_locale' leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def180]
shadow-4.18.0/lib/utmp.c:174:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xreallocarray(0, 1, 384)' where non-null expected
shadow-4.18.0/lib/utmp.c:151:1: enter_function: entry to 'get_current_utmp'
shadow-4.18.0/lib/utmp.c:159:16: branch_true: following 'true' branch...
shadow-4.18.0/lib/utmp.c:160:25: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:166:24: call_function: calling 'is_my_tty' from 'get_current_utmp'
shadow-4.18.0/lib/utmp.c:166:24: return_function: returning to 'get_current_utmp' from 'is_my_tty'
shadow-4.18.0/lib/utmp.c:172:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/utmp.c:173:23: call_function: inlined call to 'xmallocarray' from 'get_current_utmp'
shadow-4.18.0/lib/utmp.c:174:17: danger: argument 1 ('xreallocarray(0, 1, 384)') from [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
shadow-4.18.0/lib/utmp.c:177:9: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
shadow-4.18.0/lib/utmp.c:151:1: enter_function: entry to 'get_current_utmp'
shadow-4.18.0/lib/utmp.c:159:16: branch_true: following 'true' branch...
shadow-4.18.0/lib/utmp.c:160:25: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:166:24: call_function: calling 'is_my_tty' from 'get_current_utmp'
shadow-4.18.0/lib/utmp.c:166:24: return_function: returning to 'get_current_utmp' from 'is_my_tty'
shadow-4.18.0/lib/utmp.c:172:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/utmp.c:173:23: call_function: inlined call to 'xmallocarray' from 'get_current_utmp'
shadow-4.18.0/lib/utmp.c:177:9: throw: if 'endutxent' throws an exception...
shadow-4.18.0/lib/utmp.c:177:9: danger: 'ret' leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def182]
shadow-4.18.0/lib/utmp.c:262:28: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xreallocarray(0, strnlen(&*ut.ut_host, 256) + 1, 1)' where non-null expected
shadow-4.18.0/lib/utmp.c:246:1: enter_function: entry to 'prepare_utmp'
shadow-4.18.0/lib/utmp.c:253:9: branch_true: following 'true' branch (when 'name' is non-NULL)...
shadow-4.18.0/lib/utmp.c:254:9: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:254:9: branch_true: following 'true' branch (when 'line' is non-NULL)...
shadow-4.18.0/lib/utmp.c:258:12: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:261:17: branch_true: following 'true' branch...
shadow-4.18.0/lib/utmp.c:262:28: call_function: inlined call to 'xmallocarray' from 'prepare_utmp'
shadow-4.18.0/lib/utmp.c:262:28: danger: argument 1 ('xreallocarray(0, strnlen(&*ut.ut_host, 256) + 1, 1)') from [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
shadow-4.18.0/lib/utmp.c:267:17: warning[-Wanalyzer-malloc-leak]: leak of 'hostname'
shadow-4.18.0/lib/utmp.c:246:1: enter_function: entry to 'prepare_utmp'
shadow-4.18.0/lib/utmp.c:253:9: branch_true: following 'true' branch (when 'name' is non-NULL)...
shadow-4.18.0/lib/utmp.c:254:9: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:254:9: branch_true: following 'true' branch (when 'line' is non-NULL)...
shadow-4.18.0/lib/utmp.c:258:12: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:258:12: branch_true: following 'true' branch (when 'host' is non-NULL)...
shadow-4.18.0/lib/utmp.c:258:30: call_function: inlined call to 'streq' from 'prepare_utmp'
shadow-4.18.0/lib/utmp.c:258:13: branch_true: following 'true' branch...
shadow-4.18.0/lib/utmp.c:259:28: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:259:28: call_function: calling 'xstrdup' from 'prepare_utmp'
shadow-4.18.0/lib/utmp.c:259:28: return_function: returning to 'prepare_utmp' from 'xstrdup'
shadow-4.18.0/lib/utmp.c:265:16: branch_false: following 'false' branch...
shadow-4.18.0/lib/utmp.c:265:16: branch_false: ...to here
shadow-4.18.0/lib/utmp.c:267:17: throw: if 'xcalloc' throws an exception...
shadow-4.18.0/lib/utmp.c:267:17: danger: 'hostname' leaks here; was allocated at [(14)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def184]
shadow-4.18.0/lib/utmp.c:270:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xcalloc(1, 384)'
shadow-4.18.0/lib/utmp.c:253:9: branch_true: following 'true' branch (when 'name' is non-NULL)...
shadow-4.18.0/lib/utmp.c:254:9: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:254:9: branch_true: following 'true' branch (when 'line' is non-NULL)...
shadow-4.18.0/lib/utmp.c:258:12: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:265:16: branch_false: following 'false' branch...
shadow-4.18.0/lib/utmp.c:265:16: branch_false: ...to here
shadow-4.18.0/lib/utmp.c:267:17: acquire_memory: this call could return NULL
shadow-4.18.0/lib/utmp.c:270:9: danger: 'xcalloc(1, 384)' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
shadow-4.18.0/lib/utmp.c:272:9: warning[-Wanalyzer-malloc-leak]: leak of 'prepare_utmp(failent_user, tty, hostname, get_current_utmp())'
shadow-4.18.0/lib/utmp.c:387:1: enter_function: entry to 'record_failure'
shadow-4.18.0/lib/utmp.c:391:12: branch_true: following 'true' branch...
shadow-4.18.0/lib/utmp.c:392:25: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:392:25: call_function: calling 'get_current_utmp' from 'record_failure'
shadow-4.18.0/lib/utmp.c:392:25: return_function: returning to 'record_failure' from 'get_current_utmp'
shadow-4.18.0/lib/utmp.c:393:27: call_function: calling 'prepare_utmp' from 'record_failure'
shadow-4.18.0/lib/utmp.c:393:27: return_function: returning to 'record_failure' from 'prepare_utmp'
shadow-4.18.0/lib/utmp.c:394:17: call_function: calling 'failtmp' from 'record_failure'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
shadow-4.18.0/lib/utmp.c:272:9: warning[-Wanalyzer-malloc-leak]: leak of 'prepare_utmp(user, tty, host, get_current_utmp())'
shadow-4.18.0/lib/utmp.c:370:1: enter_function: entry to 'update_utmp'
shadow-4.18.0/lib/utmp.c:374:17: call_function: calling 'get_current_utmp' from 'update_utmp'
shadow-4.18.0/lib/utmp.c:374:17: return_function: returning to 'update_utmp' from 'get_current_utmp'
shadow-4.18.0/lib/utmp.c:375:14: call_function: calling 'prepare_utmp' from 'update_utmp'
shadow-4.18.0/lib/utmp.c:375:14: return_function: returning to 'update_utmp' from 'prepare_utmp'
shadow-4.18.0/lib/utmp.c:377:16: call_function: calling 'setutmp' from 'update_utmp'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
shadow-4.18.0/lib/utmp.c:272:9: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(1, 384)'
shadow-4.18.0/lib/utmp.c:253:9: branch_true: following 'true' branch (when 'name' is non-NULL)...
shadow-4.18.0/lib/utmp.c:254:9: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:254:9: branch_true: following 'true' branch (when 'line' is non-NULL)...
shadow-4.18.0/lib/utmp.c:258:12: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:261:17: branch_true: following 'true' branch...
shadow-4.18.0/lib/utmp.c:265:16: branch_false: following 'false' branch...
shadow-4.18.0/lib/utmp.c:265:16: branch_false: ...to here
shadow-4.18.0/lib/utmp.c:267:17: acquire_memory: allocated here
shadow-4.18.0/lib/utmp.c:273:12: branch_true: following 'true' branch (when 'ut' is non-NULL)...
shadow-4.18.0/lib/utmp.c:274:17: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:283:12: branch_true: following 'true' branch (when 'hostname' is non-NULL)...
shadow-4.18.0/lib/utmp.c:284:34: branch_true: ...to here
shadow-4.18.0/lib/utmp.c:293:21: throw: if 'getaddrinfo' throws an exception...
shadow-4.18.0/lib/utmp.c:272:9: danger: 'xcalloc(1, 384)' leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
shadow-4.18.0/lib/utmp.c:293:21: warning[-Wanalyzer-malloc-leak]: leak of 'hostname'
shadow-4.18.0/lib/utmp.c:370:1: enter_function: entry to 'update_utmp'
shadow-4.18.0/lib/utmp.c:374:17: call_function: calling 'get_current_utmp' from 'update_utmp'
shadow-4.18.0/lib/utmp.c:374:17: return_function: returning to 'update_utmp' from 'get_current_utmp'
shadow-4.18.0/lib/utmp.c:375:14: call_function: calling 'prepare_utmp' from 'update_utmp'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
shadow-4.18.0/lib/xgetXXbyYY.c:64:26: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarray(0, 1, 32)'
shadow-4.18.0/lib/xgetXXbyYY.c:48:35: enter_function: entry to 'xgetgrnam'
shadow-4.18.0/lib/xgetXXbyYY.c:56:18: call_function: inlined call to 'mallocarray' from 'xgetgrnam'
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: ...to here
shadow-4.18.0/lib/xgetXXbyYY.c:64:26: throw: if 'xreallocarray' throws an exception...
shadow-4.18.0/lib/xgetXXbyYY.c:64:26: danger: 'reallocarray(0, 1, 32)' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
shadow-4.18.0/lib/xgetXXbyYY.c:64:26: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarray(0, 1, 48)'
shadow-4.18.0/lib/xgetXXbyYY.c:48:35: enter_function: entry to 'xgetpwnam'
shadow-4.18.0/lib/xgetXXbyYY.c:56:18: call_function: inlined call to 'mallocarray' from 'xgetpwnam'
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: ...to here
shadow-4.18.0/lib/xgetXXbyYY.c:64:26: throw: if 'xreallocarray' throws an exception...
shadow-4.18.0/lib/xgetXXbyYY.c:64:26: danger: 'reallocarray(0, 1, 48)' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
shadow-4.18.0/lib/xgetXXbyYY.c:64:26: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarray(0, 1, 72)'
shadow-4.18.0/lib/xgetXXbyYY.c:48:35: enter_function: entry to 'xgetspnam'
shadow-4.18.0/lib/xgetXXbyYY.c:56:18: call_function: inlined call to 'mallocarray' from 'xgetspnam'
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: ...to here
shadow-4.18.0/lib/xgetXXbyYY.c:64:26: throw: if 'xreallocarray' throws an exception...
shadow-4.18.0/lib/xgetXXbyYY.c:64:26: danger: 'reallocarray(0, 1, 72)' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarray(0, 1, 32)'
shadow-4.18.0/lib/xgetXXbyYY.c:48:35: enter_function: entry to 'xgetgrnam'
shadow-4.18.0/lib/xgetXXbyYY.c:56:18: call_function: inlined call to 'mallocarray' from 'xgetgrnam'
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: ...to here
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: throw: if 'getgrnam_r' throws an exception...
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: danger: 'reallocarray(0, 1, 32)' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarray(0, 1, 48)'
shadow-4.18.0/lib/xgetXXbyYY.c:48:35: enter_function: entry to 'xgetpwnam'
shadow-4.18.0/lib/xgetXXbyYY.c:56:18: call_function: inlined call to 'mallocarray' from 'xgetpwnam'
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: ...to here
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: throw: if 'getpwnam_r' throws an exception...
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: danger: 'reallocarray(0, 1, 48)' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: warning[-Wanalyzer-malloc-leak]: leak of 'reallocarray(0, 1, 72)'
shadow-4.18.0/lib/xgetXXbyYY.c:48:35: enter_function: entry to 'xgetspnam'
shadow-4.18.0/lib/xgetXXbyYY.c:56:18: call_function: inlined call to 'mallocarray' from 'xgetspnam'
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: ...to here
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: throw: if 'getspnam_r' throws an exception...
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: danger: 'reallocarray(0, 1, 72)' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: warning[-Wanalyzer-malloc-leak]: leak of 'xreallocarray(buffer, length, 1)'
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: ...to here
shadow-4.18.0/lib/xgetXXbyYY.c:64:26: acquire_memory: allocated here
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: throw: if 'getpwnam_r' throws an exception...
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: danger: 'xreallocarray(buffer, length, 1)' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def196]
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xreallocarray(buffer, length, 1)' where non-null expected
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: following 'false' branch...
shadow-4.18.0/lib/xgetXXbyYY.c:57:12: branch_false: ...to here
shadow-4.18.0/lib/xgetXXbyYY.c:64:26: acquire_memory: this call could return NULL
shadow-4.18.0/lib/xgetXXbyYY.c:65:26: danger: argument 3 ('xreallocarray(buffer, length, 1)') from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
shadow-4.18.0/libsubid/api.c:29:17: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
shadow-4.18.0/libsubid/api.c:25:12: branch_true: following 'true' branch (when 'progname' is non-NULL)...
shadow-4.18.0/libsubid/api.c:26:28: branch_true: ...to here
shadow-4.18.0/libsubid/api.c:26:28: acquire_memory: allocated here
shadow-4.18.0/libsubid/api.c:27:20: branch_false: following 'false' branch (when 'progname' is non-NULL)...
shadow-4.18.0/libsubid/api.c:29:17: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:29:17: throw: if 'log_set_progname' throws an exception...
shadow-4.18.0/libsubid/api.c:29:17: danger: 'progname' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
shadow-4.18.0/libsubid/api.c:35:17: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
shadow-4.18.0/libsubid/api.c:25:12: branch_true: following 'true' branch (when 'progname' is non-NULL)...
shadow-4.18.0/libsubid/api.c:26:28: branch_true: ...to here
shadow-4.18.0/libsubid/api.c:26:28: acquire_memory: allocated here
shadow-4.18.0/libsubid/api.c:27:20: branch_false: following 'false' branch (when 'progname' is non-NULL)...
shadow-4.18.0/libsubid/api.c:29:17: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:34:12: branch_true: following 'true' branch (when 'logfd' is non-NULL)...
shadow-4.18.0/libsubid/api.c:35:17: branch_true: ...to here
shadow-4.18.0/libsubid/api.c:35:17: throw: if 'log_set_logfd' throws an exception...
shadow-4.18.0/libsubid/api.c:35:17: danger: 'progname' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
shadow-4.18.0/libsubid/api.c:40:17: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
shadow-4.18.0/libsubid/api.c:25:12: branch_true: following 'true' branch (when 'progname' is non-NULL)...
shadow-4.18.0/libsubid/api.c:26:28: branch_true: ...to here
shadow-4.18.0/libsubid/api.c:26:28: acquire_memory: allocated here
shadow-4.18.0/libsubid/api.c:27:20: branch_false: following 'false' branch (when 'progname' is non-NULL)...
shadow-4.18.0/libsubid/api.c:29:17: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:34:12: branch_false: following 'false' branch (when 'logfd' is NULL)...
shadow-4.18.0/libsubid/api.c:38:24: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:39:12: branch_true: following 'true' branch...
shadow-4.18.0/libsubid/api.c:40:17: branch_true: ...to here
shadow-4.18.0/libsubid/api.c:40:17: throw: if 'log_set_logfd' throws an exception...
shadow-4.18.0/libsubid/api.c:40:17: danger: 'progname' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def200]
shadow-4.18.0/libsubid/api.c:43:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen("/dev/null", "w")'
shadow-4.18.0/libsubid/api.c:25:12: branch_false: following 'false' branch (when 'progname' is NULL)...
shadow-4.18.0/libsubid/api.c:31:17: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:34:12: branch_false: following 'false' branch (when 'logfd' is NULL)...
shadow-4.18.0/libsubid/api.c:38:24: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:38:24: acquire_resource: opened here
shadow-4.18.0/libsubid/api.c:39:12: branch_false: following 'false' branch...
shadow-4.18.0/libsubid/api.c:43:9: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:43:9: danger: 'fopen("/dev/null", "w")' leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
shadow-4.18.0/libsubid/api.c:43:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen("/dev/null", "w")'
shadow-4.18.0/libsubid/api.c:25:12: branch_false: following 'false' branch (when 'progname' is NULL)...
shadow-4.18.0/libsubid/api.c:31:17: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:34:12: branch_false: following 'false' branch (when 'logfd' is NULL)...
shadow-4.18.0/libsubid/api.c:38:24: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:38:24: acquire_memory: allocated here
shadow-4.18.0/libsubid/api.c:39:12: branch_false: following 'false' branch...
shadow-4.18.0/libsubid/api.c:43:9: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:43:9: danger: 'fopen("/dev/null", "w")' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
shadow-4.18.0/libsubid/api.c:43:9: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
shadow-4.18.0/libsubid/api.c:25:12: branch_true: following 'true' branch (when 'progname' is non-NULL)...
shadow-4.18.0/libsubid/api.c:26:28: branch_true: ...to here
shadow-4.18.0/libsubid/api.c:26:28: acquire_memory: allocated here
shadow-4.18.0/libsubid/api.c:27:20: branch_false: following 'false' branch (when 'progname' is non-NULL)...
shadow-4.18.0/libsubid/api.c:29:17: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:34:12: branch_false: following 'false' branch (when 'logfd' is NULL)...
shadow-4.18.0/libsubid/api.c:38:24: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:39:12: branch_false: following 'false' branch...
shadow-4.18.0/libsubid/api.c:43:9: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:43:9: throw: if 'log_set_logfd' throws an exception...
shadow-4.18.0/libsubid/api.c:43:9: danger: 'progname' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
shadow-4.18.0/libsubid/api.c:45:1: warning[-Wanalyzer-malloc-leak]: leak of 'progname'
shadow-4.18.0/libsubid/api.c:25:12: branch_true: following 'true' branch (when 'progname' is non-NULL)...
shadow-4.18.0/libsubid/api.c:26:28: branch_true: ...to here
shadow-4.18.0/libsubid/api.c:26:28: acquire_memory: allocated here
shadow-4.18.0/libsubid/api.c:27:20: branch_false: following 'false' branch (when 'progname' is non-NULL)...
shadow-4.18.0/libsubid/api.c:29:17: branch_false: ...to here
shadow-4.18.0/libsubid/api.c:45:1: danger: 'progname' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
shadow-4.18.0/src/chage.c:99:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chage.c:96:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chage.c:97:21: branch_true: ...to here
shadow-4.18.0/src/chage.c:97:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chage.c:98:25: branch_true: ...to here
shadow-4.18.0/src/chage.c:99:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:99:25: branch_true: ...to here
shadow-4.18.0/src/chage.c:99:25: acquire_memory: allocated here
shadow-4.18.0/src/chage.c:99:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:99:25: branch_true: ...to here
shadow-4.18.0/src/chage.c:99:25: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/chage.c:99:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
shadow-4.18.0/src/chage.c:106:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chage.c:103:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chage.c:104:21: branch_true: ...to here
shadow-4.18.0/src/chage.c:104:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chage.c:105:25: branch_true: ...to here
shadow-4.18.0/src/chage.c:106:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:106:25: branch_true: ...to here
shadow-4.18.0/src/chage.c:106:25: acquire_memory: allocated here
shadow-4.18.0/src/chage.c:106:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:106:25: branch_true: ...to here
shadow-4.18.0/src/chage.c:106:25: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chage.c:106:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
shadow-4.18.0/src/chage.c:513:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chage.c:511:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chage.c:512:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:513:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:513:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:513:17: acquire_memory: allocated here
shadow-4.18.0/src/chage.c:513:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:513:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:513:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chage.c:513:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
shadow-4.18.0/src/chage.c:535:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chage.c:511:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chage.c:523:12: branch_false: ...to here
shadow-4.18.0/src/chage.c:532:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chage.c:533:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:535:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:535:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:535:17: acquire_memory: allocated here
shadow-4.18.0/src/chage.c:535:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:535:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:535:17: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/chage.c:535:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
shadow-4.18.0/src/chage.c:552:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chage.c:549:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chage.c:550:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:552:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:552:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:552:17: acquire_memory: allocated here
shadow-4.18.0/src/chage.c:552:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:552:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:552:17: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/chage.c:552:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
shadow-4.18.0/src/chage.c:562:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chage.c:549:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chage.c:560:13: branch_false: ...to here
shadow-4.18.0/src/chage.c:560:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chage.c:561:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:562:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:562:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:562:17: acquire_memory: allocated here
shadow-4.18.0/src/chage.c:562:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:562:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:562:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chage.c:562:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
shadow-4.18.0/src/chage.c:567:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chage.c:549:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chage.c:560:13: branch_false: ...to here
shadow-4.18.0/src/chage.c:560:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chage.c:565:13: branch_false: ...to here
shadow-4.18.0/src/chage.c:565:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chage.c:566:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:567:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:567:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:567:17: acquire_memory: allocated here
shadow-4.18.0/src/chage.c:567:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:567:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:567:17: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/chage.c:567:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
shadow-4.18.0/src/chage.c:573:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chage.c:549:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chage.c:560:13: branch_false: ...to here
shadow-4.18.0/src/chage.c:560:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chage.c:565:13: branch_false: ...to here
shadow-4.18.0/src/chage.c:571:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chage.c:572:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:573:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:573:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:573:17: acquire_memory: allocated here
shadow-4.18.0/src/chage.c:573:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:573:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:573:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chage.c:573:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
shadow-4.18.0/src/chage.c:599:43: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/chage.c:584:13: enter_function: entry to ‘update_age’
shadow-4.18.0/src/chage.c:594:12: branch_true: following ‘true’ branch (when ‘sp’ is NULL)...
shadow-4.18.0/src/chage.c:595:31: branch_true: ...to here
shadow-4.18.0/src/chage.c:598:34: call_function: calling ‘xstrdup’ from ‘update_age’
shadow-4.18.0/src/chage.c:598:34: return_function: returning to ‘update_age’ from ‘xstrdup’
shadow-4.18.0/src/chage.c:599:34: call_function: calling ‘xstrdup’ from ‘update_age’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
shadow-4.18.0/src/chage.c:603:21: warning[-Wanalyzer-malloc-leak]: leak of ‘spwent.sp_pwdp’
shadow-4.18.0/src/chage.c:584:13: enter_function: entry to ‘update_age’
shadow-4.18.0/src/chage.c:594:12: branch_true: following ‘true’ branch (when ‘sp’ is NULL)...
shadow-4.18.0/src/chage.c:595:31: branch_true: ...to here
shadow-4.18.0/src/chage.c:598:34: call_function: calling ‘xstrdup’ from ‘update_age’
shadow-4.18.0/src/chage.c:598:34: return_function: returning to ‘update_age’ from ‘xstrdup’
shadow-4.18.0/src/chage.c:599:34: call_function: calling ‘xstrdup’ from ‘update_age’
shadow-4.18.0/src/chage.c:599:34: return_function: returning to ‘update_age’ from ‘xstrdup’
shadow-4.18.0/src/chage.c:603:21: throw: if ‘pw_update’ throws an exception...
shadow-4.18.0/src/chage.c:603:21: danger: ‘spwent.sp_pwdp’ leaks here; was allocated at [(13)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
shadow-4.18.0/src/chage.c:610:43: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/chage.c:584:13: enter_function: entry to ‘update_age’
shadow-4.18.0/src/chage.c:594:12: branch_false: following ‘false’ branch (when ‘sp’ is non-NULL)...
shadow-4.18.0/src/chage.c:609:43: branch_false: ...to here
shadow-4.18.0/src/chage.c:609:34: call_function: calling ‘xstrdup’ from ‘update_age’
shadow-4.18.0/src/chage.c:609:34: return_function: returning to ‘update_age’ from ‘xstrdup’
shadow-4.18.0/src/chage.c:610:34: call_function: calling ‘xstrdup’ from ‘update_age’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
shadow-4.18.0/src/chage.c:626:13: warning[-Wanalyzer-malloc-leak]: leak of ‘spwent.sp_pwdp’
shadow-4.18.0/src/chage.c:584:13: enter_function: entry to ‘update_age’
shadow-4.18.0/src/chage.c:594:12: branch_false: following ‘false’ branch (when ‘sp’ is non-NULL)...
shadow-4.18.0/src/chage.c:609:43: branch_false: ...to here
shadow-4.18.0/src/chage.c:609:34: call_function: calling ‘xstrdup’ from ‘update_age’
shadow-4.18.0/src/chage.c:609:34: return_function: returning to ‘update_age’ from ‘xstrdup’
shadow-4.18.0/src/chage.c:610:34: call_function: calling ‘xstrdup’ from ‘update_age’
shadow-4.18.0/src/chage.c:610:34: return_function: returning to ‘update_age’ from ‘xstrdup’
shadow-4.18.0/src/chage.c:626:13: throw: if ‘spw_update’ throws an exception...
shadow-4.18.0/src/chage.c:626:13: danger: ‘spwent.sp_pwdp’ leaks here; was allocated at [(13)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
shadow-4.18.0/src/chage.c:751:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chage.c:709:5: enter_function: entry to ‘main’
shadow-4.18.0/src/chage.c:743:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/chage.c:743:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/chage.c:747:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chage.c:749:26: branch_false: ...to here
shadow-4.18.0/src/chage.c:751:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:751:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:751:17: acquire_memory: allocated here
shadow-4.18.0/src/chage.c:751:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chage.c:751:17: branch_true: ...to here
shadow-4.18.0/src/chage.c:751:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/chage.c:751:17: danger: ‘saved_locale’ leaks here; was allocated at [(14)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
shadow-4.18.0/src/chfn.c:84:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chfn.c:81:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chfn.c:82:21: branch_true: ...to here
shadow-4.18.0/src/chfn.c:82:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chfn.c:83:25: branch_true: ...to here
shadow-4.18.0/src/chfn.c:84:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:84:25: branch_true: ...to here
shadow-4.18.0/src/chfn.c:84:25: acquire_memory: allocated here
shadow-4.18.0/src/chfn.c:84:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:84:25: branch_true: ...to here
shadow-4.18.0/src/chfn.c:84:25: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chfn.c:84:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
shadow-4.18.0/src/chfn.c:411:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chfn.c:391:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:398:35: branch_false: ...to here
shadow-4.18.0/src/chfn.c:411:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:411:17: branch_true: ...to here
shadow-4.18.0/src/chfn.c:411:17: acquire_memory: allocated here
shadow-4.18.0/src/chfn.c:411:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:411:17: branch_true: ...to here
shadow-4.18.0/src/chfn.c:411:17: throw: if ‘pam_strerror’ throws an exception...
shadow-4.18.0/src/chfn.c:411:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
shadow-4.18.0/src/chfn.c:439:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chfn.c:437:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chfn.c:438:17: branch_true: ...to here
shadow-4.18.0/src/chfn.c:439:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:439:17: branch_true: ...to here
shadow-4.18.0/src/chfn.c:439:17: acquire_memory: allocated here
shadow-4.18.0/src/chfn.c:439:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:439:17: branch_true: ...to here
shadow-4.18.0/src/chfn.c:439:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/chfn.c:439:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
shadow-4.18.0/src/chfn.c:498:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chfn.c:437:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:442:9: branch_false: ...to here
shadow-4.18.0/src/chfn.c:448:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:454:9: branch_false: ...to here
shadow-4.18.0/src/chfn.c:455:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:467:14: branch_false: ...to here
shadow-4.18.0/src/chfn.c:468:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:479:9: branch_false: ...to here
shadow-4.18.0/src/chfn.c:486:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:496:13: branch_false: ...to here
shadow-4.18.0/src/chfn.c:496:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chfn.c:497:17: branch_true: ...to here
shadow-4.18.0/src/chfn.c:498:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:498:17: branch_true: ...to here
shadow-4.18.0/src/chfn.c:498:17: acquire_memory: allocated here
shadow-4.18.0/src/chfn.c:498:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:498:17: branch_true: ...to here
shadow-4.18.0/src/chfn.c:498:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chfn.c:498:17: danger: ‘saved_locale’ leaks here; was allocated at [(15)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
shadow-4.18.0/src/chfn.c:503:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chfn.c:437:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:442:9: branch_false: ...to here
shadow-4.18.0/src/chfn.c:448:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:454:9: branch_false: ...to here
shadow-4.18.0/src/chfn.c:455:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:467:14: branch_false: ...to here
shadow-4.18.0/src/chfn.c:468:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:479:9: branch_false: ...to here
shadow-4.18.0/src/chfn.c:486:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:496:13: branch_false: ...to here
shadow-4.18.0/src/chfn.c:496:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:501:13: branch_false: ...to here
shadow-4.18.0/src/chfn.c:501:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chfn.c:502:17: branch_true: ...to here
shadow-4.18.0/src/chfn.c:503:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:503:17: branch_true: ...to here
shadow-4.18.0/src/chfn.c:503:17: acquire_memory: allocated here
shadow-4.18.0/src/chfn.c:503:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:503:17: branch_true: ...to here
shadow-4.18.0/src/chfn.c:503:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chfn.c:503:17: danger: ‘saved_locale’ leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
shadow-4.18.0/src/chfn.c:671:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chfn.c:653:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chfn.c:666:22: branch_false: ...to here
shadow-4.18.0/src/chfn.c:667:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chfn.c:669:34: branch_true: ...to here
shadow-4.18.0/src/chfn.c:671:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:671:25: branch_true: ...to here
shadow-4.18.0/src/chfn.c:671:25: acquire_memory: allocated here
shadow-4.18.0/src/chfn.c:671:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chfn.c:671:25: branch_true: ...to here
shadow-4.18.0/src/chfn.c:671:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/chfn.c:671:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
shadow-4.18.0/src/chgpasswd.c:87:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chgpasswd.c:84:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chgpasswd.c:85:21: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:85:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chgpasswd.c:86:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:87:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:87:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:87:25: acquire_memory: allocated here
shadow-4.18.0/src/chgpasswd.c:87:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:87:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:87:25: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/chgpasswd.c:87:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
shadow-4.18.0/src/chgpasswd.c:96:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chgpasswd.c:93:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chgpasswd.c:94:21: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:94:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chgpasswd.c:95:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:96:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:96:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:96:25: acquire_memory: allocated here
shadow-4.18.0/src/chgpasswd.c:96:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:96:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:96:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/chgpasswd.c:96:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
shadow-4.18.0/src/chgpasswd.c:388:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chgpasswd.c:383:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chgpasswd.c:384:21: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:384:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chgpasswd.c:385:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:388:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:388:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:388:25: acquire_memory: allocated here
shadow-4.18.0/src/chgpasswd.c:388:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:388:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:388:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/chgpasswd.c:388:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
shadow-4.18.0/src/chgpasswd.c:393:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chgpasswd.c:383:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chgpasswd.c:384:21: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:384:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chgpasswd.c:391:21: branch_false: ...to here
shadow-4.18.0/src/chgpasswd.c:391:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chgpasswd.c:392:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:393:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:393:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:393:25: acquire_memory: allocated here
shadow-4.18.0/src/chgpasswd.c:393:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:393:25: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:393:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/chgpasswd.c:393:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
shadow-4.18.0/src/chgpasswd.c:404:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chgpasswd.c:400:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chgpasswd.c:401:17: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:404:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:404:17: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:404:17: acquire_memory: allocated here
shadow-4.18.0/src/chgpasswd.c:404:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:404:17: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:404:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/chgpasswd.c:404:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
shadow-4.18.0/src/chgpasswd.c:409:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chgpasswd.c:400:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chgpasswd.c:407:13: branch_false: ...to here
shadow-4.18.0/src/chgpasswd.c:407:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chgpasswd.c:408:17: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:409:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:409:17: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:409:17: acquire_memory: allocated here
shadow-4.18.0/src/chgpasswd.c:409:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chgpasswd.c:409:17: branch_true: ...to here
shadow-4.18.0/src/chgpasswd.c:409:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/chgpasswd.c:409:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
shadow-4.18.0/src/chpasswd.c:86:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chpasswd.c:338:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/chpasswd.c:344:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chpasswd.c:345:17: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:348:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
shadow-4.18.0/src/chpasswd.c:94:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chpasswd.c:338:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/chpasswd.c:344:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chpasswd.c:345:17: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:348:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
shadow-4.18.0/src/chpasswd.c:385:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chpasswd.c:380:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chpasswd.c:381:21: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:381:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chpasswd.c:382:25: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:385:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chpasswd.c:385:25: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:385:25: acquire_memory: allocated here
shadow-4.18.0/src/chpasswd.c:385:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chpasswd.c:385:25: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:385:25: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/chpasswd.c:385:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
shadow-4.18.0/src/chpasswd.c:390:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chpasswd.c:380:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chpasswd.c:381:21: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:381:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chpasswd.c:388:21: branch_false: ...to here
shadow-4.18.0/src/chpasswd.c:388:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chpasswd.c:389:25: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:390:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chpasswd.c:390:25: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:390:25: acquire_memory: allocated here
shadow-4.18.0/src/chpasswd.c:390:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chpasswd.c:390:25: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:390:25: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/chpasswd.c:390:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
shadow-4.18.0/src/chpasswd.c:400:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chpasswd.c:396:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chpasswd.c:397:17: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:400:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chpasswd.c:400:17: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:400:17: acquire_memory: allocated here
shadow-4.18.0/src/chpasswd.c:400:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chpasswd.c:400:17: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:400:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chpasswd.c:400:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
shadow-4.18.0/src/chpasswd.c:405:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chpasswd.c:396:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chpasswd.c:403:13: branch_false: ...to here
shadow-4.18.0/src/chpasswd.c:403:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chpasswd.c:404:17: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:405:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chpasswd.c:405:17: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:405:17: acquire_memory: allocated here
shadow-4.18.0/src/chpasswd.c:405:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chpasswd.c:405:17: branch_true: ...to here
shadow-4.18.0/src/chpasswd.c:405:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chpasswd.c:405:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
shadow-4.18.0/src/chsh.c:83:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chsh.c:80:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chsh.c:81:21: branch_true: ...to here
shadow-4.18.0/src/chsh.c:81:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chsh.c:82:25: branch_true: ...to here
shadow-4.18.0/src/chsh.c:83:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:83:25: branch_true: ...to here
shadow-4.18.0/src/chsh.c:83:25: acquire_memory: allocated here
shadow-4.18.0/src/chsh.c:83:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:83:25: branch_true: ...to here
shadow-4.18.0/src/chsh.c:83:25: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chsh.c:83:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
shadow-4.18.0/src/chsh.c:279:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chsh.c:278:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:278:24: branch_false: ...to here
shadow-4.18.0/src/chsh.c:278:13: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chsh.c:279:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:279:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:279:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:279:17: acquire_memory: allocated here
shadow-4.18.0/src/chsh.c:279:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:279:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:279:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/chsh.c:279:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
shadow-4.18.0/src/chsh.c:291:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chsh.c:278:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:290:13: branch_false: ...to here
shadow-4.18.0/src/chsh.c:290:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:291:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:291:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:291:17: acquire_memory: allocated here
shadow-4.18.0/src/chsh.c:291:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:291:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:291:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/chsh.c:291:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
shadow-4.18.0/src/chsh.c:304:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chsh.c:302:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chsh.c:303:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:302:13: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chsh.c:304:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:304:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:304:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:304:17: acquire_memory: allocated here
shadow-4.18.0/src/chsh.c:304:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:304:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:304:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/chsh.c:304:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
shadow-4.18.0/src/chsh.c:345:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chsh.c:325:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:332:35: branch_false: ...to here
shadow-4.18.0/src/chsh.c:345:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:345:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:345:17: acquire_memory: allocated here
shadow-4.18.0/src/chsh.c:345:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:345:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:345:17: throw: if ‘pam_strerror’ throws an exception...
shadow-4.18.0/src/chsh.c:345:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
shadow-4.18.0/src/chsh.c:374:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chsh.c:373:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chsh.c:374:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:374:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:374:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:374:17: acquire_memory: allocated here
shadow-4.18.0/src/chsh.c:374:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:374:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:374:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/chsh.c:374:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
shadow-4.18.0/src/chsh.c:392:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chsh.c:373:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:378:9: branch_false: ...to here
shadow-4.18.0/src/chsh.c:384:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:389:9: branch_false: ...to here
shadow-4.18.0/src/chsh.c:390:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chsh.c:391:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:392:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:392:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:392:17: acquire_memory: allocated here
shadow-4.18.0/src/chsh.c:392:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:392:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:392:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chsh.c:392:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
shadow-4.18.0/src/chsh.c:433:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chsh.c:373:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:378:9: branch_false: ...to here
shadow-4.18.0/src/chsh.c:384:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:389:9: branch_false: ...to here
shadow-4.18.0/src/chsh.c:390:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:402:14: branch_false: ...to here
shadow-4.18.0/src/chsh.c:403:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:414:9: branch_false: ...to here
shadow-4.18.0/src/chsh.c:421:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:431:13: branch_false: ...to here
shadow-4.18.0/src/chsh.c:431:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chsh.c:432:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:433:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:433:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:433:17: acquire_memory: allocated here
shadow-4.18.0/src/chsh.c:433:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:433:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:433:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chsh.c:433:17: danger: ‘saved_locale’ leaks here; was allocated at [(15)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
shadow-4.18.0/src/chsh.c:438:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chsh.c:373:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:378:9: branch_false: ...to here
shadow-4.18.0/src/chsh.c:384:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:389:9: branch_false: ...to here
shadow-4.18.0/src/chsh.c:390:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:402:14: branch_false: ...to here
shadow-4.18.0/src/chsh.c:403:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:414:9: branch_false: ...to here
shadow-4.18.0/src/chsh.c:421:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:431:13: branch_false: ...to here
shadow-4.18.0/src/chsh.c:431:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:436:13: branch_false: ...to here
shadow-4.18.0/src/chsh.c:436:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chsh.c:437:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:438:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:438:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:438:17: acquire_memory: allocated here
shadow-4.18.0/src/chsh.c:438:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:438:17: branch_true: ...to here
shadow-4.18.0/src/chsh.c:438:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/chsh.c:438:17: danger: ‘saved_locale’ leaks here; was allocated at [(17)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
shadow-4.18.0/src/chsh.c:499:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/chsh.c:450:5: enter_function: entry to ‘main’
shadow-4.18.0/src/chsh.c:475:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/chsh.c:475:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/chsh.c:481:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/chsh.c:494:22: branch_false: ...to here
shadow-4.18.0/src/chsh.c:495:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/chsh.c:497:34: branch_true: ...to here
shadow-4.18.0/src/chsh.c:499:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:499:25: branch_true: ...to here
shadow-4.18.0/src/chsh.c:499:25: acquire_memory: allocated here
shadow-4.18.0/src/chsh.c:499:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/chsh.c:499:25: branch_true: ...to here
shadow-4.18.0/src/chsh.c:499:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/chsh.c:499:25: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
shadow-4.18.0/src/expiry.c:161:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/expiry.c:123:5: enter_function: entry to ‘main’
shadow-4.18.0/src/expiry.c:152:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/expiry.c:152:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/expiry.c:158:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/expiry.c:159:34: branch_true: ...to here
shadow-4.18.0/src/expiry.c:161:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/expiry.c:161:17: branch_true: ...to here
shadow-4.18.0/src/expiry.c:161:17: acquire_memory: allocated here
shadow-4.18.0/src/expiry.c:161:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/expiry.c:161:17: branch_true: ...to here
shadow-4.18.0/src/expiry.c:161:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/expiry.c:161:17: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-908): [#def246]
shadow-4.18.0/src/faillog.c:677: error[useClosedFile]: Used file that is not opened.
Error: COMPILER_WARNING (CWE-252): [#def247]
shadow-4.18.0/src/gpasswd.c: scope_hint: In function ‘catch_signals’
shadow-4.18.0/src/gpasswd.c:162:24: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
shadow-4.18.0/src/gpasswd.c:192:21: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpusers’
shadow-4.18.0/src/gpasswd.c:175:13: enter_function: entry to ‘is_valid_user_list’
shadow-4.18.0/src/gpasswd.c:180:26: call_function: calling ‘xstrdup’ from ‘is_valid_user_list’
shadow-4.18.0/src/gpasswd.c:180:26: return_function: returning to ‘is_valid_user_list’ from ‘xstrdup’
shadow-4.18.0/src/gpasswd.c:182:16: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:182:37: call_function: inlined call to ‘streq’ from ‘is_valid_user_list’
shadow-4.18.0/src/gpasswd.c:182:16: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:185:21: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:192:21: throw: if ‘getpwnam’ throws an exception...
shadow-4.18.0/src/gpasswd.c:192:21: danger: ‘tmpusers’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
shadow-4.18.0/src/gpasswd.c:362:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:336:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:342:9: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:358:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:359:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:362:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:362:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:362:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:362:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:362:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:362:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/gpasswd.c:362:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
shadow-4.18.0/src/gpasswd.c:372:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:336:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:342:9: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:346:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:352:17: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:358:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:367:13: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:367:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:368:21: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:368:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:369:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:372:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:372:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:372:25: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:372:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:372:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:372:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/gpasswd.c:372:25: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
shadow-4.18.0/src/gpasswd.c:386:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:385:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:386:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:386:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:386:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:386:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:386:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:386:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:386:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:386:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
shadow-4.18.0/src/gpasswd.c:396:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:385:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:395:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:395:19: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:396:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:396:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:396:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:396:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:396:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:396:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:396:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:396:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
shadow-4.18.0/src/gpasswd.c:406:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:385:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:395:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:395:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:405:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:405:19: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:406:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:406:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:406:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:406:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:406:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:406:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:406:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:406:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
shadow-4.18.0/src/gpasswd.c:416:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:385:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:395:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:395:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:405:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:405:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:415:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:415:19: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:416:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:416:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:416:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:416:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:416:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:416:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:416:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:416:17: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
shadow-4.18.0/src/gpasswd.c:428:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:385:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:395:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:395:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:405:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:405:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:415:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:415:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:425:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:427:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:428:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:428:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:428:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:428:25: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:428:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:428:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:428:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:428:25: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
shadow-4.18.0/src/gpasswd.c:440:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:385:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:395:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:395:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:405:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:405:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:415:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:415:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:425:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:425:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:427:20: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:439:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:440:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:440:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:440:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:440:25: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:440:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:440:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:440:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:440:25: danger: ‘saved_locale’ leaks here; was allocated at [(15)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
shadow-4.18.0/src/gpasswd.c:451:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:385:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:395:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:395:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:405:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:405:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:415:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:415:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:425:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:425:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:451:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:451:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:451:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:451:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:451:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:451:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:451:17: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
shadow-4.18.0/src/gpasswd.c:493:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:492:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:493:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:493:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:493:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:493:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:493:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:493:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:493:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:493:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
shadow-4.18.0/src/gpasswd.c:503:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:492:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:502:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:502:19: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:503:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:503:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:503:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:503:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:503:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:503:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:503:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:503:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
shadow-4.18.0/src/gpasswd.c:513:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:492:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:502:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:502:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:512:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:512:19: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:513:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:513:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:513:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:513:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:513:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:513:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:513:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:513:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
shadow-4.18.0/src/gpasswd.c:525:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:492:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:502:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:502:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:512:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:512:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:524:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:524:19: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:525:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:525:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:525:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:525:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:525:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:525:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:525:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:525:17: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
shadow-4.18.0/src/gpasswd.c:539:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:492:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:502:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:502:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:512:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:512:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:524:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:524:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:536:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:538:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:539:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:539:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:539:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:539:25: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:539:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:539:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:539:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:539:25: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
shadow-4.18.0/src/gpasswd.c:551:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:492:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:502:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:502:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:512:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:512:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:524:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:524:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:536:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:536:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:538:20: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:550:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:551:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:551:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:551:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:551:25: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:551:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:551:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:551:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:551:25: danger: ‘saved_locale’ leaks here; was allocated at [(15)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
shadow-4.18.0/src/gpasswd.c:562:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:492:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:502:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:502:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:512:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:512:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:524:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:524:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:536:20: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:536:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:562:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:562:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:562:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:562:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:562:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:562:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:562:17: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
shadow-4.18.0/src/gpasswd.c:710:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:708:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:709:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:710:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:710:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:710:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:710:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:710:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:710:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/gpasswd.c:710:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
shadow-4.18.0/src/gpasswd.c:724:34: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/gpasswd.c:698:13: enter_function: entry to ‘get_group’
shadow-4.18.0/src/gpasswd.c:708:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:714:17: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:715:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:722:9: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:723:23: call_function: calling ‘xstrdup’ from ‘get_group’
shadow-4.18.0/src/gpasswd.c:723:23: return_function: returning to ‘get_group’ from ‘xstrdup’
shadow-4.18.0/src/gpasswd.c:724:25: call_function: calling ‘xstrdup’ from ‘get_group’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
shadow-4.18.0/src/gpasswd.c:731:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:708:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:714:17: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:715:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:722:9: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:727:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:728:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:731:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:731:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:731:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:731:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:731:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:731:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/gpasswd.c:731:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
shadow-4.18.0/src/gpasswd.c:743:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:708:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:714:17: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:715:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:722:9: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:727:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:738:13: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:738:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:739:21: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:739:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:740:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:743:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:743:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:743:25: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:743:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:743:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:743:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/gpasswd.c:743:25: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
shadow-4.18.0/src/gpasswd.c:750:50: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/gpasswd.c:698:13: enter_function: entry to ‘get_group’
shadow-4.18.0/src/gpasswd.c:708:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:714:17: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:715:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:722:9: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:723:23: call_function: calling ‘xstrdup’ from ‘get_group’
shadow-4.18.0/src/gpasswd.c:723:23: return_function: returning to ‘get_group’ from ‘xstrdup’
shadow-4.18.0/src/gpasswd.c:724:25: call_function: calling ‘xstrdup’ from ‘get_group’
shadow-4.18.0/src/gpasswd.c:724:25: return_function: returning to ‘get_group’ from ‘xstrdup’
shadow-4.18.0/src/gpasswd.c:727:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:738:13: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:738:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:739:21: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:739:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:746:25: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:747:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:748:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:749:39: call_function: calling ‘xstrdup’ from ‘get_group’
shadow-4.18.0/src/gpasswd.c:749:39: return_function: returning to ‘get_group’ from ‘xstrdup’
shadow-4.18.0/src/gpasswd.c:750:41: call_function: calling ‘xstrdup’ from ‘get_group’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def270]
shadow-4.18.0/src/gpasswd.c:762:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, 1, 8)’
shadow-4.18.0/src/gpasswd.c:698:13: enter_function: entry to ‘get_group’
shadow-4.18.0/src/gpasswd.c:708:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:714:17: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:715:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:722:9: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:727:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:738:13: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:738:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:739:21: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:739:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:746:25: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:747:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:755:39: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:761:38: call_function: inlined call to ‘xmallocarray’ from ‘get_group’
shadow-4.18.0/src/gpasswd.c:762:25: danger: ‘xreallocarray(0, 1, 8)’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
shadow-4.18.0/src/gpasswd.c:769:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:708:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:714:17: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:715:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:722:9: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:727:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:738:13: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:738:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:739:21: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:739:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:746:25: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:765:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:766:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:769:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:769:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:769:25: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:769:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:769:25: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:769:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/gpasswd.c:769:25: danger: ‘saved_locale’ leaks here; was allocated at [(15)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
shadow-4.18.0/src/gpasswd.c:820:25: warning[-Wanalyzer-malloc-leak]: leak of ‘agetpass(dcgettext(0, "Re-enter new password: ", 5))’
shadow-4.18.0/src/gpasswd.c:787:13: enter_function: entry to ‘change_passwd’
shadow-4.18.0/src/gpasswd.c:805:27: branch_true: following ‘true’ branch (when ‘retries != 3’)...
shadow-4.18.0/src/gpasswd.c:806:32: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:807:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:811:17: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:811:17: call_function: calling ‘strtcpy’ from ‘change_passwd’
shadow-4.18.0/src/gpasswd.c:811:17: return_function: returning to ‘change_passwd’ from ‘strtcpy’
shadow-4.18.0/src/gpasswd.c:813:22: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:814:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:819:21: call_function: inlined call to ‘streq’ from ‘change_passwd’
shadow-4.18.0/src/gpasswd.c:820:25: danger: ‘agetpass(dcgettext(0, "Re-enter new password: ", 5))’ leaks here; was allocated at [(11)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
shadow-4.18.0/src/gpasswd.c:824:17: warning[-Wanalyzer-malloc-leak]: leak of ‘agetpass(dcgettext(0, "Re-enter new password: ", 5))’
shadow-4.18.0/src/gpasswd.c:787:13: enter_function: entry to ‘change_passwd’
shadow-4.18.0/src/gpasswd.c:805:27: branch_true: following ‘true’ branch (when ‘retries != 3’)...
shadow-4.18.0/src/gpasswd.c:806:32: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:807:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:811:17: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:811:17: call_function: calling ‘strtcpy’ from ‘change_passwd’
shadow-4.18.0/src/gpasswd.c:811:17: return_function: returning to ‘change_passwd’ from ‘strtcpy’
shadow-4.18.0/src/gpasswd.c:813:22: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:814:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/gpasswd.c:819:21: call_function: inlined call to ‘streq’ from ‘change_passwd’
shadow-4.18.0/src/gpasswd.c:819:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
shadow-4.18.0/src/gpasswd.c:824:17: branch_false: ...to here
shadow-4.18.0/src/gpasswd.c:824:17: danger: ‘agetpass(dcgettext(0, "Re-enter new password: ", 5))’ leaks here; was allocated at [(11)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
shadow-4.18.0/src/gpasswd.c:910:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/gpasswd.c:907:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/gpasswd.c:908:34: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:910:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:910:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:910:17: acquire_memory: allocated here
shadow-4.18.0/src/gpasswd.c:910:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/gpasswd.c:910:17: branch_true: ...to here
shadow-4.18.0/src/gpasswd.c:910:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/gpasswd.c:910:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
shadow-4.18.0/src/groupadd.c:288:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupadd.c:277:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupadd.c:284:9: branch_false: ...to here
shadow-4.18.0/src/groupadd.c:288:9: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupadd.c:288:9: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:288:9: acquire_memory: allocated here
shadow-4.18.0/src/groupadd.c:288:9: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupadd.c:288:9: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:288:9: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/groupadd.c:288:9: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
shadow-4.18.0/src/groupadd.c:309:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupadd.c:277:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupadd.c:284:9: branch_false: ...to here
shadow-4.18.0/src/groupadd.c:288:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/groupadd.c:290:9: branch_false: ...to here
shadow-4.18.0/src/groupadd.c:297:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupadd.c:298:21: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:298:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupadd.c:305:17: branch_false: ...to here
shadow-4.18.0/src/groupadd.c:309:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupadd.c:309:17: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:309:17: acquire_memory: allocated here
shadow-4.18.0/src/groupadd.c:309:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupadd.c:309:17: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:309:17: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/groupadd.c:309:17: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
shadow-4.18.0/src/groupadd.c:319:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupadd.c:277:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupadd.c:284:9: branch_false: ...to here
shadow-4.18.0/src/groupadd.c:288:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/groupadd.c:290:9: branch_false: ...to here
shadow-4.18.0/src/groupadd.c:319:9: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupadd.c:319:9: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:319:9: acquire_memory: allocated here
shadow-4.18.0/src/groupadd.c:319:9: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupadd.c:319:9: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:319:9: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/groupadd.c:319:9: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
shadow-4.18.0/src/groupadd.c:361:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupadd.c:332:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupadd.c:338:9: branch_false: ...to here
shadow-4.18.0/src/groupadd.c:359:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupadd.c:360:94: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:361:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupadd.c:361:17: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:361:17: acquire_memory: allocated here
shadow-4.18.0/src/groupadd.c:361:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupadd.c:361:17: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:361:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/groupadd.c:361:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
shadow-4.18.0/src/groupadd.c:371:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupadd.c:332:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupadd.c:338:9: branch_false: ...to here
shadow-4.18.0/src/groupadd.c:342:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupadd.c:348:17: branch_false: ...to here
shadow-4.18.0/src/groupadd.c:359:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupadd.c:366:13: branch_false: ...to here
shadow-4.18.0/src/groupadd.c:366:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupadd.c:367:21: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:367:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupadd.c:370:64: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:371:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupadd.c:371:25: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:371:25: acquire_memory: allocated here
shadow-4.18.0/src/groupadd.c:371:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupadd.c:371:25: branch_true: ...to here
shadow-4.18.0/src/groupadd.c:371:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/groupadd.c:371:25: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
shadow-4.18.0/src/groupdel.c:164:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupdel.c:152:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupdel.c:160:9: branch_false: ...to here
shadow-4.18.0/src/groupdel.c:164:9: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupdel.c:164:9: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:164:9: acquire_memory: allocated here
shadow-4.18.0/src/groupdel.c:164:9: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupdel.c:164:9: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:164:9: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/groupdel.c:164:9: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
shadow-4.18.0/src/groupdel.c:188:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupdel.c:152:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupdel.c:160:9: branch_false: ...to here
shadow-4.18.0/src/groupdel.c:164:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/groupdel.c:167:9: branch_false: ...to here
shadow-4.18.0/src/groupdel.c:175:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupdel.c:176:21: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:176:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupdel.c:184:17: branch_false: ...to here
shadow-4.18.0/src/groupdel.c:188:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupdel.c:188:17: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:188:17: acquire_memory: allocated here
shadow-4.18.0/src/groupdel.c:188:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupdel.c:188:17: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:188:17: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/groupdel.c:188:17: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
shadow-4.18.0/src/groupdel.c:198:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupdel.c:152:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupdel.c:160:9: branch_false: ...to here
shadow-4.18.0/src/groupdel.c:164:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/groupdel.c:167:9: branch_false: ...to here
shadow-4.18.0/src/groupdel.c:198:9: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupdel.c:198:9: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:198:9: acquire_memory: allocated here
shadow-4.18.0/src/groupdel.c:198:9: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupdel.c:198:9: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:198:9: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/groupdel.c:198:9: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
shadow-4.18.0/src/groupdel.c:240:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupdel.c:210:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupdel.c:216:9: branch_false: ...to here
shadow-4.18.0/src/groupdel.c:236:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupdel.c:237:17: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:240:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupdel.c:240:17: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:240:17: acquire_memory: allocated here
shadow-4.18.0/src/groupdel.c:240:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupdel.c:240:17: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:240:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/groupdel.c:240:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
shadow-4.18.0/src/groupdel.c:249:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupdel.c:210:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupdel.c:216:9: branch_false: ...to here
shadow-4.18.0/src/groupdel.c:219:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupdel.c:225:17: branch_false: ...to here
shadow-4.18.0/src/groupdel.c:236:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupdel.c:244:13: branch_false: ...to here
shadow-4.18.0/src/groupdel.c:244:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupdel.c:245:21: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:245:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupdel.c:246:25: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:249:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupdel.c:249:25: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:249:25: acquire_memory: allocated here
shadow-4.18.0/src/groupdel.c:249:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupdel.c:249:25: branch_true: ...to here
shadow-4.18.0/src/groupdel.c:249:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/groupdel.c:249:25: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def285]
shadow-4.18.0/src/groupmems.c:276:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, 1, 8)’
shadow-4.18.0/src/groupmems.c:252:13: enter_function: entry to ‘purge_members’
shadow-4.18.0/src/groupmems.c:256:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmems.c:264:9: branch_false: ...to here
shadow-4.18.0/src/groupmems.c:267:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:268:53: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:271:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:274:51: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:275:41: call_function: inlined call to ‘xmallocarray’ from ‘purge_members’
shadow-4.18.0/src/groupmems.c:276:25: danger: ‘xreallocarray(0, 1, 8)’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def286]
shadow-4.18.0/src/groupmems.c:278:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, 1, 8)’
shadow-4.18.0/src/groupmems.c:252:13: enter_function: entry to ‘purge_members’
shadow-4.18.0/src/groupmems.c:256:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmems.c:264:9: branch_false: ...to here
shadow-4.18.0/src/groupmems.c:267:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:268:53: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:271:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:274:51: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:277:41: call_function: inlined call to ‘xmallocarray’ from ‘purge_members’
shadow-4.18.0/src/groupmems.c:278:25: danger: ‘xreallocarray(0, 1, 8)’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
shadow-4.18.0/src/groupmems.c:301:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
shadow-4.18.0/src/groupmems.c:252:13: enter_function: entry to ‘purge_members’
shadow-4.18.0/src/groupmems.c:256:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmems.c:264:9: branch_false: ...to here
shadow-4.18.0/src/groupmems.c:267:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:268:53: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:271:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:274:51: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:274:42: call_function: calling ‘xstrdup’ from ‘purge_members’
shadow-4.18.0/src/groupmems.c:274:42: return_function: returning to ‘purge_members’ from ‘xstrdup’
shadow-4.18.0/src/groupmems.c:282:45: call_function: calling ‘xstrdup’ from ‘purge_members’
shadow-4.18.0/src/groupmems.c:282:45: return_function: returning to ‘purge_members’ from ‘xstrdup’
shadow-4.18.0/src/groupmems.c:301:21: throw: if ‘sgr_update’ throws an exception...
shadow-4.18.0/src/groupmems.c:301:21: danger: ‘<unknown>’ leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
shadow-4.18.0/src/groupmems.c:373:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
shadow-4.18.0/src/groupmems.c:359:13: enter_function: entry to ‘process_flags’
shadow-4.18.0/src/groupmems.c:373:16: branch_true: following ‘true’ branch (when ‘c != -1’)...
shadow-4.18.0/src/groupmems.c:375:17: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:385:37: call_function: calling ‘xstrdup’ from ‘process_flags’
shadow-4.18.0/src/groupmems.c:385:37: return_function: returning to ‘process_flags’ from ‘xstrdup’
shadow-4.18.0/src/groupmems.c:373:21: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
shadow-4.18.0/src/groupmems.c:468:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmems.c:463:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:464:21: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:464:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:465:25: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:468:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:468:25: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:468:25: acquire_memory: allocated here
shadow-4.18.0/src/groupmems.c:468:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:468:25: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:468:25: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/groupmems.c:468:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
shadow-4.18.0/src/groupmems.c:479:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmems.c:474:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:475:21: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:475:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:476:25: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:479:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:479:25: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:479:25: acquire_memory: allocated here
shadow-4.18.0/src/groupmems.c:479:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:479:25: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:479:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/groupmems.c:479:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
shadow-4.18.0/src/groupmems.c:531:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmems.c:529:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:529:35: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:529:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmems.c:530:17: branch_false: ...to here
shadow-4.18.0/src/groupmems.c:531:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:531:17: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:531:17: acquire_memory: allocated here
shadow-4.18.0/src/groupmems.c:531:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:531:17: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:531:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/groupmems.c:531:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
shadow-4.18.0/src/groupmems.c:537:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmems.c:534:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:535:21: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:535:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:536:25: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:537:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:537:25: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:537:25: acquire_memory: allocated here
shadow-4.18.0/src/groupmems.c:537:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:537:25: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:537:25: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/groupmems.c:537:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
shadow-4.18.0/src/groupmems.c:547:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmems.c:544:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:545:22: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:545:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:545:44: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:545:21: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmems.c:546:25: branch_false: ...to here
shadow-4.18.0/src/groupmems.c:547:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:547:25: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:547:25: acquire_memory: allocated here
shadow-4.18.0/src/groupmems.c:547:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:547:25: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:547:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/groupmems.c:547:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
shadow-4.18.0/src/groupmems.c:553:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmems.c:544:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:545:22: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:550:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:551:29: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:551:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmems.c:552:33: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:553:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:553:33: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:553:33: acquire_memory: allocated here
shadow-4.18.0/src/groupmems.c:553:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmems.c:553:33: branch_true: ...to here
shadow-4.18.0/src/groupmems.c:553:33: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/groupmems.c:553:33: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
shadow-4.18.0/src/groupmod.c:192:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sgrp.sg_passwd’
shadow-4.18.0/src/groupmod.c:203:1: enter_function: entry to ‘grp_update’
shadow-4.18.0/src/groupmod.c:217:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:223:9: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:224:9: call_function: calling ‘new_grent’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:224:9: return_function: returning to ‘grp_update’ from ‘new_grent’
shadow-4.18.0/src/groupmod.c:226:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:227:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:229:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:232:31: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:232:27: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:233:37: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:232:31: branch_true: following ‘true’ branch (when the strings are equal)...
shadow-4.18.0/src/groupmod.c:240:25: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:241:42: call_function: calling ‘xstrdup’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:241:42: return_function: returning to ‘grp_update’ from ‘xstrdup’
shadow-4.18.0/src/groupmod.c:242:42: call_function: calling ‘xstrdup’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:242:42: return_function: returning to ‘grp_update’ from ‘xstrdup’
shadow-4.18.0/src/groupmod.c:245:25: call_function: calling ‘new_sgent’ from ‘grp_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
shadow-4.18.0/src/groupmod.c:242:51: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/groupmod.c:203:1: enter_function: entry to ‘grp_update’
shadow-4.18.0/src/groupmod.c:217:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:223:9: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:224:9: call_function: calling ‘new_grent’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:224:9: return_function: returning to ‘grp_update’ from ‘new_grent’
shadow-4.18.0/src/groupmod.c:226:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:227:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:229:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:232:31: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:232:27: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:233:37: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:232:31: branch_true: following ‘true’ branch (when the strings are equal)...
shadow-4.18.0/src/groupmod.c:240:25: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:241:42: call_function: calling ‘xstrdup’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:241:42: return_function: returning to ‘grp_update’ from ‘xstrdup’
shadow-4.18.0/src/groupmod.c:242:42: call_function: calling ‘xstrdup’ from ‘grp_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
shadow-4.18.0/src/groupmod.c:244:42: warning[-Wanalyzer-malloc-leak]: leak of ‘sgrp.sg_passwd’
shadow-4.18.0/src/groupmod.c:203:1: enter_function: entry to ‘grp_update’
shadow-4.18.0/src/groupmod.c:217:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:223:9: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:224:9: call_function: calling ‘new_grent’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:224:9: return_function: returning to ‘grp_update’ from ‘new_grent’
shadow-4.18.0/src/groupmod.c:226:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:227:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:229:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:232:31: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:232:27: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:233:37: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:232:31: branch_true: following ‘true’ branch (when the strings are equal)...
shadow-4.18.0/src/groupmod.c:240:25: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:241:42: call_function: calling ‘xstrdup’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:241:42: return_function: returning to ‘grp_update’ from ‘xstrdup’
shadow-4.18.0/src/groupmod.c:242:42: call_function: calling ‘xstrdup’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:242:42: return_function: returning to ‘grp_update’ from ‘xstrdup’
shadow-4.18.0/src/groupmod.c:244:42: throw: if ‘dup_list’ throws an exception...
shadow-4.18.0/src/groupmod.c:244:42: danger: ‘sgrp.sg_passwd’ leaks here; was allocated at [(26)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/25)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def298]
shadow-4.18.0/src/groupmod.c:261:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, 1, 8)’
shadow-4.18.0/src/groupmod.c:203:1: enter_function: entry to ‘grp_update’
shadow-4.18.0/src/groupmod.c:217:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:223:9: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:224:9: call_function: calling ‘new_grent’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:224:9: return_function: returning to ‘grp_update’ from ‘new_grent’
shadow-4.18.0/src/groupmod.c:251:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:255:13: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:255:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:258:21: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:258:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:260:38: call_function: inlined call to ‘xmallocarray’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:261:25: danger: ‘xreallocarray(0, 1, 8)’ could be NULL: unchecked value from [(18)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def299]
shadow-4.18.0/src/groupmod.c:271:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, 1, 8)’
shadow-4.18.0/src/groupmod.c:203:1: enter_function: entry to ‘grp_update’
shadow-4.18.0/src/groupmod.c:217:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:223:9: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:224:9: call_function: calling ‘new_grent’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:224:9: return_function: returning to ‘grp_update’ from ‘new_grent’
shadow-4.18.0/src/groupmod.c:226:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:227:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:227:17: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:227:30: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:227:16: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:228:25: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:229:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:230:25: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:231:25: call_function: calling ‘new_sgent’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:231:25: return_function: returning to ‘grp_update’ from ‘new_sgent’
shadow-4.18.0/src/groupmod.c:251:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:255:13: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:255:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:258:21: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:268:20: branch_true: following ‘true’ branch (when ‘osgrp’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:269:29: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:269:28: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:270:47: call_function: inlined call to ‘xmallocarray’ from ‘grp_update’
shadow-4.18.0/src/groupmod.c:271:33: danger: ‘xreallocarray(0, 1, 8)’ could be NULL: unchecked value from [(35)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/34)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
shadow-4.18.0/src/groupmod.c:496:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmod.c:484:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:491:9: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:496:9: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:496:9: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:496:9: acquire_memory: allocated here
shadow-4.18.0/src/groupmod.c:496:9: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:496:9: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:496:9: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/groupmod.c:496:9: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
shadow-4.18.0/src/groupmod.c:526:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmod.c:484:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:491:9: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:496:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/groupmod.c:499:9: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:505:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:506:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:507:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:515:21: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:526:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:526:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:526:17: acquire_memory: allocated here
shadow-4.18.0/src/groupmod.c:526:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:526:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:526:17: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/groupmod.c:526:17: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
shadow-4.18.0/src/groupmod.c:549:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmod.c:484:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:491:9: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:496:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/groupmod.c:499:9: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:536:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:537:21: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:537:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:544:17: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:549:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:549:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:549:17: acquire_memory: allocated here
shadow-4.18.0/src/groupmod.c:549:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:549:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:549:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/groupmod.c:549:17: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
shadow-4.18.0/src/groupmod.c:704:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmod.c:702:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:703:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:704:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:704:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:704:17: acquire_memory: allocated here
shadow-4.18.0/src/groupmod.c:704:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:704:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:704:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/groupmod.c:704:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
shadow-4.18.0/src/groupmod.c:715:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmod.c:702:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:709:16: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:709:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:710:17: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:711:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:712:25: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:715:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:715:25: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:715:25: acquire_memory: allocated here
shadow-4.18.0/src/groupmod.c:715:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:715:25: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:715:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/groupmod.c:715:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
shadow-4.18.0/src/groupmod.c:726:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/groupmod.c:702:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/groupmod.c:709:16: branch_false: ...to here
shadow-4.18.0/src/groupmod.c:721:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:722:21: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:722:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/groupmod.c:723:25: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:726:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:726:25: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:726:25: acquire_memory: allocated here
shadow-4.18.0/src/groupmod.c:726:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/groupmod.c:726:25: branch_true: ...to here
shadow-4.18.0/src/groupmod.c:726:25: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/groupmod.c:726:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
shadow-4.18.0/src/grpck.c:97:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpck.c:94:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:95:21: branch_true: ...to here
shadow-4.18.0/src/grpck.c:95:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:96:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:97:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:97:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:97:25: acquire_memory: allocated here
shadow-4.18.0/src/grpck.c:97:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:97:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:97:25: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/grpck.c:97:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
shadow-4.18.0/src/grpck.c:106:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpck.c:103:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:104:21: branch_true: ...to here
shadow-4.18.0/src/grpck.c:104:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:105:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:106:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:106:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:106:25: acquire_memory: allocated here
shadow-4.18.0/src/grpck.c:106:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:106:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:106:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/grpck.c:106:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
shadow-4.18.0/src/grpck.c:294:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpck.c:290:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:291:17: branch_true: ...to here
shadow-4.18.0/src/grpck.c:293:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:294:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:294:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:294:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:294:25: acquire_memory: allocated here
shadow-4.18.0/src/grpck.c:294:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:294:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:294:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/grpck.c:294:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
shadow-4.18.0/src/grpck.c:303:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpck.c:290:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpck.c:299:13: branch_false: ...to here
shadow-4.18.0/src/grpck.c:299:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:302:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:303:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:303:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:303:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:303:25: acquire_memory: allocated here
shadow-4.18.0/src/grpck.c:303:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:303:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:303:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/grpck.c:303:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
shadow-4.18.0/src/grpck.c:345:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpck.c:342:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:343:21: branch_true: ...to here
shadow-4.18.0/src/grpck.c:343:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:344:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:345:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:345:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:345:25: acquire_memory: allocated here
shadow-4.18.0/src/grpck.c:345:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:345:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:345:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/grpck.c:345:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
shadow-4.18.0/src/grpck.c:354:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpck.c:351:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:352:21: branch_true: ...to here
shadow-4.18.0/src/grpck.c:352:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:353:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:354:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:354:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:354:25: acquire_memory: allocated here
shadow-4.18.0/src/grpck.c:354:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:354:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:354:25: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/grpck.c:354:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
shadow-4.18.0/src/grpck.c:410:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpck.c:393:21: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:395:21: branch_true: ...to here
shadow-4.18.0/src/grpck.c:406:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:410:17: branch_true: ...to here
shadow-4.18.0/src/grpck.c:410:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:410:17: branch_true: ...to here
shadow-4.18.0/src/grpck.c:410:17: acquire_memory: allocated here
shadow-4.18.0/src/grpck.c:410:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:410:17: branch_true: ...to here
shadow-4.18.0/src/grpck.c:410:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/grpck.c:410:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
shadow-4.18.0/src/grpck.c:507:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpck.c:469:38: branch_true: following ‘true’ branch (when ‘gre’ is non-NULL)...
shadow-4.18.0/src/grpck.c:474:21: branch_true: ...to here
shadow-4.18.0/src/grpck.c:474:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpck.c:483:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:489:38: branch_true: ...to here
shadow-4.18.0/src/grpck.c:507:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:507:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:507:25: acquire_memory: allocated here
shadow-4.18.0/src/grpck.c:507:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:507:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:507:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/grpck.c:507:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
shadow-4.18.0/src/grpck.c:710:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpck.c:679:39: branch_true: following ‘true’ branch (when ‘sge’ is non-NULL)...
shadow-4.18.0/src/grpck.c:686:29: branch_true: ...to here
shadow-4.18.0/src/grpck.c:686:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpck.c:692:38: branch_true: ...to here
shadow-4.18.0/src/grpck.c:710:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:710:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:710:25: acquire_memory: allocated here
shadow-4.18.0/src/grpck.c:710:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpck.c:710:25: branch_true: ...to here
shadow-4.18.0/src/grpck.c:710:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/grpck.c:710:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
shadow-4.18.0/src/grpconv.c:61:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpconv.c:58:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpconv.c:59:21: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:59:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpconv.c:60:25: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:61:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpconv.c:61:25: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:61:25: acquire_memory: allocated here
shadow-4.18.0/src/grpconv.c:61:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpconv.c:61:25: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:61:25: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/grpconv.c:61:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
shadow-4.18.0/src/grpconv.c:69:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpconv.c:126:5: enter_function: entry to ‘main’
shadow-4.18.0/src/grpconv.c:144:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/grpconv.c:144:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/grpconv.c:146:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:152:9: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:153:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:158:13: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:158:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:164:9: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:165:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpconv.c:166:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:167:17: call_function: calling ‘fail_exit’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
shadow-4.18.0/src/grpconv.c:241:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpconv.c:126:5: enter_function: entry to ‘main’
shadow-4.18.0/src/grpconv.c:144:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/grpconv.c:144:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/grpconv.c:146:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:152:9: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:153:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:158:13: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:158:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:164:9: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:165:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:173:16: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:237:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpconv.c:238:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:241:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpconv.c:241:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:241:17: acquire_memory: allocated here
shadow-4.18.0/src/grpconv.c:241:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpconv.c:241:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:241:17: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/grpconv.c:241:17: danger: ‘saved_locale’ leaks here; was allocated at [(19)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
shadow-4.18.0/src/grpconv.c:248:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpconv.c:126:5: enter_function: entry to ‘main’
shadow-4.18.0/src/grpconv.c:144:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/grpconv.c:144:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/grpconv.c:146:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:152:9: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:153:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:158:13: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:158:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:164:9: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:165:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:173:16: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:237:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:244:13: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:244:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpconv.c:245:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:248:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpconv.c:248:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:248:17: acquire_memory: allocated here
shadow-4.18.0/src/grpconv.c:248:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpconv.c:248:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:248:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/grpconv.c:248:17: danger: ‘saved_locale’ leaks here; was allocated at [(21)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
shadow-4.18.0/src/grpconv.c:253:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpconv.c:126:5: enter_function: entry to ‘main’
shadow-4.18.0/src/grpconv.c:144:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/grpconv.c:144:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/grpconv.c:146:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:152:9: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:153:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:158:13: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:158:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:164:9: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:165:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:173:16: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:237:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:244:13: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:244:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:251:13: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:251:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpconv.c:252:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:253:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpconv.c:253:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:253:17: acquire_memory: allocated here
shadow-4.18.0/src/grpconv.c:253:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpconv.c:253:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:253:17: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/grpconv.c:253:17: danger: ‘saved_locale’ leaks here; was allocated at [(23)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
shadow-4.18.0/src/grpconv.c:258:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpconv.c:126:5: enter_function: entry to ‘main’
shadow-4.18.0/src/grpconv.c:144:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/grpconv.c:144:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/grpconv.c:146:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:152:9: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:153:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:158:13: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:158:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:164:9: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:165:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:173:16: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:237:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:244:13: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:244:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpconv.c:251:13: branch_false: ...to here
shadow-4.18.0/src/grpconv.c:256:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpconv.c:257:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:258:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpconv.c:258:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:258:17: acquire_memory: allocated here
shadow-4.18.0/src/grpconv.c:258:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpconv.c:258:17: branch_true: ...to here
shadow-4.18.0/src/grpconv.c:258:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/grpconv.c:258:17: danger: ‘saved_locale’ leaks here; was allocated at [(23)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
shadow-4.18.0/src/grpunconv.c:60:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpunconv.c:57:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:58:21: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:58:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:59:25: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:60:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:60:25: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:60:25: acquire_memory: allocated here
shadow-4.18.0/src/grpunconv.c:60:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:60:25: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:60:25: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/grpunconv.c:60:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
shadow-4.18.0/src/grpunconv.c:68:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpunconv.c:65:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:66:21: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:66:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:67:25: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:68:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:68:25: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:68:25: acquire_memory: allocated here
shadow-4.18.0/src/grpunconv.c:68:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:68:25: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:68:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/grpunconv.c:68:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
shadow-4.18.0/src/grpunconv.c:200:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpunconv.c:125:5: enter_function: entry to ‘main’
shadow-4.18.0/src/grpunconv.c:142:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/grpunconv.c:142:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/grpunconv.c:144:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:148:13: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:148:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:154:9: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:155:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:161:13: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:161:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:167:9: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:168:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:177:16: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:196:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:197:17: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:200:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:200:17: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:200:17: acquire_memory: allocated here
shadow-4.18.0/src/grpunconv.c:200:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:200:17: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:200:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/grpunconv.c:200:17: danger: ‘saved_locale’ leaks here; was allocated at [(21)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
shadow-4.18.0/src/grpunconv.c:208:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpunconv.c:125:5: enter_function: entry to ‘main’
shadow-4.18.0/src/grpunconv.c:142:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/grpunconv.c:142:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/grpunconv.c:144:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:148:13: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:148:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:154:9: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:155:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:161:13: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:161:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:167:9: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:168:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:177:16: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:196:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:204:13: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:204:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:206:26: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:208:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:208:17: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:208:17: acquire_memory: allocated here
shadow-4.18.0/src/grpunconv.c:208:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:208:17: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:208:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/grpunconv.c:208:17: danger: ‘saved_locale’ leaks here; was allocated at [(23)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
shadow-4.18.0/src/grpunconv.c:214:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpunconv.c:125:5: enter_function: entry to ‘main’
shadow-4.18.0/src/grpunconv.c:142:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/grpunconv.c:142:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/grpunconv.c:144:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:148:13: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:148:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:154:9: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:155:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:161:13: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:161:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:167:9: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:168:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:177:16: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:196:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:204:13: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:204:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:212:13: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:212:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:213:17: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:214:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:214:17: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:214:17: acquire_memory: allocated here
shadow-4.18.0/src/grpunconv.c:214:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:214:17: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:214:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/grpunconv.c:214:17: danger: ‘saved_locale’ leaks here; was allocated at [(25)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
shadow-4.18.0/src/grpunconv.c:220:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/grpunconv.c:125:5: enter_function: entry to ‘main’
shadow-4.18.0/src/grpunconv.c:142:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/grpunconv.c:142:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/grpunconv.c:144:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:148:13: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:148:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:154:9: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:155:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:161:13: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:161:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:167:9: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:168:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:177:16: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:196:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:204:13: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:204:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/grpunconv.c:212:13: branch_false: ...to here
shadow-4.18.0/src/grpunconv.c:218:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/grpunconv.c:219:17: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:220:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:220:17: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:220:17: acquire_memory: allocated here
shadow-4.18.0/src/grpunconv.c:220:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/grpunconv.c:220:17: branch_true: ...to here
shadow-4.18.0/src/grpunconv.c:220:17: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/grpunconv.c:220:17: danger: ‘saved_locale’ leaks here; was allocated at [(25)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
shadow-4.18.0/src/login.c:400:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/login.c:397:9: branch_true: following ‘true’ branch (when ‘ptr_pam_user’ is non-NULL)...
shadow-4.18.0/src/login.c:399:19: branch_true: ...to here
shadow-4.18.0/src/login.c:400:9: branch_true: following ‘true’ branch...
shadow-4.18.0/src/login.c:400:9: acquire_memory: allocated here
shadow-4.18.0/src/login.c:400:9: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/login.c:400:9: branch_true: ...to here
shadow-4.18.0/src/login.c:400:9: throw: if ‘pam_strerror’ throws an exception...
shadow-4.18.0/src/login.c:400:9: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING: [#def328]
shadow-4.18.0/src/login.c: scope_hint: In function ‘main’
shadow-4.18.0/src/login.c:454:24: warning[-Wunused-but-set-variable=]: variable ‘subroot’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
shadow-4.18.0/src/login.c:513:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/login.c:451:5: enter_function: entry to ‘main’
shadow-4.18.0/src/login.c:496:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/login.c:501:9: branch_false: ...to here
shadow-4.18.0/src/login.c:501:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/login.c:501:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/login.c:503:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/login.c:503:35: branch_false: ...to here
shadow-4.18.0/src/login.c:503:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/login.c:503:56: branch_false: ...to here
shadow-4.18.0/src/login.c:503:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/login.c:507:15: branch_false: ...to here
shadow-4.18.0/src/login.c:512:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/login.c:512:13: branch_false: ...to here
shadow-4.18.0/src/login.c:512:13: branch_true: following ‘true’ branch...
shadow-4.18.0/src/login.c:513:17: branch_true: ...to here
shadow-4.18.0/src/login.c:513:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/login.c:513:17: branch_true: ...to here
shadow-4.18.0/src/login.c:513:17: acquire_memory: allocated here
shadow-4.18.0/src/login.c:513:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/login.c:513:17: branch_true: ...to here
shadow-4.18.0/src/login.c:513:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/login.c:513:17: danger: ‘saved_locale’ leaks here; was allocated at [(24)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/23)
Error: COMPILER_WARNING (CWE-252): [#def330]
shadow-4.18.0/src/login.c:719:25: warning[-Wunused-result]: ignoring return value of ‘audit_log_acct_message’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def331]
shadow-4.18.0/src/login.c:1034:9: warning[-Wunused-result]: ignoring return value of ‘audit_log_acct_message’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
shadow-4.18.0/src/logoutd.c:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tty_file’
shadow-4.18.0/src/logoutd.c:72:20: acquire_memory: allocated here
shadow-4.18.0/src/logoutd.c:73:12: branch_false: following ‘false’ branch (when ‘tty_file’ is non-NULL)...
shadow-4.18.0/src/logoutd.c:77:19: branch_false: ...to here
shadow-4.18.0/src/logoutd.c:99:9: throw: if ‘fflush’ throws an exception...
shadow-4.18.0/src/logoutd.c:99:9: danger: ‘tty_file’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
shadow-4.18.0/src/newgidmap.c:189:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newgidmap.c:164:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
shadow-4.18.0/src/newgidmap.c:171:9: branch_false: ...to here
shadow-4.18.0/src/newgidmap.c:180:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgidmap.c:184:14: branch_false: ...to here
shadow-4.18.0/src/newgidmap.c:185:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgidmap.c:187:25: branch_true: ...to here
shadow-4.18.0/src/newgidmap.c:189:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newgidmap.c:189:17: branch_true: ...to here
shadow-4.18.0/src/newgidmap.c:189:17: acquire_memory: allocated here
shadow-4.18.0/src/newgidmap.c:189:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newgidmap.c:189:17: branch_true: ...to here
shadow-4.18.0/src/newgidmap.c:189:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgidmap.c:189:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
shadow-4.18.0/src/newgrp.c:181:43: warning[-Wanalyzer-malloc-leak]: leak of ‘agetpass(dcgettext(0, "Password: ", 5))’
shadow-4.18.0/src/newgrp.c:166:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:171:22: acquire_memory: allocated here
shadow-4.18.0/src/newgrp.c:172:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:181:43: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:181:27: throw: if ‘pw_encrypt’ throws an exception...
shadow-4.18.0/src/newgrp.c:181:43: danger: ‘agetpass(dcgettext(0, "Password: ", 5))’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
shadow-4.18.0/src/newgrp.c:188:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newgrp.c:166:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:172:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:181:43: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:184:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:187:50: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:188:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:188:25: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:188:25: acquire_memory: allocated here
shadow-4.18.0/src/newgrp.c:188:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:188:25: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:188:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:188:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
shadow-4.18.0/src/newgrp.c:202:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newgrp.c:166:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:172:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:181:43: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:184:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:194:27: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:202:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:202:25: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:202:25: acquire_memory: allocated here
shadow-4.18.0/src/newgrp.c:202:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:202:25: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:202:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:202:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
shadow-4.18.0/src/newgrp.c:256:9: warning[-Wanalyzer-malloc-leak]: leak of ‘free_tty’
shadow-4.18.0/src/newgrp.c:233:13: enter_function: entry to ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:239:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:243:12: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:243:12: branch_true: following ‘true’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:244:28: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:244:28: call_function: calling ‘xstrdup’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:244:28: return_function: returning to ‘syslog_sg’ from ‘xstrdup’
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_false: following ‘false’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:254:15: call_function: calling ‘strprefix_’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:254:15: return_function: returning to ‘syslog_sg’ from ‘strprefix_’
shadow-4.18.0/src/newgrp.c:254:15: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:256:9: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:256:9: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:256:9: danger: ‘free_tty’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
shadow-4.18.0/src/newgrp.c:256:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newgrp.c:239:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:243:12: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:243:12: branch_false: following ‘false’ branch (when ‘tty’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_true: following ‘true’ branch (when ‘tty’ is NULL)...
shadow-4.18.0/src/newgrp.c:251:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:254:15: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:256:9: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:256:9: acquire_memory: allocated here
shadow-4.18.0/src/newgrp.c:256:9: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:256:9: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:256:9: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:256:9: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
shadow-4.18.0/src/newgrp.c:297:33: warning[-Wanalyzer-malloc-leak]: leak of ‘tty’
shadow-4.18.0/src/newgrp.c:233:13: enter_function: entry to ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:243:12: branch_true: following ‘true’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:244:28: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:244:28: call_function: calling ‘xstrdup’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:244:28: return_function: returning to ‘syslog_sg’ from ‘xstrdup’
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_false: following ‘false’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:254:15: call_function: calling ‘strprefix_’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:254:15: return_function: returning to ‘syslog_sg’ from ‘strprefix_’
shadow-4.18.0/src/newgrp.c:254:15: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:256:9: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:281:24: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:291:20: branch_true: following ‘true’ branch (when ‘child == -1’)...
shadow-4.18.0/src/newgrp.c:294:73: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:296:28: branch_true: following ‘true’ branch (when ‘group’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:298:57: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:297:33: throw: if ‘audit_logger_with_group’ throws an exception...
shadow-4.18.0/src/newgrp.c:297:33: danger: ‘tty’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
shadow-4.18.0/src/newgrp.c:301:33: warning[-Wanalyzer-malloc-leak]: leak of ‘tty’
shadow-4.18.0/src/newgrp.c:233:13: enter_function: entry to ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:243:12: branch_true: following ‘true’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:244:28: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:244:28: call_function: calling ‘xstrdup’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:244:28: return_function: returning to ‘syslog_sg’ from ‘xstrdup’
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_false: following ‘false’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:254:15: call_function: calling ‘strprefix_’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:254:15: return_function: returning to ‘syslog_sg’ from ‘strprefix_’
shadow-4.18.0/src/newgrp.c:254:15: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:256:9: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:281:24: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:291:20: branch_true: following ‘true’ branch (when ‘child == -1’)...
shadow-4.18.0/src/newgrp.c:294:73: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:296:28: branch_false: following ‘false’ branch (when ‘group’ is NULL)...
shadow-4.18.0/src/newgrp.c:302:65: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:301:33: throw: if ‘audit_logger’ throws an exception...
shadow-4.18.0/src/newgrp.c:301:33: danger: ‘tty’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
shadow-4.18.0/src/newgrp.c:311:45: warning[-Wanalyzer-malloc-leak]: leak of ‘free_tty’
shadow-4.18.0/src/newgrp.c:233:13: enter_function: entry to ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:243:12: branch_true: following ‘true’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:244:28: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:244:28: call_function: calling ‘xstrdup’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:244:28: return_function: returning to ‘syslog_sg’ from ‘xstrdup’
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_false: following ‘false’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:254:15: call_function: calling ‘strprefix_’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:254:15: return_function: returning to ‘syslog_sg’ from ‘strprefix_’
shadow-4.18.0/src/newgrp.c:254:15: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:256:9: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:281:24: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:291:20: branch_false: following ‘false’ branch (when ‘child != -1’)...
shadow-4.18.0/src/newgrp.c:307:27: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:307:27: branch_true: following ‘true’ branch (when ‘child != 0’)...
shadow-4.18.0/src/newgrp.c:309:29: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:311:45: throw: if ‘getgrgid’ throws an exception...
shadow-4.18.0/src/newgrp.c:311:45: danger: ‘free_tty’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
shadow-4.18.0/src/newgrp.c:316:39: warning[-Wanalyzer-malloc-leak]: leak of ‘free_tty’
shadow-4.18.0/src/newgrp.c:233:13: enter_function: entry to ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:243:12: branch_true: following ‘true’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:244:28: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:244:28: call_function: calling ‘xstrdup’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:244:28: return_function: returning to ‘syslog_sg’ from ‘xstrdup’
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_false: following ‘false’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:254:15: call_function: calling ‘strprefix_’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:254:15: return_function: returning to ‘syslog_sg’ from ‘strprefix_’
shadow-4.18.0/src/newgrp.c:254:15: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:256:9: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:281:24: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:291:20: branch_false: following ‘false’ branch (when ‘child != -1’)...
shadow-4.18.0/src/newgrp.c:307:27: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:307:27: branch_true: following ‘true’ branch (when ‘child != 0’)...
shadow-4.18.0/src/newgrp.c:309:29: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:316:39: throw: if ‘waitpid’ throws an exception...
shadow-4.18.0/src/newgrp.c:316:39: danger: ‘free_tty’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
shadow-4.18.0/src/newgrp.c:328:33: warning[-Wanalyzer-malloc-leak]: leak of ‘free_tty’
shadow-4.18.0/src/newgrp.c:233:13: enter_function: entry to ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:243:12: branch_true: following ‘true’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:244:28: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:244:28: call_function: calling ‘xstrdup’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:244:28: return_function: returning to ‘syslog_sg’ from ‘xstrdup’
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_false: following ‘false’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:254:15: call_function: calling ‘strprefix_’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:254:15: return_function: returning to ‘syslog_sg’ from ‘strprefix_’
shadow-4.18.0/src/newgrp.c:254:15: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:256:9: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:281:24: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:291:20: branch_false: following ‘false’ branch (when ‘child != -1’)...
shadow-4.18.0/src/newgrp.c:307:27: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:307:27: branch_true: following ‘true’ branch (when ‘child != 0’)...
shadow-4.18.0/src/newgrp.c:309:29: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:327:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:328:33: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:328:33: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:328:33: danger: ‘free_tty’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
shadow-4.18.0/src/newgrp.c:328:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newgrp.c:239:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:243:12: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:243:12: branch_false: following ‘false’ branch (when ‘tty’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_true: following ‘true’ branch (when ‘tty’ is NULL)...
shadow-4.18.0/src/newgrp.c:251:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:254:15: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:281:24: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:291:20: branch_false: following ‘false’ branch (when ‘child != -1’)...
shadow-4.18.0/src/newgrp.c:307:27: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:307:27: branch_true: following ‘true’ branch (when ‘child != 0’)...
shadow-4.18.0/src/newgrp.c:309:29: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:327:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:328:33: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:328:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:328:33: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:328:33: acquire_memory: allocated here
shadow-4.18.0/src/newgrp.c:328:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:328:33: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:328:33: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:328:33: danger: ‘saved_locale’ leaks here; was allocated at [(21)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
shadow-4.18.0/src/newgrp.c:332:33: warning[-Wanalyzer-malloc-leak]: leak of ‘free_tty’
shadow-4.18.0/src/newgrp.c:233:13: enter_function: entry to ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:243:12: branch_true: following ‘true’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:244:28: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:244:28: call_function: calling ‘xstrdup’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:244:28: return_function: returning to ‘syslog_sg’ from ‘xstrdup’
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_false: following ‘false’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:254:15: call_function: calling ‘strprefix_’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:254:15: return_function: returning to ‘syslog_sg’ from ‘strprefix_’
shadow-4.18.0/src/newgrp.c:254:15: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:256:9: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:281:24: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:291:20: branch_false: following ‘false’ branch (when ‘child != -1’)...
shadow-4.18.0/src/newgrp.c:307:27: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:307:27: branch_true: following ‘true’ branch (when ‘child != 0’)...
shadow-4.18.0/src/newgrp.c:309:29: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:327:28: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:332:33: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:332:33: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:332:33: danger: ‘free_tty’ leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
shadow-4.18.0/src/newgrp.c:332:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newgrp.c:239:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:243:12: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:243:12: branch_false: following ‘false’ branch (when ‘tty’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_true: following ‘true’ branch (when ‘tty’ is NULL)...
shadow-4.18.0/src/newgrp.c:251:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:254:15: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:281:24: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:291:20: branch_false: following ‘false’ branch (when ‘child != -1’)...
shadow-4.18.0/src/newgrp.c:307:27: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:307:27: branch_true: following ‘true’ branch (when ‘child != 0’)...
shadow-4.18.0/src/newgrp.c:309:29: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:327:28: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:332:33: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:332:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:332:33: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:332:33: acquire_memory: allocated here
shadow-4.18.0/src/newgrp.c:332:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:332:33: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:332:33: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:332:33: danger: ‘saved_locale’ leaks here; was allocated at [(21)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
shadow-4.18.0/src/newgrp.c:340:33: warning[-Wanalyzer-malloc-leak]: leak of ‘free_tty’
shadow-4.18.0/src/newgrp.c:233:13: enter_function: entry to ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:243:12: branch_true: following ‘true’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:244:28: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:244:28: call_function: calling ‘xstrdup’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:244:28: return_function: returning to ‘syslog_sg’ from ‘xstrdup’
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_false: following ‘false’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:254:15: call_function: calling ‘strprefix_’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:254:15: return_function: returning to ‘syslog_sg’ from ‘strprefix_’
shadow-4.18.0/src/newgrp.c:254:15: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:256:9: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:281:24: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:291:20: branch_false: following ‘false’ branch (when ‘child != -1’)...
shadow-4.18.0/src/newgrp.c:307:27: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:307:27: branch_true: following ‘true’ branch (when ‘child != 0’)...
shadow-4.18.0/src/newgrp.c:309:29: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:327:28: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:332:33: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:332:33: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:340:33: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:340:33: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:340:33: danger: ‘free_tty’ leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
shadow-4.18.0/src/newgrp.c:340:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newgrp.c:239:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:243:12: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:243:12: branch_false: following ‘false’ branch (when ‘tty’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_true: following ‘true’ branch (when ‘tty’ is NULL)...
shadow-4.18.0/src/newgrp.c:251:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:254:15: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:281:24: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:291:20: branch_false: following ‘false’ branch (when ‘child != -1’)...
shadow-4.18.0/src/newgrp.c:307:27: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:307:27: branch_true: following ‘true’ branch (when ‘child != 0’)...
shadow-4.18.0/src/newgrp.c:309:29: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:327:28: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:332:33: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:332:33: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:340:33: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:340:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:340:33: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:340:33: acquire_memory: allocated here
shadow-4.18.0/src/newgrp.c:340:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:340:33: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:340:33: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:340:33: danger: ‘saved_locale’ leaks here; was allocated at [(23)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
shadow-4.18.0/src/newgrp.c:344:25: warning[-Wanalyzer-malloc-leak]: leak of ‘free_tty’
shadow-4.18.0/src/newgrp.c:233:13: enter_function: entry to ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:243:12: branch_true: following ‘true’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:244:28: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:244:28: call_function: calling ‘xstrdup’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:244:28: return_function: returning to ‘syslog_sg’ from ‘xstrdup’
shadow-4.18.0/src/newgrp.c:248:12: branch_true: following ‘true’ branch (when ‘loginname’ is NULL)...
shadow-4.18.0/src/newgrp.c:248:12: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:251:12: branch_false: following ‘false’ branch (when ‘tty’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:254:15: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:254:15: call_function: calling ‘strprefix_’ from ‘syslog_sg’
shadow-4.18.0/src/newgrp.c:254:15: return_function: returning to ‘syslog_sg’ from ‘strprefix_’
shadow-4.18.0/src/newgrp.c:254:15: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:256:9: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:256:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:281:24: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:291:20: branch_false: following ‘false’ branch (when ‘child != -1’)...
shadow-4.18.0/src/newgrp.c:307:27: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:307:27: branch_true: following ‘true’ branch (when ‘child != 0’)...
shadow-4.18.0/src/newgrp.c:309:29: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:328:33: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/newgrp.c:344:25: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:344:25: throw: if ‘closelog’ throws an exception...
shadow-4.18.0/src/newgrp.c:344:25: danger: ‘free_tty’ leaks here; was allocated at [(7)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
shadow-4.18.0/src/newgrp.c:443:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newgrp.c:436:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:437:17: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:443:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:443:17: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:443:17: acquire_memory: allocated here
shadow-4.18.0/src/newgrp.c:443:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:443:17: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:443:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:443:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
shadow-4.18.0/src/newgrp.c:537:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newgrp.c:436:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:448:9: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:474:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:513:20: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:516:27: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newgrp.c:532:42: branch_false: ...to here
shadow-4.18.0/src/newgrp.c:533:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newgrp.c:536:64: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:537:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:537:33: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:537:33: acquire_memory: allocated here
shadow-4.18.0/src/newgrp.c:537:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newgrp.c:537:33: branch_true: ...to here
shadow-4.18.0/src/newgrp.c:537:33: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newgrp.c:537:33: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
shadow-4.18.0/src/newuidmap.c:118:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newuidmap.c:93:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
shadow-4.18.0/src/newuidmap.c:96:9: branch_false: ...to here
shadow-4.18.0/src/newuidmap.c:108:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newuidmap.c:113:14: branch_false: ...to here
shadow-4.18.0/src/newuidmap.c:114:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newuidmap.c:116:25: branch_true: ...to here
shadow-4.18.0/src/newuidmap.c:118:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newuidmap.c:118:17: branch_true: ...to here
shadow-4.18.0/src/newuidmap.c:118:17: acquire_memory: allocated here
shadow-4.18.0/src/newuidmap.c:118:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newuidmap.c:118:17: branch_true: ...to here
shadow-4.18.0/src/newuidmap.c:118:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/newuidmap.c:118:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
shadow-4.18.0/src/newusers.c:178:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:862:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/newusers.c:870:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:871:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:874:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
shadow-4.18.0/src/newusers.c:185:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:862:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/newusers.c:870:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:871:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:874:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
shadow-4.18.0/src/newusers.c:192:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:862:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/newusers.c:870:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:871:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:874:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
shadow-4.18.0/src/newusers.c:200:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:862:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/newusers.c:870:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:871:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:874:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
shadow-4.18.0/src/newusers.c:209:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:862:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/newusers.c:870:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:871:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:874:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
shadow-4.18.0/src/newusers.c:216:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:862:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/newusers.c:870:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:871:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:874:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
shadow-4.18.0/src/newusers.c:970:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:969:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:970:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:970:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:970:17: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:970:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:970:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:970:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:970:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
shadow-4.18.0/src/newusers.c:975:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:973:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:973:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:974:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:975:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:975:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:975:17: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:975:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:975:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:975:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:975:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
shadow-4.18.0/src/newusers.c:985:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:973:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:980:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:981:21: branch_true: ...to here
shadow-4.18.0/src/newusers.c:981:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:982:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:985:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:985:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:985:25: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:985:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:985:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:985:25: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:985:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
shadow-4.18.0/src/newusers.c:992:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:973:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:980:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:981:21: branch_true: ...to here
shadow-4.18.0/src/newusers.c:981:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:988:21: branch_false: ...to here
shadow-4.18.0/src/newusers.c:988:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:989:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:992:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:992:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:992:25: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:992:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:992:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:992:25: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:992:25: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
shadow-4.18.0/src/newusers.c:1002:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:973:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:998:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:999:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1002:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1002:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1002:17: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:1002:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1002:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1002:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:1002:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
shadow-4.18.0/src/newusers.c:1009:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:973:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:998:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:1006:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:1006:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:1009:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1009:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1009:17: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:1009:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1009:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1009:17: throw: if ‘sub_uid_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:1009:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
shadow-4.18.0/src/newusers.c:1015:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:973:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:998:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:1006:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:1012:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:1015:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1015:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1015:17: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:1015:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1015:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1015:17: throw: if ‘sub_gid_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:1015:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
shadow-4.18.0/src/newusers.c:1024:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:973:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:998:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:1006:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:1020:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:1021:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1024:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1024:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1024:17: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:1024:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1024:17: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1024:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:1024:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
shadow-4.18.0/src/newusers.c:1035:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:973:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:998:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:1006:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:1030:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:1031:21: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1031:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:1032:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1035:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1035:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1035:25: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:1035:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1035:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1035:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:1035:25: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
shadow-4.18.0/src/newusers.c:1042:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:973:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:998:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:1006:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:1030:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:1031:21: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1031:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:1038:21: branch_false: ...to here
shadow-4.18.0/src/newusers.c:1038:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:1039:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1042:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1042:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1042:25: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:1042:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1042:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1042:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:1042:25: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
shadow-4.18.0/src/newusers.c:1052:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:973:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:998:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:1006:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:1006:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:1012:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:1049:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:1050:21: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1050:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:1051:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1052:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1052:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1052:25: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:1052:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1052:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1052:25: throw: if ‘sub_uid_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:1052:25: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
shadow-4.18.0/src/newusers.c:1060:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/newusers.c:968:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:973:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:998:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:1006:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:1012:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/newusers.c:1020:13: branch_false: ...to here
shadow-4.18.0/src/newusers.c:1057:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:1058:21: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1058:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/newusers.c:1059:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1060:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1060:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1060:25: acquire_memory: allocated here
shadow-4.18.0/src/newusers.c:1060:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/newusers.c:1060:25: branch_true: ...to here
shadow-4.18.0/src/newusers.c:1060:25: throw: if ‘sub_gid_dbname’ throws an exception...
shadow-4.18.0/src/newusers.c:1060:25: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
shadow-4.18.0/src/passwd.c:488:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/passwd.c:485:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:486:21: branch_true: ...to here
shadow-4.18.0/src/passwd.c:486:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:487:32: branch_true: ...to here
shadow-4.18.0/src/passwd.c:488:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:488:25: branch_true: ...to here
shadow-4.18.0/src/passwd.c:488:25: acquire_memory: allocated here
shadow-4.18.0/src/passwd.c:488:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:488:25: branch_true: ...to here
shadow-4.18.0/src/passwd.c:488:25: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/passwd.c:488:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
shadow-4.18.0/src/passwd.c:496:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/passwd.c:493:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:494:21: branch_true: ...to here
shadow-4.18.0/src/passwd.c:494:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:495:32: branch_true: ...to here
shadow-4.18.0/src/passwd.c:496:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:496:25: branch_true: ...to here
shadow-4.18.0/src/passwd.c:496:25: acquire_memory: allocated here
shadow-4.18.0/src/passwd.c:496:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:496:25: branch_true: ...to here
shadow-4.18.0/src/passwd.c:496:25: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/passwd.c:496:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
shadow-4.18.0/src/passwd.c:532:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
shadow-4.18.0/src/passwd.c:512:14: enter_function: entry to ‘update_crypt_pw’
shadow-4.18.0/src/passwd.c:514:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:516:21: branch_false: ...to here
shadow-4.18.0/src/passwd.c:516:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:517:30: branch_true: ...to here
shadow-4.18.0/src/passwd.c:517:30: call_function: calling ‘xstrdup’ from ‘update_crypt_pw’
shadow-4.18.0/src/passwd.c:517:30: return_function: returning to ‘update_crypt_pw’ from ‘xstrdup’
shadow-4.18.0/src/passwd.c:524:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:524:21: branch_true: ...to here
shadow-4.18.0/src/passwd.c:524:21: call_function: calling ‘strprefix_’ from ‘update_crypt_pw’
shadow-4.18.0/src/passwd.c:524:21: return_function: returning to ‘update_crypt_pw’ from ‘strprefix_’
shadow-4.18.0/src/passwd.c:524:13: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:525:21: branch_true: ...to here
shadow-4.18.0/src/passwd.c:525:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:532:25: branch_false: ...to here
shadow-4.18.0/src/passwd.c:536:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:539:25: throw: if ‘xaprintf’ throws an exception...
shadow-4.18.0/src/passwd.c:532:25: danger: ‘cp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
shadow-4.18.0/src/passwd.c:539:25: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
shadow-4.18.0/src/passwd.c:512:14: enter_function: entry to ‘update_crypt_pw’
shadow-4.18.0/src/passwd.c:514:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:516:21: branch_false: ...to here
shadow-4.18.0/src/passwd.c:516:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:517:30: branch_true: ...to here
shadow-4.18.0/src/passwd.c:517:30: call_function: calling ‘xstrdup’ from ‘update_crypt_pw’
shadow-4.18.0/src/passwd.c:517:30: return_function: returning to ‘update_crypt_pw’ from ‘xstrdup’
shadow-4.18.0/src/passwd.c:536:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:539:25: throw: if ‘xaprintf’ throws an exception...
shadow-4.18.0/src/passwd.c:539:25: danger: ‘cp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
shadow-4.18.0/src/passwd.c:568:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/passwd.c:557:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:563:9: branch_false: ...to here
shadow-4.18.0/src/passwd.c:564:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:565:24: branch_true: ...to here
shadow-4.18.0/src/passwd.c:568:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:568:17: branch_true: ...to here
shadow-4.18.0/src/passwd.c:568:17: acquire_memory: allocated here
shadow-4.18.0/src/passwd.c:568:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:568:17: branch_true: ...to here
shadow-4.18.0/src/passwd.c:568:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/passwd.c:568:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
shadow-4.18.0/src/passwd.c:622:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/passwd.c:611:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:617:9: branch_false: ...to here
shadow-4.18.0/src/passwd.c:618:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:619:24: branch_true: ...to here
shadow-4.18.0/src/passwd.c:622:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:622:17: branch_true: ...to here
shadow-4.18.0/src/passwd.c:622:17: acquire_memory: allocated here
shadow-4.18.0/src/passwd.c:622:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:622:17: branch_true: ...to here
shadow-4.18.0/src/passwd.c:622:17: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/passwd.c:622:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
shadow-4.18.0/src/passwd.c:911:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/passwd.c:907:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:909:33: branch_true: ...to here
shadow-4.18.0/src/passwd.c:911:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:911:17: branch_true: ...to here
shadow-4.18.0/src/passwd.c:911:17: acquire_memory: allocated here
shadow-4.18.0/src/passwd.c:911:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:911:17: branch_true: ...to here
shadow-4.18.0/src/passwd.c:911:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/passwd.c:911:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
shadow-4.18.0/src/passwd.c:999:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/passwd.c:907:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:915:27: branch_false: ...to here
shadow-4.18.0/src/passwd.c:929:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:937:13: branch_false: ...to here
shadow-4.18.0/src/passwd.c:937:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:974:13: branch_false: ...to here
shadow-4.18.0/src/passwd.c:989:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:998:13: branch_false: ...to here
shadow-4.18.0/src/passwd.c:998:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:999:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:999:17: branch_true: ...to here
shadow-4.18.0/src/passwd.c:999:17: acquire_memory: allocated here
shadow-4.18.0/src/passwd.c:999:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:999:17: branch_true: ...to here
shadow-4.18.0/src/passwd.c:999:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/passwd.c:999:17: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
shadow-4.18.0/src/passwd.c:1017:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/passwd.c:907:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:915:27: branch_false: ...to here
shadow-4.18.0/src/passwd.c:929:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:937:13: branch_false: ...to here
shadow-4.18.0/src/passwd.c:937:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:974:13: branch_false: ...to here
shadow-4.18.0/src/passwd.c:989:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:998:13: branch_false: ...to here
shadow-4.18.0/src/passwd.c:1013:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/passwd.c:1013:25: branch_false: ...to here
shadow-4.18.0/src/passwd.c:1013:13: branch_true: following ‘true’ branch...
shadow-4.18.0/src/passwd.c:1014:17: branch_true: ...to here
shadow-4.18.0/src/passwd.c:1017:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:1017:17: branch_true: ...to here
shadow-4.18.0/src/passwd.c:1017:17: acquire_memory: allocated here
shadow-4.18.0/src/passwd.c:1017:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/passwd.c:1017:17: branch_true: ...to here
shadow-4.18.0/src/passwd.c:1017:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/passwd.c:1017:17: danger: ‘saved_locale’ leaks here; was allocated at [(15)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
shadow-4.18.0/src/pwck.c:91:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwck.c:87:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:88:21: branch_true: ...to here
shadow-4.18.0/src/pwck.c:88:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:89:25: branch_true: ...to here
shadow-4.18.0/src/pwck.c:90:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:91:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:91:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:91:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:91:33: acquire_memory: allocated here
shadow-4.18.0/src/pwck.c:91:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:91:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:91:33: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/pwck.c:91:33: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
shadow-4.18.0/src/pwck.c:102:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwck.c:98:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:99:21: branch_true: ...to here
shadow-4.18.0/src/pwck.c:99:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:100:25: branch_true: ...to here
shadow-4.18.0/src/pwck.c:101:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:102:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:102:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:102:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:102:33: acquire_memory: allocated here
shadow-4.18.0/src/pwck.c:102:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:102:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:102:33: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/pwck.c:102:33: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
shadow-4.18.0/src/pwck.c:280:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwck.c:276:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:277:17: branch_true: ...to here
shadow-4.18.0/src/pwck.c:279:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:280:25: branch_true: ...to here
shadow-4.18.0/src/pwck.c:280:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:280:25: branch_true: ...to here
shadow-4.18.0/src/pwck.c:280:25: acquire_memory: allocated here
shadow-4.18.0/src/pwck.c:280:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:280:25: branch_true: ...to here
shadow-4.18.0/src/pwck.c:280:25: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/pwck.c:280:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
shadow-4.18.0/src/pwck.c:289:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwck.c:276:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwck.c:284:13: branch_false: ...to here
shadow-4.18.0/src/pwck.c:284:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:285:41: branch_true: ...to here
shadow-4.18.0/src/pwck.c:285:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:286:25: branch_true: ...to here
shadow-4.18.0/src/pwck.c:288:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:289:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:289:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:289:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:289:33: acquire_memory: allocated here
shadow-4.18.0/src/pwck.c:289:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:289:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:289:33: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/pwck.c:289:33: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def384]
shadow-4.18.0/src/pwck.c:317:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwck.c:311:12: branch_true: following ‘true’ branch (when ‘changed != 0’)...
shadow-4.18.0/src/pwck.c:312:21: branch_true: ...to here
shadow-4.18.0/src/pwck.c:312:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:313:25: branch_true: ...to here
shadow-4.18.0/src/pwck.c:316:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:317:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:317:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:317:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:317:33: acquire_memory: allocated here
shadow-4.18.0/src/pwck.c:317:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:317:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:317:33: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/pwck.c:317:33: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
shadow-4.18.0/src/pwck.c:328:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwck.c:311:12: branch_true: following ‘true’ branch (when ‘changed != 0’)...
shadow-4.18.0/src/pwck.c:312:21: branch_true: ...to here
shadow-4.18.0/src/pwck.c:312:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwck.c:323:21: branch_false: ...to here
shadow-4.18.0/src/pwck.c:323:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:327:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:328:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:328:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:328:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:328:33: acquire_memory: allocated here
shadow-4.18.0/src/pwck.c:328:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:328:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:328:33: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/pwck.c:328:33: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
shadow-4.18.0/src/pwck.c:346:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwck.c:340:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:341:21: branch_true: ...to here
shadow-4.18.0/src/pwck.c:341:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:342:25: branch_true: ...to here
shadow-4.18.0/src/pwck.c:345:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:346:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:346:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:346:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:346:33: acquire_memory: allocated here
shadow-4.18.0/src/pwck.c:346:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:346:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:346:33: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/pwck.c:346:33: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
shadow-4.18.0/src/pwck.c:359:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwck.c:353:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:354:21: branch_true: ...to here
shadow-4.18.0/src/pwck.c:354:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:355:25: branch_true: ...to here
shadow-4.18.0/src/pwck.c:358:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:359:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:359:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:359:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:359:33: acquire_memory: allocated here
shadow-4.18.0/src/pwck.c:359:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:359:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:359:33: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/pwck.c:359:33: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
shadow-4.18.0/src/pwck.c:420:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwck.c:382:38: branch_true: following ‘true’ branch (when ‘pfe’ is non-NULL)...
shadow-4.18.0/src/pwck.c:387:21: branch_true: ...to here
shadow-4.18.0/src/pwck.c:387:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwck.c:396:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:401:31: branch_true: ...to here
shadow-4.18.0/src/pwck.c:419:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:420:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:420:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:420:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:420:33: acquire_memory: allocated here
shadow-4.18.0/src/pwck.c:420:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:420:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:420:33: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/pwck.c:420:33: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
shadow-4.18.0/src/pwck.c:745:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwck.c:699:39: branch_true: following ‘true’ branch (when ‘spe’ is non-NULL)...
shadow-4.18.0/src/pwck.c:704:29: branch_true: ...to here
shadow-4.18.0/src/pwck.c:712:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwck.c:721:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:726:31: branch_true: ...to here
shadow-4.18.0/src/pwck.c:744:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwck.c:745:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:745:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:745:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:745:33: acquire_memory: allocated here
shadow-4.18.0/src/pwck.c:745:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwck.c:745:33: branch_true: ...to here
shadow-4.18.0/src/pwck.c:745:33: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/pwck.c:745:33: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
shadow-4.18.0/src/pwconv.c:88:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwconv.c:85:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwconv.c:86:21: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:86:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwconv.c:87:25: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:88:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:88:25: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:88:25: acquire_memory: allocated here
shadow-4.18.0/src/pwconv.c:88:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:88:25: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:88:25: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/pwconv.c:88:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
shadow-4.18.0/src/pwconv.c:96:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwconv.c:93:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwconv.c:94:21: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:94:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwconv.c:95:25: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:96:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:96:25: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:96:25: acquire_memory: allocated here
shadow-4.18.0/src/pwconv.c:96:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:96:25: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:96:25: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/pwconv.c:96:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
shadow-4.18.0/src/pwconv.c:281:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwconv.c:153:5: enter_function: entry to ‘main’
shadow-4.18.0/src/pwconv.c:171:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/pwconv.c:171:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/pwconv.c:180:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:186:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:187:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:193:13: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:193:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:199:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:200:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:209:16: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:277:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwconv.c:278:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:281:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:281:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:281:17: acquire_memory: allocated here
shadow-4.18.0/src/pwconv.c:281:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:281:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:281:17: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/pwconv.c:281:17: danger: ‘saved_locale’ leaks here; was allocated at [(19)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
shadow-4.18.0/src/pwconv.c:288:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwconv.c:153:5: enter_function: entry to ‘main’
shadow-4.18.0/src/pwconv.c:171:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/pwconv.c:171:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/pwconv.c:180:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:186:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:187:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:193:13: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:193:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:199:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:200:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:209:16: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:277:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:284:13: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:284:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwconv.c:285:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:288:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:288:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:288:17: acquire_memory: allocated here
shadow-4.18.0/src/pwconv.c:288:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:288:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:288:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/pwconv.c:288:17: danger: ‘saved_locale’ leaks here; was allocated at [(21)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
shadow-4.18.0/src/pwconv.c:298:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwconv.c:153:5: enter_function: entry to ‘main’
shadow-4.18.0/src/pwconv.c:171:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/pwconv.c:171:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/pwconv.c:180:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:186:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:187:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:193:13: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:193:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:199:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:200:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:209:16: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:277:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:284:13: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:284:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:293:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:294:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwconv.c:298:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:298:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:298:17: acquire_memory: allocated here
shadow-4.18.0/src/pwconv.c:298:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:298:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:298:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/pwconv.c:298:17: danger: ‘saved_locale’ leaks here; was allocated at [(23)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
shadow-4.18.0/src/pwconv.c:304:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwconv.c:153:5: enter_function: entry to ‘main’
shadow-4.18.0/src/pwconv.c:171:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/pwconv.c:171:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/pwconv.c:180:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:186:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:187:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:193:13: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:193:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:199:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:200:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:209:16: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:277:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:284:13: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:284:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:293:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:302:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwconv.c:303:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:304:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:304:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:304:17: acquire_memory: allocated here
shadow-4.18.0/src/pwconv.c:304:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:304:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:304:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/pwconv.c:304:17: danger: ‘saved_locale’ leaks here; was allocated at [(23)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
shadow-4.18.0/src/pwconv.c:310:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwconv.c:153:5: enter_function: entry to ‘main’
shadow-4.18.0/src/pwconv.c:171:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/pwconv.c:171:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/pwconv.c:180:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:186:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:187:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:193:13: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:193:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:199:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:200:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:209:16: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:277:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:284:13: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:284:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwconv.c:293:9: branch_false: ...to here
shadow-4.18.0/src/pwconv.c:308:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwconv.c:309:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:310:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:310:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:310:17: acquire_memory: allocated here
shadow-4.18.0/src/pwconv.c:310:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwconv.c:310:17: branch_true: ...to here
shadow-4.18.0/src/pwconv.c:310:17: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/pwconv.c:310:17: danger: ‘saved_locale’ leaks here; was allocated at [(23)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
shadow-4.18.0/src/pwunconv.c:52:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwunconv.c:49:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:50:21: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:50:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:51:25: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:52:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:52:25: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:52:25: acquire_memory: allocated here
shadow-4.18.0/src/pwunconv.c:52:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:52:25: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:52:25: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/pwunconv.c:52:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
shadow-4.18.0/src/pwunconv.c:59:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwunconv.c:56:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:57:21: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:57:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:58:25: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:59:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:59:25: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:59:25: acquire_memory: allocated here
shadow-4.18.0/src/pwunconv.c:59:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:59:25: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:59:25: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/pwunconv.c:59:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
shadow-4.18.0/src/pwunconv.c:214:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwunconv.c:115:5: enter_function: entry to ‘main’
shadow-4.18.0/src/pwunconv.c:132:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/pwunconv.c:132:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/pwunconv.c:141:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:146:13: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:146:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:152:9: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:153:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:160:13: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:160:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:166:9: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:167:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:174:16: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:210:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:211:17: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:214:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:214:17: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:214:17: acquire_memory: allocated here
shadow-4.18.0/src/pwunconv.c:214:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:214:17: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:214:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/pwunconv.c:214:17: danger: ‘saved_locale’ leaks here; was allocated at [(21)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
shadow-4.18.0/src/pwunconv.c:221:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwunconv.c:115:5: enter_function: entry to ‘main’
shadow-4.18.0/src/pwunconv.c:132:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/pwunconv.c:132:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/pwunconv.c:141:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:146:13: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:146:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:152:9: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:153:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:160:13: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:160:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:166:9: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:167:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:174:16: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:210:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:218:13: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:218:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:220:26: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:221:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:221:17: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:221:17: acquire_memory: allocated here
shadow-4.18.0/src/pwunconv.c:221:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:221:17: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:221:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/pwunconv.c:221:17: danger: ‘saved_locale’ leaks here; was allocated at [(23)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
shadow-4.18.0/src/pwunconv.c:227:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwunconv.c:115:5: enter_function: entry to ‘main’
shadow-4.18.0/src/pwunconv.c:132:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/pwunconv.c:132:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/pwunconv.c:141:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:146:13: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:146:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:152:9: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:153:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:160:13: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:160:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:166:9: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:167:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:174:16: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:210:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:218:13: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:218:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:225:13: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:225:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:226:17: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:227:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:227:17: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:227:17: acquire_memory: allocated here
shadow-4.18.0/src/pwunconv.c:227:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:227:17: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:227:17: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/pwunconv.c:227:17: danger: ‘saved_locale’ leaks here; was allocated at [(25)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
shadow-4.18.0/src/pwunconv.c:232:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/pwunconv.c:115:5: enter_function: entry to ‘main’
shadow-4.18.0/src/pwunconv.c:132:9: call_function: calling ‘process_flags’ from ‘main’
shadow-4.18.0/src/pwunconv.c:132:9: return_function: returning to ‘main’ from ‘process_flags’
shadow-4.18.0/src/pwunconv.c:141:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:146:13: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:146:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:152:9: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:153:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:160:13: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:160:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:166:9: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:167:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:174:16: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:210:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:218:13: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:218:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/pwunconv.c:225:13: branch_false: ...to here
shadow-4.18.0/src/pwunconv.c:230:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/pwunconv.c:231:17: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:232:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:232:17: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:232:17: acquire_memory: allocated here
shadow-4.18.0/src/pwunconv.c:232:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/pwunconv.c:232:17: branch_true: ...to here
shadow-4.18.0/src/pwunconv.c:232:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/pwunconv.c:232:17: danger: ‘saved_locale’ leaks here; was allocated at [(25)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
shadow-4.18.0/src/su.c:206:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/su.c:650:34: enter_function: entry to ‘do_check_perms’
shadow-4.18.0/src/su.c:662:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:664:33: branch_true: ...to here
shadow-4.18.0/src/su.c:665:17: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/su.c:666:17: branch_false: ...to here
shadow-4.18.0/src/su.c:666:17: call_function: calling ‘su_failure’ from ‘do_check_perms’
Error: COMPILER_WARNING (CWE-252): [#def404]
shadow-4.18.0/src/su.c: scope_hint: In function ‘su_failure’
shadow-4.18.0/src/su.c:215:9: warning[-Wunused-result]: ignoring return value of ‘audit_log_acct_message’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def405]
shadow-4.18.0/src/su.c:254:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xreallocarray(0, n_args + 3, 8)’
shadow-4.18.0/src/su.c:235:13: enter_function: entry to ‘execve_shell’
shadow-4.18.0/src/su.c:243:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:243:12: branch_true: ...to here
shadow-4.18.0/src/su.c:253:25: call_function: inlined call to ‘xmallocarray’ from ‘execve_shell’
shadow-4.18.0/src/su.c:254:17: danger: ‘xreallocarray(0, n_args + 3, 8)’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
shadow-4.18.0/src/su.c:297:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/su.c:293:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:297:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:297:17: branch_true: ...to here
shadow-4.18.0/src/su.c:297:17: acquire_memory: allocated here
shadow-4.18.0/src/su.c:297:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:297:17: branch_true: ...to here
shadow-4.18.0/src/su.c:297:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/su.c:297:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
shadow-4.18.0/src/su.c:310:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/su.c:304:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/su.c:306:19: branch_false: ...to here
shadow-4.18.0/src/su.c:306:19: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:308:33: branch_true: ...to here
shadow-4.18.0/src/su.c:310:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:310:17: branch_true: ...to here
shadow-4.18.0/src/su.c:310:17: acquire_memory: allocated here
shadow-4.18.0/src/su.c:310:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:310:17: branch_true: ...to here
shadow-4.18.0/src/su.c:310:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/su.c:310:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
shadow-4.18.0/src/su.c:428:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/su.c:304:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/su.c:306:19: branch_false: ...to here
shadow-4.18.0/src/su.c:306:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/su.c:317:9: branch_false: ...to here
shadow-4.18.0/src/su.c:427:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:428:17: branch_true: ...to here
shadow-4.18.0/src/su.c:428:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:428:17: branch_true: ...to here
shadow-4.18.0/src/su.c:428:17: acquire_memory: allocated here
shadow-4.18.0/src/su.c:428:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:428:17: branch_true: ...to here
shadow-4.18.0/src/su.c:428:17: throw: if ‘pam_strerror’ throws an exception...
shadow-4.18.0/src/su.c:428:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
shadow-4.18.0/src/su.c:470:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/su.c:469:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:470:17: branch_true: ...to here
shadow-4.18.0/src/su.c:470:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:470:17: branch_true: ...to here
shadow-4.18.0/src/su.c:470:17: acquire_memory: allocated here
shadow-4.18.0/src/su.c:470:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:470:17: branch_true: ...to here
shadow-4.18.0/src/su.c:470:17: throw: if ‘pam_strerror’ throws an exception...
shadow-4.18.0/src/su.c:470:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
shadow-4.18.0/src/su.c:486:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/su.c:469:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/su.c:477:15: branch_false: ...to here
shadow-4.18.0/src/su.c:478:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:479:21: branch_true: ...to here
shadow-4.18.0/src/su.c:479:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/su.c:483:27: branch_false: ...to here
shadow-4.18.0/src/su.c:483:27: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:484:31: branch_true: ...to here
shadow-4.18.0/src/su.c:485:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:486:33: branch_true: ...to here
shadow-4.18.0/src/su.c:486:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:486:33: branch_true: ...to here
shadow-4.18.0/src/su.c:486:33: acquire_memory: allocated here
shadow-4.18.0/src/su.c:486:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:486:33: branch_true: ...to here
shadow-4.18.0/src/su.c:486:33: throw: if ‘pam_strerror’ throws an exception...
shadow-4.18.0/src/su.c:486:33: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
shadow-4.18.0/src/su.c:495:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/su.c:469:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/su.c:477:15: branch_false: ...to here
shadow-4.18.0/src/su.c:478:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:479:21: branch_true: ...to here
shadow-4.18.0/src/su.c:479:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/su.c:483:27: branch_false: ...to here
shadow-4.18.0/src/su.c:483:27: branch_false: following ‘false’ branch...
shadow-4.18.0/src/su.c:495:25: branch_false: ...to here
shadow-4.18.0/src/su.c:495:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:495:25: branch_true: ...to here
shadow-4.18.0/src/su.c:495:25: acquire_memory: allocated here
shadow-4.18.0/src/su.c:495:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:495:25: branch_true: ...to here
shadow-4.18.0/src/su.c:495:25: throw: if ‘pam_strerror’ throws an exception...
shadow-4.18.0/src/su.c:495:25: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
shadow-4.18.0/src/su.c:665:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/su.c:662:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:664:33: branch_true: ...to here
shadow-4.18.0/src/su.c:665:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:665:17: branch_true: ...to here
shadow-4.18.0/src/su.c:665:17: acquire_memory: allocated here
shadow-4.18.0/src/su.c:665:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:665:17: branch_true: ...to here
shadow-4.18.0/src/su.c:665:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/su.c:665:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
shadow-4.18.0/src/su.c:784:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/su.c:758:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:758:34: branch_true: ...to here
shadow-4.18.0/src/su.c:780:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:782:26: branch_true: ...to here
shadow-4.18.0/src/su.c:784:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:784:17: branch_true: ...to here
shadow-4.18.0/src/su.c:784:17: acquire_memory: allocated here
shadow-4.18.0/src/su.c:784:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:784:17: branch_true: ...to here
shadow-4.18.0/src/su.c:784:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/su.c:784:17: danger: ‘saved_locale’ leaks here; was allocated at [(8)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
shadow-4.18.0/src/su.c:873:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/su.c:866:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:867:42: branch_true: ...to here
shadow-4.18.0/src/su.c:872:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/su.c:873:33: branch_true: ...to here
shadow-4.18.0/src/su.c:873:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:873:33: branch_true: ...to here
shadow-4.18.0/src/su.c:873:33: acquire_memory: allocated here
shadow-4.18.0/src/su.c:873:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/su.c:873:33: branch_true: ...to here
shadow-4.18.0/src/su.c:873:33: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/su.c:873:33: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/6)
Error: COMPILER_WARNING (CWE-252): [#def415]
shadow-4.18.0/src/su.c: scope_hint: In function ‘main’
shadow-4.18.0/src/su.c:1143:9: warning[-Wunused-result]: ignoring return value of ‘audit_log_acct_message’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def416]
shadow-4.18.0/src/sulogin.c:89:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(argv[1], 2)’
shadow-4.18.0/src/sulogin.c:84:12: branch_true: following ‘true’ branch (when ‘argc > 1’)...
shadow-4.18.0/src/sulogin.c:85:17: branch_true: ...to here
shadow-4.18.0/src/sulogin.c:89:21: acquire_resource: opened here
shadow-4.18.0/src/sulogin.c:89:20: danger: ‘open(argv[1], 2)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-910): [#def417]
shadow-4.18.0/src/sulogin.c:91:17: warning[-Wanalyzer-fd-use-after-close]: ‘dup’ on closed file descriptor ‘0’
shadow-4.18.0/src/sulogin.c:84:12: branch_true: following ‘true’ branch (when ‘argc > 1’)...
shadow-4.18.0/src/sulogin.c:85:17: branch_true: ...to here
shadow-4.18.0/src/sulogin.c:85:17: release_resource: closed here
shadow-4.18.0/src/sulogin.c:89:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:91:17: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:91:17: danger: ‘dup’ on closed file descriptor ‘0’; ‘close’ was at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-252): [#def418]
shadow-4.18.0/src/sulogin.c: scope_hint: In function ‘main’
shadow-4.18.0/src/sulogin.c:91:17: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-910): [#def419]
shadow-4.18.0/src/sulogin.c:92:17: warning[-Wanalyzer-fd-use-after-close]: ‘dup’ on closed file descriptor ‘0’
shadow-4.18.0/src/sulogin.c:84:12: branch_true: following ‘true’ branch (when ‘argc > 1’)...
shadow-4.18.0/src/sulogin.c:85:17: branch_true: ...to here
shadow-4.18.0/src/sulogin.c:85:17: release_resource: closed here
shadow-4.18.0/src/sulogin.c:89:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:91:17: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:92:17: danger: ‘dup’ on closed file descriptor ‘0’; ‘close’ was at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-252): [#def420]
shadow-4.18.0/src/sulogin.c:92:17: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
shadow-4.18.0/src/sulogin.c:200:25: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/sulogin.c:190:1: enter_function: entry to ‘pw_entry’
shadow-4.18.0/src/sulogin.c:195:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:198:14: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:199:26: call_function: calling ‘xstrdup’ from ‘pw_entry’
shadow-4.18.0/src/sulogin.c:199:26: return_function: returning to ‘pw_entry’ from ‘xstrdup’
shadow-4.18.0/src/sulogin.c:203:27: call_function: calling ‘xstrdup’ from ‘pw_entry’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
shadow-4.18.0/src/sulogin.c:204:14: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/sulogin.c:190:1: enter_function: entry to ‘pw_entry’
shadow-4.18.0/src/sulogin.c:195:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:198:14: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:199:26: call_function: calling ‘xstrdup’ from ‘pw_entry’
shadow-4.18.0/src/sulogin.c:199:26: return_function: returning to ‘pw_entry’ from ‘xstrdup’
shadow-4.18.0/src/sulogin.c:203:27: call_function: calling ‘xstrdup’ from ‘pw_entry’
shadow-4.18.0/src/sulogin.c:203:27: return_function: returning to ‘pw_entry’ from ‘xstrdup’
shadow-4.18.0/src/sulogin.c:205:25: call_function: calling ‘xstrdup’ from ‘pw_entry’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
shadow-4.18.0/src/sulogin.c:206:14: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/sulogin.c:190:1: enter_function: entry to ‘pw_entry’
shadow-4.18.0/src/sulogin.c:195:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:198:14: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:199:26: call_function: calling ‘xstrdup’ from ‘pw_entry’
shadow-4.18.0/src/sulogin.c:199:26: return_function: returning to ‘pw_entry’ from ‘xstrdup’
shadow-4.18.0/src/sulogin.c:203:27: call_function: calling ‘xstrdup’ from ‘pw_entry’
shadow-4.18.0/src/sulogin.c:203:27: return_function: returning to ‘pw_entry’ from ‘xstrdup’
shadow-4.18.0/src/sulogin.c:205:25: call_function: calling ‘xstrdup’ from ‘pw_entry’
shadow-4.18.0/src/sulogin.c:205:25: return_function: returning to ‘pw_entry’ from ‘xstrdup’
shadow-4.18.0/src/sulogin.c:207:27: call_function: calling ‘xstrdup’ from ‘pw_entry’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
shadow-4.18.0/src/sulogin.c:210:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pwent.pw_shell’
shadow-4.18.0/src/sulogin.c:59:1: enter_function: entry to ‘main’
shadow-4.18.0/src/sulogin.c:84:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
shadow-4.18.0/src/sulogin.c:94:13: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:94:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:103:14: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:103:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:103:35: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:103:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:103:56: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:103:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:107:13: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:134:21: call_function: calling ‘pw_entry’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
shadow-4.18.0/src/sulogin.c:211:22: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/sulogin.c:59:1: enter_function: entry to ‘main’
shadow-4.18.0/src/sulogin.c:84:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
shadow-4.18.0/src/sulogin.c:94:13: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:94:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:103:14: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:103:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:103:35: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:103:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:103:56: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:103:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:107:13: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:134:21: call_function: calling ‘pw_entry’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
shadow-4.18.0/src/sulogin.c:216:14: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/sulogin.c:59:1: enter_function: entry to ‘main’
shadow-4.18.0/src/sulogin.c:84:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
shadow-4.18.0/src/sulogin.c:94:13: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:94:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:103:14: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:103:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:103:35: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:103:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:103:56: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:103:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/sulogin.c:107:13: branch_false: ...to here
shadow-4.18.0/src/sulogin.c:134:21: call_function: calling ‘pw_entry’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
shadow-4.18.0/src/useradd.c:265:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bhome’
shadow-4.18.0/src/useradd.c:2177:13: enter_function: entry to ‘create_home’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2187:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2197:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2200:17: call_function: calling ‘fail_exit’ from ‘create_home’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
shadow-4.18.0/src/useradd.c:265:17: warning[-Wanalyzer-malloc-leak]: leak of ‘btrfs_check’
shadow-4.18.0/src/useradd.c:2177:13: enter_function: entry to ‘create_home’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2208:19: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2208:39: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2210:21: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2210:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2210:47: call_function: inlined call to ‘streq’ from ‘create_home’
shadow-4.18.0/src/useradd.c:2214:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2223:21: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2223:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2224:45: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2226:28: branch_false: following ‘false’ branch (when ‘btrfs_check’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2232:45: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2233:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2235:41: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2237:33: call_function: calling ‘fail_exit’ from ‘create_home’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
shadow-4.18.0/src/useradd.c:265:17: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
shadow-4.18.0/src/useradd.c:2298:13: enter_function: entry to ‘create_mail’
shadow-4.18.0/src/useradd.c:2307:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2310:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2319:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2320:24: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2320:24: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2325:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2327:25: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2329:17: call_function: calling ‘fail_exit’ from ‘create_mail’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
shadow-4.18.0/src/useradd.c:265:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1662:13: enter_function: entry to ‘close_group_files’
shadow-4.18.0/src/useradd.c:1667:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1668:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1671:17: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:1672:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:1672:17: call_function: calling ‘fail_exit’ from ‘close_group_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
shadow-4.18.0/src/useradd.c:268:27: warning[-Wanalyzer-malloc-leak]: leak of ‘bhome’
shadow-4.18.0/src/useradd.c:2177:13: enter_function: entry to ‘create_home’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2187:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2197:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2200:17: call_function: calling ‘fail_exit’ from ‘create_home’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
shadow-4.18.0/src/useradd.c:268:27: warning[-Wanalyzer-malloc-leak]: leak of ‘btrfs_check’
shadow-4.18.0/src/useradd.c:2177:13: enter_function: entry to ‘create_home’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2208:19: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2208:39: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2210:21: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2210:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2210:47: call_function: inlined call to ‘streq’ from ‘create_home’
shadow-4.18.0/src/useradd.c:2214:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2223:21: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2223:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2224:45: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2226:28: branch_false: following ‘false’ branch (when ‘btrfs_check’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2232:45: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2233:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2235:41: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2237:33: call_function: calling ‘fail_exit’ from ‘create_home’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
shadow-4.18.0/src/useradd.c:268:27: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
shadow-4.18.0/src/useradd.c:2298:13: enter_function: entry to ‘create_mail’
shadow-4.18.0/src/useradd.c:2307:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2310:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2319:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2320:24: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2320:24: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2325:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2327:25: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2329:17: call_function: calling ‘fail_exit’ from ‘create_mail’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
shadow-4.18.0/src/useradd.c:269:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bhome’
shadow-4.18.0/src/useradd.c:2177:13: enter_function: entry to ‘create_home’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2187:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2197:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2200:17: call_function: calling ‘fail_exit’ from ‘create_home’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
shadow-4.18.0/src/useradd.c:269:17: warning[-Wanalyzer-malloc-leak]: leak of ‘btrfs_check’
shadow-4.18.0/src/useradd.c:2177:13: enter_function: entry to ‘create_home’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2208:19: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2208:39: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2210:21: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2210:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2210:47: call_function: inlined call to ‘streq’ from ‘create_home’
shadow-4.18.0/src/useradd.c:2214:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2223:21: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2223:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2224:45: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2226:28: branch_false: following ‘false’ branch (when ‘btrfs_check’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2232:45: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2233:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2235:41: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2237:33: call_function: calling ‘fail_exit’ from ‘create_home’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
shadow-4.18.0/src/useradd.c:269:17: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
shadow-4.18.0/src/useradd.c:2298:13: enter_function: entry to ‘create_mail’
shadow-4.18.0/src/useradd.c:2307:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2310:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2319:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2320:24: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2320:24: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2325:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2327:25: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2329:17: call_function: calling ‘fail_exit’ from ‘create_mail’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
shadow-4.18.0/src/useradd.c:270:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bhome’
shadow-4.18.0/src/useradd.c:2177:13: enter_function: entry to ‘create_home’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2187:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2197:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2200:17: call_function: calling ‘fail_exit’ from ‘create_home’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
shadow-4.18.0/src/useradd.c:270:17: warning[-Wanalyzer-malloc-leak]: leak of ‘btrfs_check’
shadow-4.18.0/src/useradd.c:2177:13: enter_function: entry to ‘create_home’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2208:19: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2208:39: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2210:21: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2210:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2210:47: call_function: inlined call to ‘streq’ from ‘create_home’
shadow-4.18.0/src/useradd.c:2214:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2223:21: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2223:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2224:45: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2226:28: branch_false: following ‘false’ branch (when ‘btrfs_check’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2232:45: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2233:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2235:41: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2237:33: call_function: calling ‘fail_exit’ from ‘create_home’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
shadow-4.18.0/src/useradd.c:270:17: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
shadow-4.18.0/src/useradd.c:2298:13: enter_function: entry to ‘create_mail’
shadow-4.18.0/src/useradd.c:2307:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2310:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2319:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2320:24: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2320:24: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2325:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2327:25: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2329:17: call_function: calling ‘fail_exit’ from ‘create_mail’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
shadow-4.18.0/src/useradd.c:270:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1662:13: enter_function: entry to ‘close_group_files’
shadow-4.18.0/src/useradd.c:1667:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1668:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1671:17: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:1672:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:1672:17: call_function: calling ‘fail_exit’ from ‘close_group_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
shadow-4.18.0/src/useradd.c:275:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1662:13: enter_function: entry to ‘close_group_files’
shadow-4.18.0/src/useradd.c:1667:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1668:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1671:17: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:1672:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:1672:17: call_function: calling ‘fail_exit’ from ‘close_group_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
shadow-4.18.0/src/useradd.c:280:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1662:13: enter_function: entry to ‘close_group_files’
shadow-4.18.0/src/useradd.c:1667:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1668:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1671:17: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:1672:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:1672:17: call_function: calling ‘fail_exit’ from ‘close_group_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
shadow-4.18.0/src/useradd.c:286:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1662:13: enter_function: entry to ‘close_group_files’
shadow-4.18.0/src/useradd.c:1667:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1668:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1671:17: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:1672:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:1672:17: call_function: calling ‘fail_exit’ from ‘close_group_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
shadow-4.18.0/src/useradd.c:293:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1662:13: enter_function: entry to ‘close_group_files’
shadow-4.18.0/src/useradd.c:1667:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1668:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1671:17: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:1672:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:1672:17: call_function: calling ‘fail_exit’ from ‘close_group_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
shadow-4.18.0/src/useradd.c:298:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1662:13: enter_function: entry to ‘close_group_files’
shadow-4.18.0/src/useradd.c:1667:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1668:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1671:17: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:1672:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:1672:17: call_function: calling ‘fail_exit’ from ‘close_group_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
shadow-4.18.0/src/useradd.c:313:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1662:13: enter_function: entry to ‘close_group_files’
shadow-4.18.0/src/useradd.c:1667:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1668:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1671:17: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:1672:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:1672:17: call_function: calling ‘fail_exit’ from ‘close_group_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
shadow-4.18.0/src/useradd.c:345:17: warning[-Wanalyzer-malloc-leak]: leak of ‘default_file’
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2442:9: call_function: calling ‘get_defaults’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
shadow-4.18.0/src/useradd.c:352:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2442:9: call_function: calling ‘get_defaults’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
shadow-4.18.0/src/useradd.c:363:51: warning[-Wanalyzer-malloc-leak]: leak of ‘default_file’
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2442:9: call_function: calling ‘get_defaults’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
shadow-4.18.0/src/useradd.c:434:48: warning[-Wanalyzer-malloc-leak]: leak of ‘default_file’
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2442:9: call_function: calling ‘get_defaults’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
shadow-4.18.0/src/useradd.c:447:51: warning[-Wanalyzer-malloc-leak]: leak of ‘default_file’
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2442:9: call_function: calling ‘get_defaults’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-590): [#def452]
shadow-4.18.0/src/useradd.c:475:17: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘default_file’ which points to memory not on the heap
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2442:9: call_function: calling ‘get_defaults’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
shadow-4.18.0/src/useradd.c:477:1: warning[-Wanalyzer-malloc-leak]: leak of ‘default_file’
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2442:9: call_function: calling ‘get_defaults’ from ‘main’
Error: COMPILER_WARNING (CWE-563): [#def454]
shadow-4.18.0/src/useradd.c: scope_hint: In function ‘set_defaults’
shadow-4.18.0/src/useradd.c:524:16: warning[-Wunused-variable]: unused variable ‘cp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
shadow-4.18.0/src/useradd.c:1024:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:2077:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/useradd.c:2095:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:2108:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2118:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2128:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2165:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2166:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2166:17: call_function: calling ‘grp_update’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
shadow-4.18.0/src/useradd.c:1037:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:2077:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/useradd.c:2095:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:2108:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2118:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2128:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2165:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2166:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2166:17: call_function: calling ‘grp_update’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
shadow-4.18.0/src/useradd.c:1046:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:2077:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/useradd.c:2095:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:2108:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2118:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2128:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2165:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2166:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2166:17: call_function: calling ‘grp_update’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
shadow-4.18.0/src/useradd.c:1087:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:2077:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/useradd.c:2095:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:2108:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2118:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2128:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2165:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2166:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2166:17: call_function: calling ‘grp_update’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
shadow-4.18.0/src/useradd.c:1100:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:2077:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/useradd.c:2095:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:2108:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2118:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2128:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2165:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2166:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2166:17: call_function: calling ‘grp_update’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
shadow-4.18.0/src/useradd.c:1110:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:2077:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/useradd.c:2095:9: branch_false: following ‘false’ branch (when ‘saved_locale’ is NULL)...
shadow-4.18.0/src/useradd.c:2108:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2118:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2128:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2165:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2166:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2166:17: call_function: calling ‘grp_update’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def461]
shadow-4.18.0/src/useradd.c:1671:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1667:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1668:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1671:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:1671:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1671:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:1671:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:1671:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1671:17: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/useradd.c:1671:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
shadow-4.18.0/src/useradd.c:1679:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1667:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:1675:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:1675:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1679:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:1679:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1679:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:1679:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:1679:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1679:17: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/useradd.c:1679:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
shadow-4.18.0/src/useradd.c:1959:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1941:13: enter_function: entry to ‘faillog_reset’
shadow-4.18.0/src/useradd.c:1948:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:1955:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1958:63: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1959:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:1959:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1959:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:1959:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:1959:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1959:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/useradd.c:1959:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
shadow-4.18.0/src/useradd.c:1968:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1941:13: enter_function: entry to ‘faillog_reset’
shadow-4.18.0/src/useradd.c:1948:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:1955:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:1962:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:1968:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:1968:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1968:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:1968:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:1968:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1968:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/useradd.c:1968:17: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
shadow-4.18.0/src/useradd.c:1974:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:1941:13: enter_function: entry to ‘faillog_reset’
shadow-4.18.0/src/useradd.c:1948:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:1955:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:1962:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:1970:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:1974:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:1974:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1974:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:1974:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:1974:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:1974:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/useradd.c:1974:17: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
shadow-4.18.0/src/useradd.c:2065:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:2034:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2038:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2065:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2065:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2065:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2065:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2065:17: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2065:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/useradd.c:2065:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
shadow-4.18.0/src/useradd.c:2095:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/useradd.c:2095:9: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2095:9: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2095:9: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2095:9: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2095:9: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2095:9: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/useradd.c:2095:9: danger: ‘saved_locale’ leaks here; was allocated at [(3)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
shadow-4.18.0/src/useradd.c:2196:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bhome’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2187:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:13: throw: if ‘set_selinux_file_context’ throws an exception...
shadow-4.18.0/src/useradd.c:2196:13: danger: ‘bhome’ leaks here; was allocated at [(3)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
shadow-4.18.0/src/useradd.c:2233:29: warning[-Wanalyzer-malloc-leak]: leak of ‘bhome’
shadow-4.18.0/src/useradd.c:2177:13: enter_function: entry to ‘create_home’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2187:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2208:19: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2208:39: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2210:21: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2210:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2210:47: call_function: inlined call to ‘streq’ from ‘create_home’
shadow-4.18.0/src/useradd.c:2214:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2223:21: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2223:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2226:28: branch_false: following ‘false’ branch (when ‘btrfs_check’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2232:45: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2233:29: throw: if ‘is_btrfs’ throws an exception...
shadow-4.18.0/src/useradd.c:2233:29: danger: ‘bhome’ leaks here; was allocated at [(4)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
shadow-4.18.0/src/useradd.c:2233:29: warning[-Wanalyzer-malloc-leak]: leak of ‘btrfs_check’
shadow-4.18.0/src/useradd.c:2177:13: enter_function: entry to ‘create_home’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2208:19: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2208:39: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2210:21: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2210:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2210:47: call_function: inlined call to ‘streq’ from ‘create_home’
shadow-4.18.0/src/useradd.c:2214:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2223:21: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2223:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2224:45: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2226:28: branch_false: following ‘false’ branch (when ‘btrfs_check’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2232:45: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2233:29: throw: if ‘is_btrfs’ throws an exception...
shadow-4.18.0/src/useradd.c:2233:29: danger: ‘btrfs_check’ leaks here; was allocated at [(18)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
shadow-4.18.0/src/useradd.c:2241:29: warning[-Wanalyzer-malloc-leak]: leak of ‘bhome’
shadow-4.18.0/src/useradd.c:2177:13: enter_function: entry to ‘create_home’
shadow-4.18.0/src/useradd.c:2183:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2186:9: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2187:17: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2188:12: branch_false: following ‘false’ branch (when ‘bhome’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2196:13: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2196:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2208:19: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2208:39: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2210:21: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2210:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2210:47: call_function: inlined call to ‘streq’ from ‘create_home’
shadow-4.18.0/src/useradd.c:2214:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2223:21: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2223:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2226:28: branch_false: following ‘false’ branch (when ‘btrfs_check’ is non-NULL)...
shadow-4.18.0/src/useradd.c:2232:45: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2233:28: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2239:25: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2241:29: throw: if ‘btrfs_create_subvolume’ throws an exception...
shadow-4.18.0/src/useradd.c:2241:29: danger: ‘bhome’ leaks here; was allocated at [(4)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/3)
Error: COMPILER_WARNING (CWE-252): [#def472]
shadow-4.18.0/src/useradd.c: scope_hint: In function ‘create_home’
shadow-4.18.0/src/useradd.c:2268:16: warning[-Wunused-result]: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
shadow-4.18.0/src/useradd.c:2325:13: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
shadow-4.18.0/src/useradd.c:2307:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2310:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2319:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2320:24: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2320:24: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2325:13: throw: if ‘set_selinux_file_context’ throws an exception...
shadow-4.18.0/src/useradd.c:2325:13: danger: ‘file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
shadow-4.18.0/src/useradd.c:2333:14: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
shadow-4.18.0/src/useradd.c:2307:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2310:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2319:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2320:24: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2320:24: acquire_memory: allocated here
shadow-4.18.0/src/useradd.c:2325:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2333:14: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2333:14: throw: if ‘open’ throws an exception...
shadow-4.18.0/src/useradd.c:2333:14: danger: ‘file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/88/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def475]
shadow-4.18.0/src/useradd.c:2333:14: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘file’ where non-null expected
shadow-4.18.0/src/useradd.c:2307:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2310:17: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2319:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/useradd.c:2320:24: branch_true: ...to here
shadow-4.18.0/src/useradd.c:2320:24: acquire_memory: this call could return NULL
shadow-4.18.0/src/useradd.c:2325:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/useradd.c:2333:14: branch_false: ...to here
shadow-4.18.0/src/useradd.c:2333:14: danger: argument 1 (‘file’) from [(5)](sarif:/runs/0/results/87/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def476]
shadow-4.18.0/src/useradd.c:2434:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘user_groups’
shadow-4.18.0/src/useradd.c:2397:5: enter_function: entry to ‘main’
shadow-4.18.0/src/useradd.c:2430:23: call_function: inlined call to ‘xmallocarray’ from ‘main’
shadow-4.18.0/src/useradd.c:2434:9: danger: ‘xreallocarray(0, (long unsigned int)(sysconf(3) + 1), 8)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/89/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
shadow-4.18.0/src/userdel.c:395:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:393:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:394:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:395:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:395:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:395:17: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:395:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:395:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:395:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/userdel.c:395:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
shadow-4.18.0/src/userdel.c:400:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:393:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:398:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:398:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:399:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:400:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:400:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:400:17: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:400:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:400:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:400:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/userdel.c:400:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
shadow-4.18.0/src/userdel.c:409:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:393:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:398:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:405:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:406:21: branch_true: ...to here
shadow-4.18.0/src/userdel.c:406:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:407:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:409:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:409:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:409:25: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:409:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:409:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:409:25: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/userdel.c:409:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
shadow-4.18.0/src/userdel.c:489:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:486:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:487:21: branch_true: ...to here
shadow-4.18.0/src/userdel.c:487:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:488:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:489:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:489:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:489:25: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:489:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:489:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:489:25: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/userdel.c:489:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
shadow-4.18.0/src/userdel.c:496:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:493:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:494:21: branch_true: ...to here
shadow-4.18.0/src/userdel.c:494:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:495:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:496:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:496:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:496:25: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:496:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:496:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:496:25: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/userdel.c:496:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
shadow-4.18.0/src/userdel.c:503:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:500:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:501:21: branch_true: ...to here
shadow-4.18.0/src/userdel.c:501:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:502:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:503:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:503:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:503:25: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:503:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:503:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:503:25: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/userdel.c:503:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
shadow-4.18.0/src/userdel.c:511:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:508:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:509:21: branch_true: ...to here
shadow-4.18.0/src/userdel.c:509:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:510:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:511:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:511:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:511:25: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:511:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:511:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:511:25: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/userdel.c:511:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
shadow-4.18.0/src/userdel.c:520:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:517:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:518:21: branch_true: ...to here
shadow-4.18.0/src/userdel.c:518:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:519:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:520:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:520:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:520:25: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:520:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:520:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:520:25: throw: if ‘sub_uid_dbname’ throws an exception...
shadow-4.18.0/src/userdel.c:520:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
shadow-4.18.0/src/userdel.c:527:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:524:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:525:21: branch_true: ...to here
shadow-4.18.0/src/userdel.c:525:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:526:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:527:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:527:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:527:25: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:527:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:527:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:527:25: throw: if ‘sub_gid_dbname’ throws an exception...
shadow-4.18.0/src/userdel.c:527:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
shadow-4.18.0/src/userdel.c:677:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:644:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:650:16: branch_false: ...to here
shadow-4.18.0/src/userdel.c:677:9: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:677:9: branch_true: ...to here
shadow-4.18.0/src/userdel.c:677:9: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:677:9: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:677:9: branch_true: ...to here
shadow-4.18.0/src/userdel.c:677:9: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/userdel.c:677:9: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def487]
shadow-4.18.0/src/userdel.c:759:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mailfile’ where non-null expected
shadow-4.18.0/src/userdel.c:753:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:754:28: branch_true: ...to here
shadow-4.18.0/src/userdel.c:754:28: acquire_memory: this call could return NULL
shadow-4.18.0/src/userdel.c:759:13: danger: argument 1 (‘mailfile’) from [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
shadow-4.18.0/src/userdel.c:770:25: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/userdel.c:753:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:754:28: branch_true: ...to here
shadow-4.18.0/src/userdel.c:754:28: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:759:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:760:31: branch_true: ...to here
shadow-4.18.0/src/userdel.c:760:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:767:25: branch_false: ...to here
shadow-4.18.0/src/userdel.c:770:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/userdel.c:770:25: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
shadow-4.18.0/src/userdel.c:770:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:753:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:754:28: branch_true: ...to here
shadow-4.18.0/src/userdel.c:759:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:760:31: branch_true: ...to here
shadow-4.18.0/src/userdel.c:760:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:767:25: branch_false: ...to here
shadow-4.18.0/src/userdel.c:770:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:770:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:770:25: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:770:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:770:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:770:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/userdel.c:770:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
shadow-4.18.0/src/userdel.c:786:25: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/userdel.c:753:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:754:28: branch_true: ...to here
shadow-4.18.0/src/userdel.c:754:28: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:759:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:781:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:781:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:782:21: branch_true: ...to here
shadow-4.18.0/src/userdel.c:782:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:785:60: branch_true: ...to here
shadow-4.18.0/src/userdel.c:786:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/userdel.c:786:25: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
shadow-4.18.0/src/userdel.c:786:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:753:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:754:28: branch_true: ...to here
shadow-4.18.0/src/userdel.c:759:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:781:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:781:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:782:21: branch_true: ...to here
shadow-4.18.0/src/userdel.c:782:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:785:60: branch_true: ...to here
shadow-4.18.0/src/userdel.c:786:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:786:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:786:25: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:786:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:786:25: branch_true: ...to here
shadow-4.18.0/src/userdel.c:786:25: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/userdel.c:786:25: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
shadow-4.18.0/src/userdel.c:798:25: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/userdel.c:753:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:754:28: branch_true: ...to here
shadow-4.18.0/src/userdel.c:754:28: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:759:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:781:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:781:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:782:21: branch_true: ...to here
shadow-4.18.0/src/userdel.c:782:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:798:25: branch_false: ...to here
shadow-4.18.0/src/userdel.c:798:25: throw: if ‘audit_logger’ throws an exception...
shadow-4.18.0/src/userdel.c:798:25: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
shadow-4.18.0/src/userdel.c:811:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/userdel.c:753:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:754:28: branch_true: ...to here
shadow-4.18.0/src/userdel.c:754:28: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:759:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:781:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:781:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:806:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:807:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:808:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:811:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/userdel.c:811:17: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def494]
shadow-4.18.0/src/userdel.c:811:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:753:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:754:28: branch_true: ...to here
shadow-4.18.0/src/userdel.c:759:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:781:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:781:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:806:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:807:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:808:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:811:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:811:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:811:17: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:811:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:811:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:811:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/userdel.c:811:17: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
shadow-4.18.0/src/userdel.c:829:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/userdel.c:753:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:754:28: branch_true: ...to here
shadow-4.18.0/src/userdel.c:754:28: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:759:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:781:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:781:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:806:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:807:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:821:19: branch_false: ...to here
shadow-4.18.0/src/userdel.c:821:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:825:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:825:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:828:52: branch_true: ...to here
shadow-4.18.0/src/userdel.c:829:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/userdel.c:829:17: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
shadow-4.18.0/src/userdel.c:829:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/userdel.c:753:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:754:28: branch_true: ...to here
shadow-4.18.0/src/userdel.c:759:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:781:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:781:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:806:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:807:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:821:19: branch_false: ...to here
shadow-4.18.0/src/userdel.c:821:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:825:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:825:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:828:52: branch_true: ...to here
shadow-4.18.0/src/userdel.c:829:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:829:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:829:17: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:829:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/userdel.c:829:17: branch_true: ...to here
shadow-4.18.0/src/userdel.c:829:17: throw: if ‘syslog’ throws an exception...
shadow-4.18.0/src/userdel.c:829:17: danger: ‘saved_locale’ leaks here; was allocated at [(15)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
shadow-4.18.0/src/userdel.c:841:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/userdel.c:753:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/userdel.c:754:28: branch_true: ...to here
shadow-4.18.0/src/userdel.c:754:28: acquire_memory: allocated here
shadow-4.18.0/src/userdel.c:759:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:781:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:781:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:806:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:807:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:821:19: branch_false: ...to here
shadow-4.18.0/src/userdel.c:821:19: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:825:13: branch_false: ...to here
shadow-4.18.0/src/userdel.c:825:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/userdel.c:841:17: branch_false: ...to here
shadow-4.18.0/src/userdel.c:841:17: throw: if ‘audit_logger’ throws an exception...
shadow-4.18.0/src/userdel.c:841:17: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
shadow-4.18.0/src/usermod.c:284:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
shadow-4.18.0/src/usermod.c:2155:5: enter_function: entry to ‘main’
shadow-4.18.0/src/usermod.c:2192:9: call_function: calling ‘process_flags’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
shadow-4.18.0/src/usermod.c:435:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1710:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/usermod.c:1722:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1728:9: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1729:9: call_function: calling ‘new_pwent’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
shadow-4.18.0/src/usermod.c:450:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1710:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/usermod.c:1722:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1728:9: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1729:9: call_function: calling ‘new_pwent’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
shadow-4.18.0/src/usermod.c:457:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1710:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/usermod.c:1722:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1728:9: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1729:9: call_function: calling ‘new_pwent’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
shadow-4.18.0/src/usermod.c:486:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1710:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/usermod.c:1722:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1728:9: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1729:9: call_function: calling ‘new_pwent’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
shadow-4.18.0/src/usermod.c:506:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1710:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/usermod.c:1722:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1728:9: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1729:9: call_function: calling ‘new_pwent’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
shadow-4.18.0/src/usermod.c:517:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1710:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/usermod.c:1722:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1728:9: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1729:9: call_function: calling ‘new_pwent’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
shadow-4.18.0/src/usermod.c:536:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1710:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/usermod.c:1722:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1728:9: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1729:9: call_function: calling ‘new_pwent’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
shadow-4.18.0/src/usermod.c:553:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1710:13: enter_function: entry to ‘usr_update’
shadow-4.18.0/src/usermod.c:1722:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1728:9: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1729:9: call_function: calling ‘new_pwent’ from ‘usr_update’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
shadow-4.18.0/src/usermod.c:637:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1607:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/usermod.c:1609:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1610:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1613:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
shadow-4.18.0/src/usermod.c:645:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1607:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/usermod.c:1609:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1610:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1613:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
shadow-4.18.0/src/usermod.c:653:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1607:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/usermod.c:1609:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1610:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1613:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
shadow-4.18.0/src/usermod.c:660:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1607:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/usermod.c:1609:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1610:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1613:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
shadow-4.18.0/src/usermod.c:668:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1607:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/usermod.c:1609:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1610:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1613:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
shadow-4.18.0/src/usermod.c:675:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1607:13: enter_function: entry to ‘open_files’
shadow-4.18.0/src/usermod.c:1609:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1610:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1613:17: call_function: calling ‘fail_exit’ from ‘open_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
shadow-4.18.0/src/usermod.c:1288:38: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/usermod.c:2155:5: enter_function: entry to ‘main’
shadow-4.18.0/src/usermod.c:2192:9: call_function: calling ‘process_flags’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
shadow-4.18.0/src/usermod.c:1289:39: warning[-Wanalyzer-malloc-leak]: leak of ‘xreallocarray(0, strlen(str) + 1, 1)’
shadow-4.18.0/src/usermod.c:2155:5: enter_function: entry to ‘main’
shadow-4.18.0/src/usermod.c:2192:9: call_function: calling ‘process_flags’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
shadow-4.18.0/src/usermod.c:1476:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1473:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1476:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1476:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1476:17: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1476:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1476:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1476:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1476:17: danger: ‘saved_locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
shadow-4.18.0/src/usermod.c:1483:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1479:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1479:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1483:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1483:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1483:17: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1483:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1483:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1483:17: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1483:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
shadow-4.18.0/src/usermod.c:1494:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1479:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1490:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1491:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1494:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1494:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1494:25: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1494:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1494:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1494:25: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1494:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
shadow-4.18.0/src/usermod.c:1505:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1479:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1490:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1500:21: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1500:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1501:29: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1501:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1502:33: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1505:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1505:33: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1505:33: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1505:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1505:33: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1505:33: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1505:33: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
shadow-4.18.0/src/usermod.c:1518:33: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1479:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1490:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1500:21: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1501:28: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1513:21: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1513:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1514:29: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1514:28: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1515:33: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1518:33: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1518:33: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1518:33: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1518:33: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1518:33: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1518:33: throw: if ‘sgr_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1518:33: danger: ‘saved_locale’ leaks here; was allocated at [(13)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
shadow-4.18.0/src/usermod.c:1529:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1479:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1490:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1500:21: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1525:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1526:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1529:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1529:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1529:25: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1529:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1529:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1529:25: throw: if ‘gr_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1529:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
shadow-4.18.0/src/usermod.c:1541:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1479:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1479:13: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1489:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1536:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1537:21: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1537:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1538:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1541:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1541:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1541:25: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1541:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1541:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1541:25: throw: if ‘spw_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1541:25: danger: ‘saved_locale’ leaks here; was allocated at [(11)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
shadow-4.18.0/src/usermod.c:1551:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1479:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1547:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1548:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1551:17: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1551:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1551:17: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1551:17: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1551:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1551:17: throw: if ‘pw_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1551:17: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
shadow-4.18.0/src/usermod.c:1566:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1479:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1564:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1565:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1566:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1566:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1566:25: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1566:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1566:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1566:25: throw: if ‘sub_uid_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1566:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
shadow-4.18.0/src/usermod.c:1571:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1479:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1564:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1569:21: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1569:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1570:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1571:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1571:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1571:25: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1571:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1571:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1571:25: throw: if ‘sub_uid_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1571:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
shadow-4.18.0/src/usermod.c:1579:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1479:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1577:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1578:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1579:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1579:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1579:25: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1579:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1579:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1579:25: throw: if ‘sub_gid_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1579:25: danger: ‘saved_locale’ leaks here; was allocated at [(7)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
shadow-4.18.0/src/usermod.c:1584:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/usermod.c:1472:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1479:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1577:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:1582:21: branch_false: ...to here
shadow-4.18.0/src/usermod.c:1582:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:1583:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1584:25: branch_true: following ‘true’ branch (when ‘old_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1584:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1584:25: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:1584:25: branch_true: following ‘true’ branch (when ‘saved_locale’ is non-NULL)...
shadow-4.18.0/src/usermod.c:1584:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:1584:25: throw: if ‘sub_gid_dbname’ throws an exception...
shadow-4.18.0/src/usermod.c:1584:25: danger: ‘saved_locale’ leaks here; was allocated at [(9)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
shadow-4.18.0/src/usermod.c:2086:14: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2086:14: throw: if ‘open’ throws an exception...
shadow-4.18.0/src/usermod.c:2086:14: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def528]
shadow-4.18.0/src/usermod.c:2086:14: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mailfile’ where non-null expected
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: this call could return NULL
shadow-4.18.0/src/usermod.c:2086:14: danger: argument 1 (‘mailfile’) from [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
shadow-4.18.0/src/usermod.c:2090:25: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2087:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2089:21: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2089:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2090:25: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2090:25: throw: if ‘perror’ throws an exception...
shadow-4.18.0/src/usermod.c:2090:25: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
shadow-4.18.0/src/usermod.c:2096:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2096:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2096:17: throw: if ‘perror’ throws an exception...
shadow-4.18.0/src/usermod.c:2096:17: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
shadow-4.18.0/src/usermod.c:2097:24: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2096:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2097:24: throw: if ‘close’ throws an exception...
shadow-4.18.0/src/usermod.c:2097:24: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
shadow-4.18.0/src/usermod.c:2105:24: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2101:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2101:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2103:17: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2105:24: throw: if ‘close’ throws an exception...
shadow-4.18.0/src/usermod.c:2105:24: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
shadow-4.18.0/src/usermod.c:2111:25: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2101:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2101:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2109:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2109:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2110:21: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2110:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2111:33: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2111:25: throw: if ‘perror’ throws an exception...
shadow-4.18.0/src/usermod.c:2111:25: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
shadow-4.18.0/src/usermod.c:2115:25: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2101:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2101:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2109:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2109:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2110:21: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2110:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2115:25: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2115:25: throw: if ‘audit_logger’ throws an exception...
shadow-4.18.0/src/usermod.c:2115:25: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
shadow-4.18.0/src/usermod.c:2122:16: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2101:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2101:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2109:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2122:16: throw: if ‘close’ throws an exception...
shadow-4.18.0/src/usermod.c:2122:16: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
shadow-4.18.0/src/usermod.c:2128:39: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2101:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2101:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2109:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2124:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2127:21: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2127:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2128:39: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2128:39: throw: if ‘xaprintf’ throws an exception...
shadow-4.18.0/src/usermod.c:2128:39: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def537]
shadow-4.18.0/src/usermod.c:2131:39: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2083:28: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2083:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2101:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2101:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2109:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2124:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2127:21: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2127:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2131:39: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2131:39: throw: if ‘xaprintf’ throws an exception...
shadow-4.18.0/src/usermod.c:2131:39: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def538]
shadow-4.18.0/src/usermod.c:2133:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘newmailfile’ where non-null expected
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2101:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2101:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2109:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2124:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2127:21: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2127:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2128:39: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2128:39: acquire_memory: this call could return NULL
shadow-4.18.0/src/usermod.c:2133:25: danger: argument 2 (‘newmailfile’) from [(13)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/12) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def539]
shadow-4.18.0/src/usermod.c:2135:25: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2101:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2101:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2109:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2124:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2127:21: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2127:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2128:39: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2135:25: throw: if ‘perror’ throws an exception...
shadow-4.18.0/src/usermod.c:2135:25: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
shadow-4.18.0/src/usermod.c:2135:25: warning[-Wanalyzer-malloc-leak]: leak of ‘newmailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2101:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2101:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2109:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2124:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2127:21: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2127:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2128:39: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2128:39: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2135:25: throw: if ‘perror’ throws an exception...
shadow-4.18.0/src/usermod.c:2135:25: danger: ‘newmailfile’ leaks here; was allocated at [(13)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
shadow-4.18.0/src/usermod.c:2139:25: warning[-Wanalyzer-malloc-leak]: leak of ‘mailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2081:28: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2101:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2101:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2109:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2124:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2127:21: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2127:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2128:39: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2133:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2134:25: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2133:24: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2139:25: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2139:25: throw: if ‘audit_logger’ throws an exception...
shadow-4.18.0/src/usermod.c:2139:25: danger: ‘mailfile’ leaks here; was allocated at [(3)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
shadow-4.18.0/src/usermod.c:2139:25: warning[-Wanalyzer-malloc-leak]: leak of ‘newmailfile’
shadow-4.18.0/src/usermod.c:2080:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2081:28: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2087:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2095:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2095:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2101:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2101:12: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2109:13: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2124:12: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2127:21: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2127:20: branch_true: following ‘true’ branch...
shadow-4.18.0/src/usermod.c:2128:39: branch_true: ...to here
shadow-4.18.0/src/usermod.c:2128:39: acquire_memory: allocated here
shadow-4.18.0/src/usermod.c:2133:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2134:25: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2133:24: branch_false: following ‘false’ branch...
shadow-4.18.0/src/usermod.c:2139:25: branch_false: ...to here
shadow-4.18.0/src/usermod.c:2139:25: throw: if ‘audit_logger’ throws an exception...
shadow-4.18.0/src/usermod.c:2139:25: danger: ‘newmailfile’ leaks here; was allocated at [(13)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def543]
shadow-4.18.0/src/usermod.c:2181:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘user_groups’
shadow-4.18.0/src/usermod.c:2155:5: enter_function: entry to ‘main’
shadow-4.18.0/src/usermod.c:2180:23: call_function: inlined call to ‘xmallocarray’ from ‘main’
shadow-4.18.0/src/usermod.c:2181:9: danger: ‘xreallocarray(0, (long unsigned int)(sysconf(3) + 1), 8)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def544]
shadow-4.18.0/src/vipw.c:121:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(backup, "w")’
shadow-4.18.0/src/vipw.c:478:5: enter_function: entry to ‘main’
shadow-4.18.0/src/vipw.c:549:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/vipw.c:554:12: branch_false: ...to here
shadow-4.18.0/src/vipw.c:554:12: branch_true: following ‘true’ branch (when ‘do_vigr != 0’)...
shadow-4.18.0/src/vipw.c:556:20: branch_true: ...to here
shadow-4.18.0/src/vipw.c:556:20: branch_false: following ‘false’ branch (when ‘editshadow == 0’)...
shadow-4.18.0/src/vipw.c:564:25: branch_false: ...to here
shadow-4.18.0/src/vipw.c:564:25: call_function: calling ‘vipwedit’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def545]
shadow-4.18.0/src/vipw.c:121:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
shadow-4.18.0/src/vipw.c:478:5: enter_function: entry to ‘main’
shadow-4.18.0/src/vipw.c:549:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/vipw.c:554:12: branch_false: ...to here
shadow-4.18.0/src/vipw.c:554:12: branch_true: following ‘true’ branch (when ‘do_vigr != 0’)...
shadow-4.18.0/src/vipw.c:556:20: branch_true: ...to here
shadow-4.18.0/src/vipw.c:556:20: branch_false: following ‘false’ branch (when ‘editshadow == 0’)...
shadow-4.18.0/src/vipw.c:564:25: branch_false: ...to here
shadow-4.18.0/src/vipw.c:564:25: call_function: calling ‘vipwedit’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
shadow-4.18.0/src/vipw.c:121:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(backup, "w")’
shadow-4.18.0/src/vipw.c:478:5: enter_function: entry to ‘main’
shadow-4.18.0/src/vipw.c:549:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/vipw.c:554:12: branch_false: ...to here
shadow-4.18.0/src/vipw.c:554:12: branch_true: following ‘true’ branch (when ‘do_vigr != 0’)...
shadow-4.18.0/src/vipw.c:556:20: branch_true: ...to here
shadow-4.18.0/src/vipw.c:556:20: branch_false: following ‘false’ branch (when ‘editshadow == 0’)...
shadow-4.18.0/src/vipw.c:564:25: branch_false: ...to here
shadow-4.18.0/src/vipw.c:564:25: call_function: calling ‘vipwedit’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
shadow-4.18.0/src/vipw.c:121:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
shadow-4.18.0/src/vipw.c:478:5: enter_function: entry to ‘main’
shadow-4.18.0/src/vipw.c:549:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/vipw.c:554:12: branch_false: ...to here
shadow-4.18.0/src/vipw.c:554:12: branch_true: following ‘true’ branch (when ‘do_vigr != 0’)...
shadow-4.18.0/src/vipw.c:556:20: branch_true: ...to here
shadow-4.18.0/src/vipw.c:556:20: branch_false: following ‘false’ branch (when ‘editshadow == 0’)...
shadow-4.18.0/src/vipw.c:564:25: branch_false: ...to here
shadow-4.18.0/src/vipw.c:564:25: call_function: calling ‘vipwedit’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def548]
shadow-4.18.0/src/vipw.c:127:50: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(backup, "w")’
shadow-4.18.0/src/vipw.c:478:5: enter_function: entry to ‘main’
shadow-4.18.0/src/vipw.c:549:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/vipw.c:554:12: branch_false: ...to here
shadow-4.18.0/src/vipw.c:554:12: branch_true: following ‘true’ branch (when ‘do_vigr != 0’)...
shadow-4.18.0/src/vipw.c:556:20: branch_true: ...to here
shadow-4.18.0/src/vipw.c:556:20: branch_false: following ‘false’ branch (when ‘editshadow == 0’)...
shadow-4.18.0/src/vipw.c:564:25: branch_false: ...to here
shadow-4.18.0/src/vipw.c:564:25: call_function: calling ‘vipwedit’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
shadow-4.18.0/src/vipw.c:127:50: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(backup, "w")’
shadow-4.18.0/src/vipw.c:478:5: enter_function: entry to ‘main’
shadow-4.18.0/src/vipw.c:549:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/vipw.c:554:12: branch_false: ...to here
shadow-4.18.0/src/vipw.c:554:12: branch_true: following ‘true’ branch (when ‘do_vigr != 0’)...
shadow-4.18.0/src/vipw.c:556:20: branch_true: ...to here
shadow-4.18.0/src/vipw.c:556:20: branch_false: following ‘false’ branch (when ‘editshadow == 0’)...
shadow-4.18.0/src/vipw.c:564:25: branch_false: ...to here
shadow-4.18.0/src/vipw.c:564:25: call_function: calling ‘vipwedit’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def550]
shadow-4.18.0/src/vipw.c:132:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(backup, "w")’
shadow-4.18.0/src/vipw.c:478:5: enter_function: entry to ‘main’
shadow-4.18.0/src/vipw.c:549:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/vipw.c:554:12: branch_false: ...to here
shadow-4.18.0/src/vipw.c:554:12: branch_true: following ‘true’ branch (when ‘do_vigr != 0’)...
shadow-4.18.0/src/vipw.c:556:20: branch_true: ...to here
shadow-4.18.0/src/vipw.c:556:20: branch_false: following ‘false’ branch (when ‘editshadow == 0’)...
shadow-4.18.0/src/vipw.c:564:25: branch_false: ...to here
shadow-4.18.0/src/vipw.c:564:25: call_function: calling ‘vipwedit’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
shadow-4.18.0/src/vipw.c:132:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(backup, "w")’
shadow-4.18.0/src/vipw.c:478:5: enter_function: entry to ‘main’
shadow-4.18.0/src/vipw.c:549:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/vipw.c:554:12: branch_false: ...to here
shadow-4.18.0/src/vipw.c:554:12: branch_true: following ‘true’ branch (when ‘do_vigr != 0’)...
shadow-4.18.0/src/vipw.c:556:20: branch_true: ...to here
shadow-4.18.0/src/vipw.c:556:20: branch_false: following ‘false’ branch (when ‘editshadow == 0’)...
shadow-4.18.0/src/vipw.c:564:25: branch_false: ...to here
shadow-4.18.0/src/vipw.c:564:25: call_function: calling ‘vipwedit’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
shadow-4.18.0/src/vipw.c:169:25: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_locale’
shadow-4.18.0/src/vipw.c:478:5: enter_function: entry to ‘main’
shadow-4.18.0/src/vipw.c:549:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/vipw.c:554:12: branch_false: ...to here
shadow-4.18.0/src/vipw.c:554:12: branch_true: following ‘true’ branch (when ‘do_vigr != 0’)...
shadow-4.18.0/src/vipw.c:556:20: branch_true: ...to here
shadow-4.18.0/src/vipw.c:556:20: branch_false: following ‘false’ branch (when ‘editshadow == 0’)...
shadow-4.18.0/src/vipw.c:564:25: branch_false: ...to here
shadow-4.18.0/src/vipw.c:564:25: call_function: calling ‘vipwedit’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def553]
shadow-4.18.0/src/vipw.c:279:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
shadow-4.18.0/src/vipw.c:478:5: enter_function: entry to ‘main’
shadow-4.18.0/src/vipw.c:549:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/vipw.c:554:12: branch_false: ...to here
shadow-4.18.0/src/vipw.c:554:12: branch_true: following ‘true’ branch (when ‘do_vigr != 0’)...
shadow-4.18.0/src/vipw.c:556:20: branch_true: ...to here
shadow-4.18.0/src/vipw.c:556:20: branch_false: following ‘false’ branch (when ‘editshadow == 0’)...
shadow-4.18.0/src/vipw.c:564:25: branch_false: ...to here
shadow-4.18.0/src/vipw.c:564:25: call_function: calling ‘vipwedit’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
shadow-4.18.0/src/vipw.c:279:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
shadow-4.18.0/src/vipw.c:478:5: enter_function: entry to ‘main’
shadow-4.18.0/src/vipw.c:549:20: branch_false: following ‘false’ branch...
shadow-4.18.0/src/vipw.c:554:12: branch_false: ...to here
shadow-4.18.0/src/vipw.c:554:12: branch_true: following ‘true’ branch (when ‘do_vigr != 0’)...
shadow-4.18.0/src/vipw.c:556:20: branch_true: ...to here
shadow-4.18.0/src/vipw.c:556:20: branch_false: following ‘false’ branch (when ‘editshadow == 0’)...
shadow-4.18.0/src/vipw.c:564:25: branch_false: ...to here
shadow-4.18.0/src/vipw.c:564:25: call_function: calling ‘vipwedit’ from ‘main’
Error: COMPILER_WARNING (CWE-252): [#def555]
shadow-4.18.0/src/vipw.c: scope_hint: In function ‘vipwedit’
shadow-4.18.0/src/vipw.c:448:9: warning[-Wunused-result]: ignoring return value of ‘link’ declared with attribute ‘warn_unused_result’
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-222.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | shadow-utils-4.18.0-7.fc44 |
| store-results-to | /tmp/tmpdynbloaw/shadow-utils-4.18.0-7.fc44.tar.xz |
| time-created | 2026-01-08 21:45:22 |
| time-finished | 2026-01-08 21:48:25 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpdynbloaw/shadow-utils-4.18.0-7.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpdynbloaw/shadow-utils-4.18.0-7.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |