coreutils-9.7-6.fc43
List of Findings
Error: SHELLCHECK_WARNING (CWE-758): [#def1]
/etc/profile.d/colorls.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
coreutils-9.7/gnulib-tests/bench-digest.h:56:7: warning[-Wanalyzer-malloc-leak]: leak of 'memblock'
coreutils-9.7/gnulib-tests/bench-digest.h:25:6: branch_false: following 'false' branch (when 'argc == 3')...
coreutils-9.7/gnulib-tests/bench-digest.h:31:17: branch_false: ...to here
coreutils-9.7/gnulib-tests/bench-digest.h:34:29: acquire_memory: allocated here
coreutils-9.7/gnulib-tests/bench-digest.h:35:6: branch_false: following 'false' branch (when 'memblock' is non-NULL)...
coreutils-9.7/gnulib-tests/bench-digest.h:35:6: branch_false: ...to here
coreutils-9.7/gnulib-tests/bench-digest.h:53:19: branch_true: following 'true' branch...
coreutils-9.7/gnulib-tests/bench-digest.h:56:7: branch_true: ...to here
coreutils-9.7/gnulib-tests/bench-digest.h:56:7: throw: if 'sha1_buffer' throws an exception...
coreutils-9.7/gnulib-tests/bench-digest.h:56:7: danger: 'memblock' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def3]
coreutils-9.7/lib/asnprintf.c:31:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/asnprintf.c:30:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/asnprintf.c:31:12: throw: if 'vasnprintf' throws an exception...
coreutils-9.7/lib/asnprintf.c:31:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def4]
coreutils-9.7/lib/aszprintf.c:31:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/aszprintf.c:30:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/aszprintf.c:31:12: throw: if 'vaszprintf' throws an exception...
coreutils-9.7/lib/aszprintf.c:31:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
coreutils-9.7/lib/backupfile.c:237:33: warning[-Wanalyzer-malloc-leak]: leak of 'dirp'
coreutils-9.7/lib/backupfile.c:311:1: enter_function: entry to 'backupfile_internal'
coreutils-9.7/lib/backupfile.c:330:6: branch_false: following 'false' branch...
coreutils-9.7/lib/backupfile.c:333:8: branch_false: ...to here
coreutils-9.7/lib/backupfile.c:341:10: branch_false: following 'false' branch (when 'backup_type != 1')...
coreutils-9.7/lib/backupfile.c:344:17: branch_false: ...to here
coreutils-9.7/lib/backupfile.c:344:17: call_function: calling 'numbered_backup' from 'backupfile_internal'
Error: CPPCHECK_WARNING (CWE-476): [#def6]
coreutils-9.7/lib/canonicalize.c:454: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: COMPILER_WARNING (CWE-562): [#def7]
coreutils-9.7/lib/careadlinkat.c: scope_hint: In function 'careadlinkat.constprop'
coreutils-9.7/lib/careadlinkat.c:180:10: warning[-Wreturn-local-addr]: function may return address of local variable
coreutils-9.7/lib/careadlinkat.c:179:8: note: declared here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
coreutils-9.7/lib/creat-safer.c:30:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'creat(file, mode)'
coreutils-9.7/lib/creat-safer.c:30:10: acquire_resource: opened here
coreutils-9.7/lib/creat-safer.c:30:10: danger: 'creat(file, mode)' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
coreutils-9.7/lib/di-set.c:120:22: warning[-Wanalyzer-malloc-leak]: leak of 'dis'
coreutils-9.7/lib/di-set.c:116:24: acquire_memory: allocated here
coreutils-9.7/lib/di-set.c:117:6: branch_true: following 'true' branch (when 'dis' is non-NULL)...
coreutils-9.7/lib/di-set.c:120:22: branch_true: ...to here
coreutils-9.7/lib/di-set.c:120:22: throw: if 'hash_initialize' throws an exception...
coreutils-9.7/lib/di-set.c:120:22: danger: 'dis' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def10]
coreutils-9.7/lib/error.c:157:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
/usr/include/bits/error.h:37:1: enter_function: entry to 'error'
coreutils-9.7/lib/error.c:288:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/error.c:289:3: call_function: calling 'verror' from 'error'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def11]
coreutils-9.7/lib/error.c:184:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
/usr/include/bits/error.h:37:1: enter_function: entry to 'error'
coreutils-9.7/lib/error.c:288:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/error.c:289:3: call_function: calling 'verror' from 'error'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def12]
coreutils-9.7/lib/error.c:266:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
/usr/include/bits/error.h:37:1: enter_function: entry to 'error'
coreutils-9.7/lib/error.c:288:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/error.c:289:3: call_function: calling 'verror' from 'error'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def13]
coreutils-9.7/lib/error.c:332:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
/usr/include/bits/error.h:64:1: enter_function: entry to 'error_at_line'
coreutils-9.7/lib/error.c:363:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/error.c:364:3: call_function: calling 'verror_at_line' from 'error_at_line'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
coreutils-9.7/lib/exclude.c:135:33: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(pattern)'
coreutils-9.7/lib/exclude.c:507:1: enter_function: entry to 'add_exclude'
coreutils-9.7/lib/exclude.c:509:6: branch_true: following 'true' branch...
coreutils-9.7/lib/exclude.c:510:10: branch_true: ...to here
coreutils-9.7/lib/exclude.c:509:7: branch_true: following 'true' branch...
coreutils-9.7/lib/exclude.c:512:14: branch_true: ...to here
coreutils-9.7/lib/exclude.c:524:10: branch_false: following 'false' branch...
coreutils-9.7/lib/exclude.c:560:15: branch_false: ...to here
coreutils-9.7/lib/exclude.c:560:14: branch_true: following 'true' branch...
coreutils-9.7/lib/exclude.c:562:27: branch_true: ...to here
coreutils-9.7/lib/exclude.c:564:15: call_function: calling 'exclude_add_pattern_buffer' from 'add_exclude'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
coreutils-9.7/lib/exclude.c:271:39: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(40)'
coreutils-9.7/lib/exclude.c:507:1: enter_function: entry to 'add_exclude'
coreutils-9.7/lib/exclude.c:576:9: call_function: calling 'new_exclude_segment' from 'add_exclude'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
coreutils-9.7/lib/exclude.c:428:15: warning[-Wanalyzer-malloc-leak]: leak of 'filename'
coreutils-9.7/lib/exclude.c:459:1: enter_function: entry to 'excluded_file_name'
coreutils-9.7/lib/exclude.c:462:6: branch_false: following 'false' branch...
coreutils-9.7/lib/exclude.c:462:6: branch_false: ...to here
coreutils-9.7/lib/exclude.c:474:10: branch_true: following 'true' branch...
coreutils-9.7/lib/exclude.c:476:14: branch_true: ...to here
coreutils-9.7/lib/exclude.c:476:14: branch_true: following 'true' branch (when 'filename' is NULL)...
coreutils-9.7/lib/exclude.c:477:33: branch_true: ...to here
coreutils-9.7/lib/exclude.c:478:15: call_function: calling 'file_name_matches' from 'excluded_file_name'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
coreutils-9.7/lib/exclude.c:579:11: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(pattern)'
coreutils-9.7/lib/exclude.c:581:11: throw: if 'hash_insert' throws an exception...
coreutils-9.7/lib/exclude.c:579:11: danger: 'xstrdup(pattern)' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
coreutils-9.7/lib/exclude.c:604:7: warning[-Wanalyzer-null-dereference]: dereference of NULL 'buf'
coreutils-9.7/lib/exclude.c:657:1: enter_function: entry to 'add_exclude_file'
coreutils-9.7/lib/exclude.c:661:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/lib/exclude.c:664:14: branch_false: ...to here
coreutils-9.7/lib/exclude.c:665:6: branch_false: following 'false' branch...
coreutils-9.7/lib/exclude.c:667:12: branch_false: ...to here
coreutils-9.7/lib/exclude.c:667:12: call_function: calling 'add_exclude_fp' from 'add_exclude_file'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def19]
coreutils-9.7/lib/fcntl.c:328:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/fcntl.c:328:22: throw: if 'fcntl' throws an exception...
coreutils-9.7/lib/fcntl.c:328:22: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def20]
coreutils-9.7/lib/fcntl.c:424:24: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/fcntl.c:424:24: throw: if 'fcntl' throws an exception...
coreutils-9.7/lib/fcntl.c:424:24: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def21]
coreutils-9.7/lib/fcntl.c:432:24: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/fcntl.c:432:24: throw: if 'fcntl' throws an exception...
coreutils-9.7/lib/fcntl.c:432:24: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def22]
coreutils-9.7/lib/fcntl.c:482:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/fcntl.c:202:1: enter_function: entry to 'rpl_fcntl'
coreutils-9.7/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/fcntl.c:216:18: call_function: inlined call to 'rpl_fcntl_DUPFD' from 'rpl_fcntl'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def23]
coreutils-9.7/lib/fcntl.c:512:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/fcntl.c:202:1: enter_function: entry to 'rpl_fcntl'
coreutils-9.7/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/fcntl.c:223:18: call_function: calling 'rpl_fcntl_DUPFD_CLOEXEC' from 'rpl_fcntl'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def24]
coreutils-9.7/lib/fcntl.c:533:19: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/fcntl.c:202:1: enter_function: entry to 'rpl_fcntl'
coreutils-9.7/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/fcntl.c:223:18: call_function: calling 'rpl_fcntl_DUPFD_CLOEXEC' from 'rpl_fcntl'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def25]
coreutils-9.7/lib/fcntl.c:534:24: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/fcntl.c:202:1: enter_function: entry to 'rpl_fcntl'
coreutils-9.7/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/fcntl.c:223:18: call_function: calling 'rpl_fcntl_DUPFD_CLOEXEC' from 'rpl_fcntl'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def26]
coreutils-9.7/lib/fcntl.c:537:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/fcntl.c:202:1: enter_function: entry to 'rpl_fcntl'
coreutils-9.7/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/fcntl.c:223:18: call_function: calling 'rpl_fcntl_DUPFD_CLOEXEC' from 'rpl_fcntl'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
coreutils-9.7/lib/fd-reopen.c:42:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd2'
coreutils-9.7/lib/fd-reopen.c:36:6: branch_false: following 'false' branch...
coreutils-9.7/lib/fd-reopen.c:40:17: branch_false: ...to here
coreutils-9.7/lib/fd-reopen.c:40:17: acquire_resource: opened here
coreutils-9.7/lib/fd-reopen.c:42:7: throw: if 'close' throws an exception...
coreutils-9.7/lib/fd-reopen.c:42:7: danger: 'fd2' leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
coreutils-9.7/lib/file-has-acl.c:177:25: warning[-Wanalyzer-malloc-leak]: leak of 'ai.buf'
coreutils-9.7/lib/file-has-acl.c:987:1: enter_function: entry to 'file_has_acl'
coreutils-9.7/lib/file-has-acl.c:993:11: call_function: calling 'file_has_aclinfo' from 'file_has_acl'
Error: CPPCHECK_WARNING (CWE-457): [#def29]
coreutils-9.7/lib/file-has-acl.c:496: error[uninitvar]: Uninitialized variable: buf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
coreutils-9.7/lib/file-set.c:37:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/lib/file-set.c:33:6: branch_false: following 'false' branch (when 'ht' is non-NULL)...
coreutils-9.7/lib/file-set.c:36:9: branch_false: ...to here
coreutils-9.7/lib/file-set.c:37:15: throw: if 'xstrdup' throws an exception...
coreutils-9.7/lib/file-set.c:37:15: danger: 'xmalloc(24)' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
coreutils-9.7/lib/file-set.c:38:17: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/lib/file-set.c:33:6: branch_false: following 'false' branch (when 'ht' is non-NULL)...
coreutils-9.7/lib/file-set.c:36:9: branch_false: ...to here
coreutils-9.7/lib/file-set.c:42:39: throw: if 'hash_insert' throws an exception...
coreutils-9.7/lib/file-set.c:38:17: danger: 'xmalloc(24)' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
coreutils-9.7/lib/file-set.c:42:39: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/lib/file-set.c:33:6: branch_false: following 'false' branch (when 'ht' is non-NULL)...
coreutils-9.7/lib/file-set.c:36:9: branch_false: ...to here
coreutils-9.7/lib/file-set.c:42:39: throw: if 'hash_insert' throws an exception...
coreutils-9.7/lib/file-set.c:42:39: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
coreutils-9.7/lib/fopen-safer.c:39:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(file, mode)'
coreutils-9.7/lib/fopen-safer.c:33:14: acquire_resource: opened here
coreutils-9.7/lib/fopen-safer.c:35:6: branch_true: following 'true' branch...
coreutils-9.7/lib/fopen-safer.c:37:16: branch_true: ...to here
coreutils-9.7/lib/fopen-safer.c:39:10: branch_true: following 'true' branch...
coreutils-9.7/lib/fopen-safer.c:41:19: branch_true: ...to here
coreutils-9.7/lib/fopen-safer.c:41:19: throw: if 'dup_safer' throws an exception...
coreutils-9.7/lib/fopen-safer.c:39:11: danger: 'fopen(file, mode)' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
coreutils-9.7/lib/fopen-safer.c:39:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(file, mode)'
coreutils-9.7/lib/fopen-safer.c:33:14: acquire_memory: allocated here
coreutils-9.7/lib/fopen-safer.c:35:6: branch_true: following 'true' branch...
coreutils-9.7/lib/fopen-safer.c:37:16: branch_true: ...to here
coreutils-9.7/lib/fopen-safer.c:39:10: branch_true: following 'true' branch...
coreutils-9.7/lib/fopen-safer.c:41:19: branch_true: ...to here
coreutils-9.7/lib/fopen-safer.c:41:19: throw: if 'dup_safer' throws an exception...
coreutils-9.7/lib/fopen-safer.c:39:11: danger: 'fopen(file, mode)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
coreutils-9.7/lib/fts-cycle.c:92:23: warning[-Wanalyzer-malloc-leak]: leak of 'ad'
coreutils-9.7/lib/fts-cycle.c:79:31: acquire_memory: allocated here
coreutils-9.7/lib/fts-cycle.c:82:10: branch_false: following 'false' branch (when 'ad' is non-NULL)...
coreutils-9.7/lib/fts-cycle.c:85:17: branch_false: ...to here
coreutils-9.7/lib/fts-cycle.c:92:23: throw: if 'hash_insert' throws an exception...
coreutils-9.7/lib/fts-cycle.c:92:23: danger: 'ad' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
coreutils-9.7/lib/fts-cycle.c:120:1: warning[-Wanalyzer-malloc-leak]: leak of 'ad'
coreutils-9.7/lib/fts-cycle.c:79:31: acquire_memory: allocated here
coreutils-9.7/lib/fts-cycle.c:82:10: branch_false: following 'false' branch (when 'ad' is non-NULL)...
coreutils-9.7/lib/fts-cycle.c:85:17: branch_false: ...to here
coreutils-9.7/lib/fts-cycle.c:94:10: branch_false: following 'false' branch...
coreutils-9.7/lib/fts-cycle.c:94:10: branch_false: ...to here
coreutils-9.7/lib/fts-cycle.c:120:1: danger: 'ad' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
coreutils-9.7/lib/fts.c:741:17: warning[-Wanalyzer-malloc-leak]: leak of 't2'
coreutils-9.7/lib/fts.c:1267:1: enter_function: entry to 'fts_build'
coreutils-9.7/lib/fts.c:1307:16: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1319:38: branch_false: ...to here
coreutils-9.7/lib/fts.c:1379:12: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1389:23: branch_false: ...to here
coreutils-9.7/lib/fts.c:1389:23: branch_true: following 'true' branch (when 'type != 2')...
coreutils-9.7/lib/fts.c:1390:30: branch_true: ...to here
coreutils-9.7/lib/fts.c:1389:23: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1390:30: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1392:33: branch_false: ...to here
coreutils-9.7/lib/fts.c:1390:30: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1393:34: branch_false: ...to here
coreutils-9.7/lib/fts.c:1393:34: call_function: calling 'leaf_optimization' from 'fts_build'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
coreutils-9.7/lib/fts.c:749:10: warning[-Wanalyzer-malloc-leak]: leak of 't2'
coreutils-9.7/lib/fts.c:1267:1: enter_function: entry to 'fts_build'
coreutils-9.7/lib/fts.c:1307:16: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1319:38: branch_false: ...to here
coreutils-9.7/lib/fts.c:1379:12: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1389:23: branch_false: ...to here
coreutils-9.7/lib/fts.c:1389:23: branch_true: following 'true' branch (when 'type != 2')...
coreutils-9.7/lib/fts.c:1390:30: branch_true: ...to here
coreutils-9.7/lib/fts.c:1389:23: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1390:30: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1392:33: branch_false: ...to here
coreutils-9.7/lib/fts.c:1390:30: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1393:34: branch_false: ...to here
coreutils-9.7/lib/fts.c:1393:34: call_function: calling 'leaf_optimization' from 'fts_build'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
coreutils-9.7/lib/fts.c:1307:16: warning[-Wanalyzer-malloc-leak]: leak of '**sp.fts_cur.fts_dirp'
coreutils-9.7/lib/fts.c:1287:12: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1307:34: branch_false: ...to here
coreutils-9.7/lib/fts.c:1307:34: acquire_memory: allocated here
coreutils-9.7/lib/fts.c:1307:16: danger: '**sp.fts_cur.fts_dirp' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
coreutils-9.7/lib/getndelim2.c:111:16: warning[-Wanalyzer-malloc-leak]: leak of 'ptr'
coreutils-9.7/lib/getndelim2.c:76:6: branch_true: following 'true' branch (when 'ptr' is NULL)...
coreutils-9.7/lib/getndelim2.c:78:7: branch_true: ...to here
coreutils-9.7/lib/getndelim2.c:79:13: acquire_memory: allocated here
coreutils-9.7/lib/getndelim2.c:80:10: branch_false: following 'false' branch (when 'ptr' is non-NULL)...
coreutils-9.7/lib/getndelim2.c:84:6: branch_false: ...to here
coreutils-9.7/lib/getndelim2.c:84:6: branch_false: following 'false' branch (when 'size >= offset')...
coreutils-9.7/lib/getndelim2.c:87:3: branch_false: ...to here
coreutils-9.7/lib/getndelim2.c:90:6: branch_false: following 'false' branch...
coreutils-9.7/lib/getndelim2.c:94:6: branch_false: ...to here
coreutils-9.7/lib/getndelim2.c:111:16: throw: if 'freadptr' throws an exception...
coreutils-9.7/lib/getndelim2.c:111:16: danger: 'ptr' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
coreutils-9.7/lib/gl_openssl.h:81:10: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/md5-stream.c:58:1: enter_function: entry to 'md5_stream'
coreutils-9.7/lib/md5-stream.c:66:18: acquire_memory: allocated here
coreutils-9.7/lib/md5-stream.c:67:6: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.7/lib/md5-stream.c:71:3: call_function: inlined call to 'md5_init_ctx' from 'md5_stream'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
coreutils-9.7/lib/gl_openssl.h:96:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/sha256-stream.c:131:1: enter_function: entry to 'sha224_stream'
coreutils-9.7/lib/sha256-stream.c:133:10: call_function: calling 'shaxxx_stream' from 'sha224_stream'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
coreutils-9.7/lib/gl_openssl.h:100:10: warning[-Wanalyzer-malloc-leak]: leak of 'memblock'
coreutils-9.7/gnulib-tests/bench-digest.h:23:1: enter_function: entry to 'main'
coreutils-9.7/gnulib-tests/bench-digest.h:25:6: branch_false: following 'false' branch (when 'argc == 3')...
coreutils-9.7/gnulib-tests/bench-digest.h:31:17: branch_false: ...to here
coreutils-9.7/gnulib-tests/bench-digest.h:34:29: acquire_memory: allocated here
coreutils-9.7/gnulib-tests/bench-digest.h:35:6: branch_false: following 'false' branch (when 'memblock' is non-NULL)...
coreutils-9.7/gnulib-tests/bench-digest.h:35:6: branch_false: ...to here
coreutils-9.7/gnulib-tests/bench-digest.h:53:19: branch_true: following 'true' branch...
coreutils-9.7/gnulib-tests/bench-digest.h:56:7: call_function: inlined call to 'md5_buffer' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
coreutils-9.7/lib/hash.c:235:14: warning[-Wanalyzer-malloc-leak]: leak of 'storage.bucket'
coreutils-9.7/lib/hash.c:1029:1: enter_function: entry to 'hash_remove'
coreutils-9.7/lib/hash.c:1046:10: branch_true: following 'true' branch...
coreutils-9.7/lib/hash.c:1051:11: branch_true: ...to here
coreutils-9.7/lib/hash.c:1052:14: branch_true: following 'true' branch...
coreutils-9.7/lib/hash.c:1057:18: branch_true: ...to here
coreutils-9.7/lib/hash.c:1062:20: call_function: calling 'hash_rehash' from 'hash_remove'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
coreutils-9.7/lib/heap.c:51:17: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(32)'
coreutils-9.7/lib/heap.c:51:17: throw: if 'xnmalloc' throws an exception...
coreutils-9.7/lib/heap.c:51:17: danger: 'xmalloc(32)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
coreutils-9.7/lib/ino-map.c:89:17: warning[-Wanalyzer-malloc-leak]: leak of 'im'
coreutils-9.7/lib/ino-map.c:84:24: acquire_memory: allocated here
coreutils-9.7/lib/ino-map.c:86:6: branch_true: following 'true' branch (when 'im' is non-NULL)...
coreutils-9.7/lib/ino-map.c:89:17: branch_true: ...to here
coreutils-9.7/lib/ino-map.c:89:17: throw: if 'hash_initialize' throws an exception...
coreutils-9.7/lib/ino-map.c:89:17: danger: 'im' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def47]
coreutils-9.7/lib/long-options.c:74:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/long-options.c:61:6: branch_true: following 'true' branch (when 'argc == 2')...
coreutils-9.7/lib/long-options.c:62:15: branch_true: ...to here
coreutils-9.7/lib/long-options.c:61:7: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/lib/long-options.c:64:7: branch_true: ...to here
coreutils-9.7/lib/long-options.c:73:13: acquire_resource: 'va_start' called here
coreutils-9.7/lib/long-options.c:74:13: throw: if 'version_etc_va' throws an exception...
coreutils-9.7/lib/long-options.c:74:13: danger: missing call to 'va_end' to match 'va_start' at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-664): [#def48]
coreutils-9.7/lib/long-options.c:76: error[va_end_missing]: va_list 'authors' was opened but not closed by va_end().
Error: GCC_ANALYZER_WARNING (CWE-404): [#def49]
coreutils-9.7/lib/long-options.c:127:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/long-options.c:115:6: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/lib/long-options.c:117:7: branch_true: ...to here
coreutils-9.7/lib/long-options.c:126:13: acquire_resource: 'va_start' called here
coreutils-9.7/lib/long-options.c:127:13: throw: if 'version_etc_va' throws an exception...
coreutils-9.7/lib/long-options.c:127:13: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-664): [#def50]
coreutils-9.7/lib/long-options.c:129: error[va_end_missing]: va_list 'authors' was opened but not closed by va_end().
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
coreutils-9.7/lib/mbfile.h:93:7: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc((long int)((long unsigned int)max_column_width * 32))'
coreutils-9.7/src/unexpand.c:107:1: enter_function: entry to 'unexpand'
coreutils-9.7/src/unexpand.c:124:6: branch_false: following 'false' branch...
coreutils-9.7/src/unexpand.c:127:3: branch_false: ...to here
coreutils-9.7/src/unexpand.c:185:13: call_function: calling 'mbfile_multi_getc' from 'unexpand'
coreutils-9.7/src/unexpand.c:185:13: return_function: returning to 'unexpand' from 'mbfile_multi_getc'
coreutils-9.7/src/unexpand.c:186:16: branch_true: following 'true' branch...
coreutils-9.7/src/unexpand.c:186:41: branch_true: ...to here
coreutils-9.7/src/unexpand.c:186:41: throw: if 'next_file' throws an exception...
coreutils-9.7/lib/mbfile.h:93:7: danger: 'ximalloc((long int)((long unsigned int)max_column_width * 32))' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: COMPILER_WARNING (CWE-704): [#def52]
coreutils-9.7/lib/mbschr.c: scope_hint: In function 'mbschr'
coreutils-9.7/lib/mbschr.c:68:12: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def53]
coreutils-9.7/lib/mbschr.c:68:12: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def54]
coreutils-9.7/lib/memchr2.c: scope_hint: In function 'memchr2'
coreutils-9.7/lib/memchr2.c:58:12: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def55]
coreutils-9.7/lib/memchr2.c:58:12: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
coreutils-9.7/lib/mgetgroups.c:96:16: warning[-Wanalyzer-malloc-leak]: leak of 'g'
coreutils-9.7/lib/mgetgroups.c:66:1: enter_function: entry to 'mgetgroups'
coreutils-9.7/lib/mgetgroups.c:81:6: branch_true: following 'true' branch (when 'username' is non-NULL)...
coreutils-9.7/lib/mgetgroups.c:84:7: branch_true: ...to here
coreutils-9.7/lib/mgetgroups.c:86:11: call_function: calling 'realloc_groupbuf' from 'mgetgroups'
coreutils-9.7/lib/mgetgroups.c:86:11: return_function: returning to 'mgetgroups' from 'realloc_groupbuf'
coreutils-9.7/lib/mgetgroups.c:87:10: branch_false: following 'false' branch...
coreutils-9.7/lib/mgetgroups.c:87:10: branch_false: ...to here
coreutils-9.7/lib/mgetgroups.c:96:16: throw: if 'getgrouplist' throws an exception...
coreutils-9.7/lib/mgetgroups.c:96:16: danger: 'g' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
coreutils-9.7/lib/mountlist.c:539:30: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:539:30: throw: if 'xstrdup' throws an exception...
coreutils-9.7/lib/mountlist.c:539:30: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
coreutils-9.7/lib/mountlist.c:540:31: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:540:31: danger: '<unknown>' leaks here; was allocated at [(31)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
coreutils-9.7/lib/mountlist.c:540:31: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:540:31: throw: if 'xstrdup' throws an exception...
coreutils-9.7/lib/mountlist.c:540:31: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
coreutils-9.7/lib/mountlist.c:541:30: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:541:30: danger: '<unknown>' leaks here; was allocated at [(31)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
coreutils-9.7/lib/mountlist.c:541:30: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:541:30: throw: if 'xstrdup' throws an exception...
coreutils-9.7/lib/mountlist.c:541:30: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
coreutils-9.7/lib/mountlist.c:542:27: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:542:27: danger: '<unknown>' leaks here; was allocated at [(31)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
coreutils-9.7/lib/mountlist.c:542:27: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:542:27: throw: if 'xstrdup' throws an exception...
coreutils-9.7/lib/mountlist.c:542:27: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
coreutils-9.7/lib/mountlist.c:585:39: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.7/lib/mountlist.c:483:8: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:576:14: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:577:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
coreutils-9.7/lib/mountlist.c:577:12: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:580:16: branch_true: following 'true' branch (when 'mnt' is non-NULL)...
coreutils-9.7/lib/mountlist.c:582:25: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:585:30: throw: if 'xstrdup' throws an exception...
coreutils-9.7/lib/mountlist.c:585:39: danger: 'xmalloc(56)' leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
coreutils-9.7/lib/mountlist.c:586:31: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/lib/mountlist.c:483:8: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:576:14: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:577:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
coreutils-9.7/lib/mountlist.c:577:12: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:580:16: branch_true: following 'true' branch (when 'mnt' is non-NULL)...
coreutils-9.7/lib/mountlist.c:582:25: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:586:31: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
coreutils-9.7/lib/mountlist.c:588:27: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/lib/mountlist.c:483:8: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:576:14: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:577:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
coreutils-9.7/lib/mountlist.c:577:12: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:580:16: branch_true: following 'true' branch (when 'mnt' is non-NULL)...
coreutils-9.7/lib/mountlist.c:582:25: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:588:27: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def67]
coreutils-9.7/lib/posixtm.c:55:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*digit_pair'
coreutils-9.7/lib/posixtm.c:92:1: enter_function: entry to 'posix_time_parse'
coreutils-9.7/lib/posixtm.c:111:6: branch_false: following 'false' branch...
coreutils-9.7/lib/posixtm.c:119:21: branch_false: following 'false' branch (when 'i >= len')...
coreutils-9.7/lib/posixtm.c:123:9: branch_false: ...to here
coreutils-9.7/lib/posixtm.c:123:6: branch_true: following 'true' branch...
coreutils-9.7/lib/posixtm.c:125:13: branch_true: ...to here
coreutils-9.7/lib/posixtm.c:125:13: call_function: calling 'year' from 'posix_time_parse'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def68]
coreutils-9.7/lib/posixtm.c:70:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*digit_pair'
coreutils-9.7/lib/posixtm.c:92:1: enter_function: entry to 'posix_time_parse'
coreutils-9.7/lib/posixtm.c:111:6: branch_false: following 'false' branch...
coreutils-9.7/lib/posixtm.c:119:21: branch_false: following 'false' branch (when 'i >= len')...
coreutils-9.7/lib/posixtm.c:123:9: branch_false: ...to here
coreutils-9.7/lib/posixtm.c:123:6: branch_true: following 'true' branch...
coreutils-9.7/lib/posixtm.c:125:13: branch_true: ...to here
coreutils-9.7/lib/posixtm.c:125:13: call_function: calling 'year' from 'posix_time_parse'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def69]
coreutils-9.7/lib/posixtm.c:70:43: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'digit_pair[1]'
coreutils-9.7/lib/posixtm.c:92:1: enter_function: entry to 'posix_time_parse'
coreutils-9.7/lib/posixtm.c:111:6: branch_false: following 'false' branch...
coreutils-9.7/lib/posixtm.c:119:21: branch_true: following 'true' branch (when 'i < len')...
coreutils-9.7/lib/posixtm.c:120:23: branch_true: ...to here
coreutils-9.7/lib/posixtm.c:119:21: branch_false: following 'false' branch (when 'i >= len')...
coreutils-9.7/lib/posixtm.c:123:9: branch_false: ...to here
coreutils-9.7/lib/posixtm.c:123:6: branch_true: following 'true' branch...
coreutils-9.7/lib/posixtm.c:125:13: branch_true: ...to here
coreutils-9.7/lib/posixtm.c:125:13: call_function: calling 'year' from 'posix_time_parse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
coreutils-9.7/lib/randint.c:74:3: warning[-Wanalyzer-malloc-leak]: leak of 'randread_new(name, bytes_bound)'
coreutils-9.7/lib/randint.c:84:1: enter_function: entry to 'randint_all_new'
coreutils-9.7/lib/randint.c:86:36: acquire_memory: allocated here
coreutils-9.7/lib/randint.c:87:10: branch_true: following 'true' branch...
coreutils-9.7/lib/randint.c:87:20: branch_true: ...to here
coreutils-9.7/lib/randint.c:87:20: call_function: calling 'randint_new' from 'randint_all_new'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
coreutils-9.7/lib/randint.h:52:10: warning[-Wanalyzer-malloc-leak]: leak of 'sv'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:200:18: call_function: calling 'sparse_new' from 'randperm_new'
coreutils-9.7/lib/randperm.c:200:18: return_function: returning to 'randperm_new' from 'sparse_new'
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:215:28: call_function: inlined call to 'randint_choose' from 'randperm_new'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
coreutils-9.7/lib/randint.h:52:10: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:215:28: call_function: inlined call to 'randint_choose' from 'randperm_new'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
coreutils-9.7/lib/randint.h:52:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8)'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:161:14: call_function: inlined call to 'randint_choose' from 'randperm_new'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
coreutils-9.7/lib/randperm.c:111:28: warning[-Wanalyzer-malloc-leak]: leak of 'sv'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:200:18: call_function: calling 'sparse_new' from 'randperm_new'
coreutils-9.7/lib/randperm.c:200:18: return_function: returning to 'randperm_new' from 'sparse_new'
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
coreutils-9.7/lib/randperm.c:111:28: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
coreutils-9.7/lib/randperm.c:112:28: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
coreutils-9.7/lib/randperm.c:117:12: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
coreutils-9.7/lib/randperm.c:122:12: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
coreutils-9.7/lib/randperm.c:122:12: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:122:12: throw: if 'xmalloc' throws an exception...
coreutils-9.7/lib/randperm.c:122:12: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
coreutils-9.7/lib/randperm.c:129:8: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
coreutils-9.7/lib/randperm.c:129:8: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.7/lib/randperm.c:129:8: throw: if 'hash_insert' throws an exception...
coreutils-9.7/lib/randperm.c:129:8: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
coreutils-9.7/lib/randperm.c:129:8: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.7/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:129:8: throw: if 'hash_insert' throws an exception...
coreutils-9.7/lib/randperm.c:129:8: danger: 'v2' leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
coreutils-9.7/lib/randperm.c:130:5: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:130:5: branch_true: ...to here
coreutils-9.7/lib/randperm.c:130:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.7/lib/randperm.c:130:5: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
coreutils-9.7/lib/randperm.c:130:5: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.7/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:130:5: branch_true: ...to here
coreutils-9.7/lib/randperm.c:130:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.7/lib/randperm.c:130:5: danger: 'v2' leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
coreutils-9.7/lib/randperm.c:131:8: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:8: throw: if 'hash_insert' throws an exception...
coreutils-9.7/lib/randperm.c:131:8: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
coreutils-9.7/lib/randperm.c:131:8: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.7/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:8: throw: if 'hash_insert' throws an exception...
coreutils-9.7/lib/randperm.c:131:8: danger: 'v2' leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
coreutils-9.7/lib/randperm.c:132:5: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:132:5: branch_true: ...to here
coreutils-9.7/lib/randperm.c:132:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.7/lib/randperm.c:132:5: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
coreutils-9.7/lib/randperm.c:132:5: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.7/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:132:5: branch_true: ...to here
coreutils-9.7/lib/randperm.c:132:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.7/lib/randperm.c:132:5: danger: 'v2' leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
coreutils-9.7/lib/randperm.c:135:1: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:134:4: branch_false: ...to here
coreutils-9.7/lib/randperm.c:135:1: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
coreutils-9.7/lib/randperm.c:135:1: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.7/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:134:4: branch_false: ...to here
coreutils-9.7/lib/randperm.c:135:1: danger: 'v2' leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
coreutils-9.7/lib/randperm.c:203:17: warning[-Wanalyzer-malloc-leak]: leak of 'sparse_new(h * 2)'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:200:18: call_function: calling 'sparse_new' from 'randperm_new'
coreutils-9.7/lib/randperm.c:200:18: return_function: returning to 'randperm_new' from 'sparse_new'
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:203:17: throw: if 'xnmalloc' throws an exception...
coreutils-9.7/lib/randperm.c:203:17: danger: 'sparse_new(h * 2)' leaks here; was allocated at [(8)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
coreutils-9.7/lib/randread.c:119:31: warning[-Wanalyzer-malloc-leak]: leak of 'source'
coreutils-9.7/lib/randread.c:173:1: enter_function: entry to 'randread_new'
coreutils-9.7/lib/randread.c:175:6: branch_false: following 'false' branch (when 'bytes_bound != 0')...
coreutils-9.7/lib/randread.c:182:10: branch_false: ...to here
coreutils-9.7/lib/randread.c:182:10: branch_true: following 'true' branch (when 'name' is non-NULL)...
coreutils-9.7/lib/randread.c:183:25: branch_true: ...to here
coreutils-9.7/lib/randread.c:183:25: acquire_memory: allocated here
coreutils-9.7/lib/randread.c:183:12: branch_false: following 'false' branch...
coreutils-9.7/lib/randread.c:186:11: call_function: inlined call to 'simple_new' from 'randread_new'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
coreutils-9.7/lib/randread.c:203:28: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(4152)'
coreutils-9.7/lib/randread.c:173:1: enter_function: entry to 'randread_new'
coreutils-9.7/lib/randread.c:175:6: branch_false: following 'false' branch (when 'bytes_bound != 0')...
coreutils-9.7/lib/randread.c:182:10: branch_false: ...to here
coreutils-9.7/lib/randread.c:182:10: branch_false: following 'false' branch (when 'name' is NULL)...
coreutils-9.7/lib/randread.c:186:11: call_function: inlined call to 'simple_new' from 'randread_new'
coreutils-9.7/lib/randread.c:188:10: branch_false: following 'false' branch (when 'source' is NULL)...
coreutils-9.7/lib/randread.c:202:11: branch_false: ...to here
coreutils-9.7/lib/randread.c:203:17: call_function: calling 'get_nonce' from 'randread_new'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def94]
coreutils-9.7/lib/read-file.c:199:7: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, mode)'
coreutils-9.7/lib/read-file.c:190:1: enter_function: entry to 'read_file'
coreutils-9.7/lib/read-file.c:193:18: acquire_resource: opened here
coreutils-9.7/lib/read-file.c:196:6: branch_false: following 'false' branch...
coreutils-9.7/lib/read-file.c:199:7: branch_false: ...to here
coreutils-9.7/lib/read-file.c:202:9: call_function: calling 'fread_file' from 'read_file'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
coreutils-9.7/lib/read-file.c:199:7: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, mode)'
coreutils-9.7/lib/read-file.c:190:1: enter_function: entry to 'read_file'
coreutils-9.7/lib/read-file.c:193:18: acquire_memory: allocated here
coreutils-9.7/lib/read-file.c:196:6: branch_false: following 'false' branch...
coreutils-9.7/lib/read-file.c:199:7: branch_false: ...to here
coreutils-9.7/lib/read-file.c:202:9: call_function: calling 'fread_file' from 'read_file'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
coreutils-9.7/lib/readtokens.c:110:13: warning[-Wanalyzer-malloc-leak]: leak of 'lengths'
coreutils-9.7/lib/readtokens.c:139:1: enter_function: entry to 'readtokens'
coreutils-9.7/lib/readtokens.c:165:29: call_function: calling 'readtoken' from 'readtokens'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
coreutils-9.7/lib/readtokens.c:110:13: warning[-Wanalyzer-malloc-leak]: leak of 'tokens'
coreutils-9.7/lib/readtokens.c:139:1: enter_function: entry to 'readtokens'
coreutils-9.7/lib/readtokens.c:165:29: call_function: calling 'readtoken' from 'readtokens'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
coreutils-9.7/lib/readtokens.c:158:13: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc(projected_n_tokens, 8)'
coreutils-9.7/lib/readtokens.c:158:13: throw: if 'xnmalloc' throws an exception...
coreutils-9.7/lib/readtokens.c:158:13: danger: 'xnmalloc(projected_n_tokens, 8)' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
coreutils-9.7/lib/readutmp.c:255:3: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
coreutils-9.7/lib/readutmp.c:981:1: enter_function: entry to 'read_utmp'
coreutils-9.7/lib/readutmp.c:985:6: branch_true: following 'true' branch (when the strings are equal)...
coreutils-9.7/lib/readutmp.c:987:12: branch_true: ...to here
coreutils-9.7/lib/readutmp.c:987:12: call_function: calling 'read_utmp_from_systemd' from 'read_utmp'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
coreutils-9.7/lib/readutmp.c:756:31: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/dev/pts")'
coreutils-9.7/lib/readutmp.c:981:1: enter_function: entry to 'read_utmp'
coreutils-9.7/lib/readutmp.c:985:6: branch_true: following 'true' branch (when the strings are equal)...
coreutils-9.7/lib/readutmp.c:987:12: branch_true: ...to here
coreutils-9.7/lib/readutmp.c:987:12: call_function: calling 'read_utmp_from_systemd' from 'read_utmp'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
coreutils-9.7/lib/sha1-stream.c:59:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/sha1-stream.c:54:18: acquire_memory: allocated here
coreutils-9.7/lib/sha1-stream.c:55:6: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.7/lib/sha1-stream.c:59:3: branch_false: ...to here
coreutils-9.7/lib/sha1-stream.c:59:3: throw: if 'sha1_init_ctx' throws an exception...
coreutils-9.7/lib/sha1-stream.c:59:3: danger: 'buffer' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
coreutils-9.7/lib/sha256-stream.c:61:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/sha256-stream.c:131:1: enter_function: entry to 'sha224_stream'
coreutils-9.7/lib/sha256-stream.c:133:10: call_function: calling 'shaxxx_stream' from 'sha224_stream'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
coreutils-9.7/lib/sha512-stream.c:61:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/sha512-stream.c:131:1: enter_function: entry to 'sha384_stream'
coreutils-9.7/lib/sha512-stream.c:133:10: call_function: calling 'shaxxx_stream' from 'sha384_stream'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
coreutils-9.7/lib/sm3-stream.c:56:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/sm3-stream.c:51:18: acquire_memory: allocated here
coreutils-9.7/lib/sm3-stream.c:52:6: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.7/lib/sm3-stream.c:56:3: branch_false: ...to here
coreutils-9.7/lib/sm3-stream.c:56:3: throw: if 'sm3_init_ctx' throws an exception...
coreutils-9.7/lib/sm3-stream.c:56:3: danger: 'buffer' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
coreutils-9.7/lib/time_rz.c:88:22: warning[-Wanalyzer-malloc-leak]: leak of 'tzalloc(getenv("TZ"))'
coreutils-9.7/separate/lib/time.h:1116:1: enter_function: entry to 'mktime_z'
coreutils-9.7/lib/time_rz.c:282:6: branch_false: following 'false' branch (when 'tz' is non-NULL)...
coreutils-9.7/lib/time_rz.c:286:27: branch_false: ...to here
coreutils-9.7/lib/time_rz.c:286:27: call_function: calling 'set_tz' from 'mktime_z'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
coreutils-9.7/lib/time_rz.c:206:10: warning[-Wanalyzer-malloc-leak]: leak of 'set_tz(tz)'
coreutils-9.7/separate/lib/time.h:1116:1: enter_function: entry to 'mktime_z'
coreutils-9.7/lib/time_rz.c:282:6: branch_false: following 'false' branch (when 'tz' is non-NULL)...
coreutils-9.7/lib/time_rz.c:286:27: branch_false: ...to here
coreutils-9.7/lib/time_rz.c:286:27: call_function: calling 'set_tz' from 'mktime_z'
coreutils-9.7/lib/time_rz.c:286:27: return_function: returning to 'mktime_z' from 'set_tz'
coreutils-9.7/lib/time_rz.c:287:10: branch_true: following 'true' branch...
coreutils-9.7/lib/time_rz.c:290:25: branch_true: ...to here
coreutils-9.7/lib/time_rz.c:301:15: call_function: calling 'revert_tz' from 'mktime_z'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
coreutils-9.7/lib/userspec.c:156:33: warning[-Wanalyzer-malloc-leak]: leak of 'u'
coreutils-9.7/lib/userspec.c:258:1: enter_function: entry to 'parse_user_spec_warn'
coreutils-9.7/lib/userspec.c:263:5: call_function: calling 'parse_with_separator' from 'parse_user_spec_warn'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
coreutils-9.7/lib/userspec.c:170:19: warning[-Wanalyzer-malloc-leak]: leak of 'u'
coreutils-9.7/lib/userspec.c:258:1: enter_function: entry to 'parse_user_spec_warn'
coreutils-9.7/lib/userspec.c:263:5: call_function: calling 'parse_with_separator' from 'parse_user_spec_warn'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
coreutils-9.7/lib/userspec.c:191:7: warning[-Wanalyzer-malloc-leak]: leak of 'u'
coreutils-9.7/lib/userspec.c:258:1: enter_function: entry to 'parse_user_spec_warn'
coreutils-9.7/lib/userspec.c:263:5: call_function: calling 'parse_with_separator' from 'parse_user_spec_warn'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
coreutils-9.7/lib/xalloc.h:149:10: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_false: following 'false' branch (when 'sparse == 0')...
coreutils-9.7/lib/randperm.c:219:15: call_function: inlined call to 'swap' from 'randperm_new'
coreutils-9.7/lib/randperm.c:216:16: branch_false: following 'false' branch (when 'sparse == 0')...
coreutils-9.7/lib/randperm.c:219:15: call_function: inlined call to 'swap' from 'randperm_new'
coreutils-9.7/lib/randperm.c:222:12: branch_false: following 'false' branch (when 'sparse == 0')...
coreutils-9.7/lib/randperm.c:225:15: call_function: inlined call to 'xnrealloc' from 'randperm_new'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def111]
coreutils-9.7/lib/xasprintf.c:30:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/xasprintf.c:29:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/xasprintf.c:30:12: throw: if 'xvasprintf' throws an exception...
coreutils-9.7/lib/xasprintf.c:30:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def112]
coreutils-9.7/lib/xdectoint.c:75: warning[uninitvar]: Uninitialized variable: overflow_errno
Error: CPPCHECK_WARNING (CWE-457): [#def113]
coreutils-9.7/lib/xdectoint.c:83: warning[uninitvar]: Uninitialized variable: r
Error: GCC_ANALYZER_WARNING (CWE-404): [#def114]
coreutils-9.7/lib/xprintf.c:46:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/xprintf.c:32:1: enter_function: entry to 'xprintf'
coreutils-9.7/lib/xprintf.c:36:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/xprintf.c:37:12: call_function: calling 'xvprintf' from 'xprintf'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def115]
coreutils-9.7/lib/xprintf.c:68:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/xprintf.c:54:1: enter_function: entry to 'xfprintf'
coreutils-9.7/lib/xprintf.c:58:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/xprintf.c:59:12: call_function: calling 'xvfprintf' from 'xfprintf'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def116]
coreutils-9.7/separate/parse-datetime.c:1831:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
coreutils-9.7/separate/parse-datetime.y:2404:1: enter_function: entry to 'parse_datetime'
coreutils-9.7/separate/parse-datetime.y:2409:6: branch_false: following 'false' branch...
coreutils-9.7/separate/parse-datetime.y:2411:13: branch_false: ...to here
coreutils-9.7/separate/parse-datetime.y:2411:13: call_function: calling 'parse_datetime_body' from 'parse_datetime'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def117]
coreutils-9.7/single/parse-datetime.c:1831:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
coreutils-9.7/single/parse-datetime.y:2404:1: enter_function: entry to 'parse_datetime'
coreutils-9.7/single/parse-datetime.y:2409:6: branch_false: following 'false' branch...
coreutils-9.7/single/parse-datetime.y:2411:13: branch_false: ...to here
coreutils-9.7/single/parse-datetime.y:2411:13: call_function: calling 'parse_datetime_body' from 'parse_datetime'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
coreutils-9.7/src/basename.c:106:3: warning[-Wanalyzer-malloc-leak]: leak of 'base_name(string)'
coreutils-9.7/src/basename.c:106:3: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.7/src/basename.c:106:3: danger: 'base_name(string)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
coreutils-9.7/src/basenc.c:1096:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(30720)'
coreutils-9.7/src/basenc.c:1215:1: enter_function: entry to 'main'
coreutils-9.7/src/basenc.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1371:6: branch_false: ...to here
coreutils-9.7/src/basenc.c:1390:6: branch_false: following 'false' branch (when 'decode == 0')...
coreutils-9.7/src/basenc.c:1393:5: branch_false: ...to here
coreutils-9.7/src/basenc.c:1393:5: call_function: calling 'do_encode' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
coreutils-9.7/src/basenc.c:1096:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(30720)'
coreutils-9.7/src/basenc.c:1096:21: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1096:21: danger: 'xmalloc(30720)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
coreutils-9.7/src/basenc.c:1105:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)base_length(30720))'
coreutils-9.7/src/basenc.c:1089:1: enter_function: entry to 'do_encode'
coreutils-9.7/src/basenc.c:1110:10: branch_false: following 'false' branch (when 'sum <= 0')...
coreutils-9.7/src/basenc.c:1120:11: call_function: inlined call to 'feof_unlocked' from 'do_encode'
coreutils-9.7/src/basenc.c:1105:15: danger: 'xmalloc((long unsigned int)base_length(30720))' leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
coreutils-9.7/src/basenc.c:1105:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(40960)'
coreutils-9.7/src/basenc.c:1215:1: enter_function: entry to 'main'
coreutils-9.7/src/basenc.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1371:6: branch_false: ...to here
coreutils-9.7/src/basenc.c:1390:6: branch_false: following 'false' branch (when 'decode == 0')...
coreutils-9.7/src/basenc.c:1393:5: branch_false: ...to here
coreutils-9.7/src/basenc.c:1393:5: call_function: calling 'do_encode' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
coreutils-9.7/src/basenc.c:1105:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(49152)'
coreutils-9.7/src/basenc.c:1215:1: enter_function: entry to 'main'
coreutils-9.7/src/basenc.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1371:6: branch_false: ...to here
coreutils-9.7/src/basenc.c:1390:6: branch_false: following 'false' branch (when 'decode == 0')...
coreutils-9.7/src/basenc.c:1393:5: branch_false: ...to here
coreutils-9.7/src/basenc.c:1393:5: call_function: calling 'do_encode' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
coreutils-9.7/src/basenc.c:1141:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)base_length(4200))'
coreutils-9.7/src/basenc.c:1141:12: throw: if 'xmalloc' throws an exception...
coreutils-9.7/src/basenc.c:1141:12: danger: 'xmalloc((long unsigned int)base_length(4200))' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
coreutils-9.7/src/basenc.c:1141:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(4096)'
coreutils-9.7/src/basenc.c:1141:12: throw: if 'xmalloc' throws an exception...
coreutils-9.7/src/basenc.c:1141:12: danger: 'xmalloc(4096)' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
coreutils-9.7/src/basenc.c:1141:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8192)'
coreutils-9.7/src/basenc.c:1141:12: throw: if 'xmalloc' throws an exception...
coreutils-9.7/src/basenc.c:1141:12: danger: 'xmalloc(8192)' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
coreutils-9.7/src/basenc.c:1146:3: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)base_length(4200))'
coreutils-9.7/src/basenc.c:1146:3: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1146:3: danger: 'xmalloc((long unsigned int)base_length(4200))' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
coreutils-9.7/src/basenc.c:1146:3: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(4200)'
coreutils-9.7/src/basenc.c:1146:3: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1146:3: danger: 'xmalloc(4200)' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
coreutils-9.7/src/basenc.c:1155:21: warning[-Wanalyzer-malloc-leak]: leak of 'inbuf'
coreutils-9.7/src/basenc.c:1155:21: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1155:21: danger: 'inbuf' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
coreutils-9.7/src/basenc.c:1155:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(3072)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
coreutils-9.7/src/basenc.c:1155:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(5120)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
coreutils-9.7/src/basenc.c:1162:23: warning[-Wanalyzer-malloc-leak]: leak of 'inbuf'
coreutils-9.7/src/basenc.c:1133:1: enter_function: entry to 'do_decode'
coreutils-9.7/src/basenc.c:1155:21: call_function: inlined call to 'fread_unlocked' from 'do_decode'
coreutils-9.7/src/basenc.c:1158:14: branch_true: following 'true' branch (when 'ignore_garbage != 0')...
coreutils-9.7/src/basenc.c:1158:14: branch_true: ...to here
coreutils-9.7/src/basenc.c:1160:33: branch_true: following 'true' branch...
coreutils-9.7/src/basenc.c:1162:23: branch_true: ...to here
coreutils-9.7/src/basenc.c:1162:23: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1162:23: danger: 'inbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
coreutils-9.7/src/basenc.c:1174:20: warning[-Wanalyzer-malloc-leak]: leak of 'inbuf'
coreutils-9.7/src/basenc.c:1133:1: enter_function: entry to 'do_decode'
coreutils-9.7/src/basenc.c:1155:21: call_function: inlined call to 'fread_unlocked' from 'do_decode'
coreutils-9.7/src/basenc.c:1155:17: branch_true: ...to here
coreutils-9.7/src/basenc.c:1158:14: branch_true: following 'true' branch (when 'ignore_garbage != 0')...
coreutils-9.7/src/basenc.c:1158:14: branch_true: ...to here
coreutils-9.7/src/basenc.c:1160:33: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1169:11: branch_false: ...to here
coreutils-9.7/src/basenc.c:1171:14: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1174:20: branch_false: ...to here
coreutils-9.7/src/basenc.c:1174:20: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1174:20: danger: 'inbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
coreutils-9.7/src/basenc.c:1200:16: warning[-Wanalyzer-malloc-leak]: leak of 'inbuf'
coreutils-9.7/src/basenc.c:1133:1: enter_function: entry to 'do_decode'
coreutils-9.7/src/basenc.c:1155:21: call_function: inlined call to 'fread_unlocked' from 'do_decode'
coreutils-9.7/src/basenc.c:1158:14: branch_true: following 'true' branch (when 'ignore_garbage != 0')...
coreutils-9.7/src/basenc.c:1158:14: branch_true: ...to here
coreutils-9.7/src/basenc.c:1160:33: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1169:11: branch_false: ...to here
coreutils-9.7/src/basenc.c:1171:14: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1174:20: branch_false: ...to here
coreutils-9.7/src/basenc.c:1180:23: branch_true: following 'true' branch...
coreutils-9.7/src/basenc.c:1182:14: branch_true: ...to here
coreutils-9.7/src/basenc.c:1182:14: branch_false: following 'false' branch (when 'k != 1')...
coreutils-9.7/src/basenc.c:1199:17: branch_false: ...to here
coreutils-9.7/src/basenc.c:1200:16: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1200:16: danger: 'inbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
coreutils-9.7/src/basenc.c:1388:3: warning[-Wanalyzer-file-leak]: leak of FILE 'input_fh'
coreutils-9.7/src/basenc.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1371:6: branch_false: ...to here
coreutils-9.7/src/basenc.c:1376:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/basenc.c:1383:18: branch_false: ...to here
coreutils-9.7/src/basenc.c:1383:18: acquire_resource: opened here
coreutils-9.7/src/basenc.c:1384:10: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1388:3: branch_false: ...to here
coreutils-9.7/src/basenc.c:1388:3: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/basenc.c:1388:3: danger: 'input_fh' leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
coreutils-9.7/src/basenc.c:1388:3: warning[-Wanalyzer-malloc-leak]: leak of 'input_fh'
coreutils-9.7/src/basenc.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1371:6: branch_false: ...to here
coreutils-9.7/src/basenc.c:1376:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/basenc.c:1383:18: branch_false: ...to here
coreutils-9.7/src/basenc.c:1383:18: acquire_memory: allocated here
coreutils-9.7/src/basenc.c:1384:10: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1388:3: branch_false: ...to here
coreutils-9.7/src/basenc.c:1388:3: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/basenc.c:1388:3: danger: 'input_fh' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
coreutils-9.7/src/blake2/b2sum.c:88:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/src/blake2/b2sum.c:84:34: acquire_memory: allocated here
coreutils-9.7/src/blake2/b2sum.c:86:5: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.7/src/blake2/b2sum.c:88:3: branch_false: ...to here
coreutils-9.7/src/blake2/b2sum.c:88:3: throw: if 'blake2b_init' throws an exception...
coreutils-9.7/src/blake2/b2sum.c:88:3: danger: 'buffer' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
coreutils-9.7/src/chcon.c:320:13: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(files, bit_flags, 0)'
coreutils-9.7/src/chcon.c:320:13: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/chcon.c:320:13: danger: 'xfts_open(files, bit_flags, 0)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
coreutils-9.7/src/chmod.c:381:13: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(files, bit_flags, 0)'
coreutils-9.7/src/chmod.c:381:13: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/chmod.c:381:13: danger: 'xfts_open(files, bit_flags, 0)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
coreutils-9.7/src/chmod.c:545:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'mode'
coreutils-9.7/src/chmod.c:482:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/src/chmod.c:488:7: branch_true: ...to here
coreutils-9.7/src/chmod.c:542:16: branch_false: following 'false' branch...
coreutils-9.7/src/chmod.c:545:17: branch_false: ...to here
coreutils-9.7/src/chmod.c:545:13: danger: dereference of NULL 'mode + (sizetype)mode_len'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
coreutils-9.7/src/chown-core.c:94:10: warning[-Wanalyzer-malloc-leak]: leak of 'new_usr'
coreutils-9.7/src/chown-core.c:284:1: enter_function: entry to 'change_file_owner'
coreutils-9.7/src/chown-core.c:415:6: branch_false: following 'false' branch (when 'do_chown == 0')...
coreutils-9.7/src/chown-core.c:484:7: branch_false: ...to here
coreutils-9.7/src/chown-core.c:484:6: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:487:11: branch_true: ...to here
coreutils-9.7/src/chown-core.c:487:9: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:491:11: branch_false: ...to here
coreutils-9.7/src/chown-core.c:491:11: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:494:13: branch_true: ...to here
coreutils-9.7/src/chown-core.c:494:13: branch_false: following 'false' branch (when 'ok == 0')...
coreutils-9.7/src/chown-core.c:498:27: branch_false: ...to here
coreutils-9.7/src/chown-core.c:498:27: branch_false: following 'false' branch (when 'file_stats' is NULL)...
coreutils-9.7/src/chown-core.c:502:27: branch_false: ...to here
coreutils-9.7/src/chown-core.c:502:27: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:503:48: branch_false: ...to here
coreutils-9.7/src/chown-core.c:503:48: branch_true: following 'true' branch (when 'uid != 4294967295')...
coreutils-9.7/src/chown-core.c:504:50: branch_true: ...to here
coreutils-9.7/src/chown-core.c:504:50: call_function: calling 'uid_to_str' from 'change_file_owner'
coreutils-9.7/src/chown-core.c:504:50: return_function: returning to 'change_file_owner' from 'uid_to_str'
coreutils-9.7/src/chown-core.c:505:27: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:506:49: branch_false: ...to here
coreutils-9.7/src/chown-core.c:506:49: branch_true: following 'true' branch (when 'gid != 4294967295')...
coreutils-9.7/src/chown-core.c:507:50: branch_true: ...to here
coreutils-9.7/src/chown-core.c:507:50: call_function: calling 'gid_to_str' from 'change_file_owner'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
coreutils-9.7/src/chown-core.c:94:19: warning[-Wanalyzer-malloc-leak]: leak of 'new_usr'
coreutils-9.7/src/chown-core.c:284:1: enter_function: entry to 'change_file_owner'
coreutils-9.7/src/chown-core.c:415:6: branch_false: following 'false' branch (when 'do_chown == 0')...
coreutils-9.7/src/chown-core.c:484:7: branch_false: ...to here
coreutils-9.7/src/chown-core.c:484:6: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:487:11: branch_true: ...to here
coreutils-9.7/src/chown-core.c:487:9: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:491:11: branch_false: ...to here
coreutils-9.7/src/chown-core.c:491:11: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:494:13: branch_true: ...to here
coreutils-9.7/src/chown-core.c:494:13: branch_false: following 'false' branch (when 'ok == 0')...
coreutils-9.7/src/chown-core.c:498:27: branch_false: ...to here
coreutils-9.7/src/chown-core.c:498:27: branch_false: following 'false' branch (when 'file_stats' is NULL)...
coreutils-9.7/src/chown-core.c:502:27: branch_false: ...to here
coreutils-9.7/src/chown-core.c:502:27: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:503:48: branch_false: ...to here
coreutils-9.7/src/chown-core.c:503:48: branch_true: following 'true' branch (when 'uid != 4294967295')...
coreutils-9.7/src/chown-core.c:504:50: branch_true: ...to here
coreutils-9.7/src/chown-core.c:504:50: call_function: calling 'uid_to_str' from 'change_file_owner'
coreutils-9.7/src/chown-core.c:504:50: return_function: returning to 'change_file_owner' from 'uid_to_str'
coreutils-9.7/src/chown-core.c:505:27: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:506:49: branch_false: ...to here
coreutils-9.7/src/chown-core.c:506:49: branch_true: following 'true' branch (when 'gid != 4294967295')...
coreutils-9.7/src/chown-core.c:507:50: branch_true: ...to here
coreutils-9.7/src/chown-core.c:507:50: call_function: calling 'gid_to_str' from 'change_file_owner'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
coreutils-9.7/src/chown-core.c:117:25: warning[-Wanalyzer-malloc-leak]: leak of 'uid_to_name(*file_stats.st_uid)'
coreutils-9.7/src/chown-core.c:284:1: enter_function: entry to 'change_file_owner'
coreutils-9.7/src/chown-core.c:484:6: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:487:11: branch_true: ...to here
coreutils-9.7/src/chown-core.c:491:11: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:494:13: branch_true: ...to here
coreutils-9.7/src/chown-core.c:498:27: branch_true: following 'true' branch (when 'file_stats' is non-NULL)...
coreutils-9.7/src/chown-core.c:499:43: branch_true: ...to here
coreutils-9.7/src/chown-core.c:499:30: call_function: calling 'uid_to_name' from 'change_file_owner'
coreutils-9.7/src/chown-core.c:499:30: return_function: returning to 'change_file_owner' from 'uid_to_name'
coreutils-9.7/src/chown-core.c:501:30: call_function: calling 'gid_to_name' from 'change_file_owner'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
coreutils-9.7/src/chown-core.c:556:13: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(files, stat_flags | bit_flags, 0)'
coreutils-9.7/src/chown-core.c:556:13: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/chown-core.c:556:13: danger: 'xfts_open(files, stat_flags | bit_flags, 0)' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
coreutils-9.7/src/chown.c:307:26: warning[-Wanalyzer-malloc-leak]: leak of 'chopt.user_name'
coreutils-9.7/src/chown.c:285:6: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:294:6: branch_false: ...to here
coreutils-9.7/src/chown.c:294:6: branch_true: following 'true' branch...
coreutils-9.7/src/chown.c:297:11: branch_true: ...to here
coreutils-9.7/src/chown.c:297:10: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:301:11: branch_false: ...to here
coreutils-9.7/src/chown.c:301:10: branch_true: following 'true' branch...
coreutils-9.7/src/chown.c:303:17: branch_true: ...to here
coreutils-9.7/src/chown.c:307:26: throw: if 'gid_to_name' throws an exception...
coreutils-9.7/src/chown.c:307:26: danger: 'chopt.user_name' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
coreutils-9.7/src/chown.c:348:8: warning[-Wanalyzer-malloc-leak]: leak of 'chopt.group_name'
coreutils-9.7/src/chown.c:285:6: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:294:6: branch_false: ...to here
coreutils-9.7/src/chown.c:294:6: branch_true: following 'true' branch...
coreutils-9.7/src/chown.c:297:11: branch_true: ...to here
coreutils-9.7/src/chown.c:297:10: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:301:11: branch_false: ...to here
coreutils-9.7/src/chown.c:348:8: throw: if 'chown_files' throws an exception...
coreutils-9.7/src/chown.c:348:8: danger: 'chopt.group_name' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
coreutils-9.7/src/chown.c:348:8: warning[-Wanalyzer-malloc-leak]: leak of 'chopt.user_name'
coreutils-9.7/src/chown.c:285:6: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:294:6: branch_false: ...to here
coreutils-9.7/src/chown.c:294:6: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:311:22: branch_false: ...to here
coreutils-9.7/src/chown.c:332:10: branch_true: following 'true' branch...
coreutils-9.7/src/chown.c:348:8: throw: if 'chown_files' throws an exception...
coreutils-9.7/src/chown.c:348:8: danger: 'chopt.user_name' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
coreutils-9.7/src/chroot.c:110:11: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:110:11: throw: if 'xstrtoumax' throws an exception...
coreutils-9.7/src/chroot.c:110:11: danger: 'xstrdup(groups)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
coreutils-9.7/src/chroot.c:111:14: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:110:10: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:111:14: branch_true: ...to here
coreutils-9.7/src/chroot.c:110:11: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:115:14: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:118:19: branch_true: ...to here
coreutils-9.7/src/chroot.c:118:19: throw: if 'getgrnam' throws an exception...
coreutils-9.7/src/chroot.c:111:14: danger: 'xstrdup(groups)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
coreutils-9.7/src/chroot.c:127:15: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:127:15: throw: if 'getgrnam' throws an exception...
coreutils-9.7/src/chroot.c:127:15: danger: 'xstrdup(groups)' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
coreutils-9.7/src/chroot.c:129:21: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:128:14: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:129:21: branch_true: ...to here
coreutils-9.7/src/chroot.c:145:10: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:146:16: branch_true: ...to here
coreutils-9.7/src/chroot.c:146:16: throw: if 'xpalloc' throws an exception...
coreutils-9.7/src/chroot.c:129:21: danger: 'xstrdup(groups)' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
coreutils-9.7/src/chroot.c:138:15: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:128:14: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:136:14: branch_false: ...to here
coreutils-9.7/src/chroot.c:136:14: branch_true: following 'true' branch (when 'show_errors != 0')...
coreutils-9.7/src/chroot.c:138:15: branch_true: ...to here
coreutils-9.7/src/chroot.c:138:15: throw: if 'quote' throws an exception...
coreutils-9.7/src/chroot.c:138:15: danger: 'xstrdup(groups)' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
coreutils-9.7/src/chroot.c:147:7: warning[-Wanalyzer-null-dereference]: dereference of NULL 'gids'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:128:14: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:129:21: branch_true: ...to here
coreutils-9.7/src/chroot.c:145:10: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:147:7: branch_false: ...to here
coreutils-9.7/src/chroot.c:147:7: danger: dereference of NULL 'gids + (long unsigned int)n_gids * 4'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
coreutils-9.7/src/chroot.c:150:7: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:219:1: enter_function: entry to 'main'
coreutils-9.7/src/chroot.c:244:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/src/chroot.c:246:7: branch_true: ...to here
coreutils-9.7/src/chroot.c:277:6: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:283:29: branch_false: ...to here
coreutils-9.7/src/chroot.c:286:6: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:293:6: branch_false: ...to here
coreutils-9.7/src/chroot.c:330:6: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:334:6: branch_false: ...to here
coreutils-9.7/src/chroot.c:334:7: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:337:15: branch_false: ...to here
coreutils-9.7/src/chroot.c:337:6: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:340:21: branch_true: ...to here
coreutils-9.7/src/chroot.c:355:6: branch_false: following 'false' branch (when 'userspec' is NULL)...
coreutils-9.7/src/chroot.c:366:7: branch_false: ...to here
coreutils-9.7/src/chroot.c:366:6: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:383:16: branch_false: ...to here
coreutils-9.7/src/chroot.c:385:6: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:387:11: call_function: calling 'parse_additional_groups' from 'main'
Error: COMPILER_WARNING: [#def155]
coreutils-9.7/src/cksum_avx2.c:46:3: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
Error: COMPILER_WARNING: [#def156]
coreutils-9.7/src/cksum_avx2.c:46:26: note[note]: called from here
Error: COMPILER_WARNING: [#def157]
coreutils-9.7/src/cksum_avx2.c:48:24: note[note]: called from here
Error: COMPILER_WARNING: [#def158]
coreutils-9.7/src/cksum_avx2.c:52:22: note[note]: called from here
Error: COMPILER_WARNING: [#def159]
coreutils-9.7/src/cksum_avx2.c:83:18: note[note]: called from here
Error: COMPILER_WARNING: [#def160]
coreutils-9.7/src/cksum_avx2.c:84:18: note[note]: called from here
Error: COMPILER_WARNING: [#def161]
coreutils-9.7/src/cksum_avx2.c:87:21: note[note]: called from here
Error: COMPILER_WARNING: [#def162]
coreutils-9.7/src/cksum_avx2.c:89:18: note[note]: called from here
Error: COMPILER_WARNING: [#def163]
coreutils-9.7/src/cksum_avx2.c:90:19: note[note]: called from here
Error: COMPILER_WARNING: [#def164]
coreutils-9.7/src/cksum_avx2.c:91:19: note[note]: called from here
Error: COMPILER_WARNING: [#def165]
coreutils-9.7/src/cksum_avx2.c:92:19: note[note]: called from here
Error: COMPILER_WARNING: [#def166]
coreutils-9.7/src/cksum_avx2.c:93:19: note[note]: called from here
Error: COMPILER_WARNING: [#def167]
coreutils-9.7/src/cksum_avx2.c:94:19: note[note]: called from here
Error: COMPILER_WARNING: [#def168]
coreutils-9.7/src/cksum_avx2.c:95:19: note[note]: called from here
Error: COMPILER_WARNING: [#def169]
coreutils-9.7/src/cksum_avx2.c:102:23: note[note]: called from here
Error: COMPILER_WARNING: [#def170]
coreutils-9.7/src/cksum_avx2.c:104:22: note[note]: called from here
Error: COMPILER_WARNING: [#def171]
coreutils-9.7/src/cksum_avx2.c:106:23: note[note]: called from here
Error: COMPILER_WARNING: [#def172]
coreutils-9.7/src/cksum_avx2.c:108:23: note[note]: called from here
Error: COMPILER_WARNING: [#def173]
coreutils-9.7/src/cksum_avx2.c:110:23: note[note]: called from here
Error: COMPILER_WARNING: [#def174]
coreutils-9.7/src/cksum_avx2.c:112:23: note[note]: called from here
Error: COMPILER_WARNING: [#def175]
coreutils-9.7/src/cksum_avx2.c:114:23: note[note]: called from here
Error: COMPILER_WARNING: [#def176]
coreutils-9.7/src/cksum_avx2.c:116:23: note[note]: called from here
Error: COMPILER_WARNING: [#def177]
coreutils-9.7/src/cksum_avx2.c:124:22: note[note]: called from here
Error: COMPILER_WARNING: [#def178]
coreutils-9.7/src/cksum_avx2.c:125:23: note[note]: called from here
Error: COMPILER_WARNING: [#def179]
coreutils-9.7/src/cksum_avx2.c:126:23: note[note]: called from here
Error: COMPILER_WARNING: [#def180]
coreutils-9.7/src/cksum_avx2.c:127:22: note[note]: called from here
Error: COMPILER_WARNING: [#def181]
coreutils-9.7/src/cksum_avx2.c:129:23: note[note]: called from here
Error: COMPILER_WARNING: [#def182]
coreutils-9.7/src/cksum_avx2.c:130:23: note[note]: called from here
Error: COMPILER_WARNING: [#def183]
coreutils-9.7/src/cksum_avx2.c:131:23: note[note]: called from here
Error: COMPILER_WARNING: [#def184]
coreutils-9.7/src/cksum_avx2.c:132:23: note[note]: called from here
Error: COMPILER_WARNING: [#def185]
coreutils-9.7/src/cksum_avx2.c:134:23: note[note]: called from here
Error: COMPILER_WARNING: [#def186]
coreutils-9.7/src/cksum_avx2.c:135:23: note[note]: called from here
Error: COMPILER_WARNING: [#def187]
coreutils-9.7/src/cksum_avx2.c:136:23: note[note]: called from here
Error: COMPILER_WARNING: [#def188]
coreutils-9.7/src/cksum_avx2.c:137:23: note[note]: called from here
Error: COMPILER_WARNING: [#def189]
coreutils-9.7/src/cksum_avx2.c:139:23: note[note]: called from here
Error: COMPILER_WARNING: [#def190]
coreutils-9.7/src/cksum_avx2.c:140:23: note[note]: called from here
Error: COMPILER_WARNING: [#def191]
coreutils-9.7/src/cksum_avx2.c:141:23: note[note]: called from here
Error: COMPILER_WARNING: [#def192]
coreutils-9.7/src/cksum_avx2.c:142:23: note[note]: called from here
Error: COMPILER_WARNING: [#def193]
coreutils-9.7/src/cksum_avx2.c:148:18: note[note]: called from here
Error: COMPILER_WARNING: [#def194]
coreutils-9.7/src/cksum_avx2.c:149:11: note[note]: called from here
Error: COMPILER_WARNING: [#def195]
coreutils-9.7/src/cksum_avx2.c:150:19: note[note]: called from here
Error: COMPILER_WARNING: [#def196]
coreutils-9.7/src/cksum_avx2.c:151:11: note[note]: called from here
Error: COMPILER_WARNING: [#def197]
coreutils-9.7/src/cksum_avx2.c:152:19: note[note]: called from here
Error: COMPILER_WARNING: [#def198]
coreutils-9.7/src/cksum_avx2.c:153:11: note[note]: called from here
Error: COMPILER_WARNING: [#def199]
coreutils-9.7/src/cksum_avx2.c:154:19: note[note]: called from here
Error: COMPILER_WARNING: [#def200]
coreutils-9.7/src/cksum_avx2.c:155:11: note[note]: called from here
Error: COMPILER_WARNING: [#def201]
coreutils-9.7/src/cksum_avx2.c:161:18: note[note]: called from here
Error: COMPILER_WARNING: [#def202]
coreutils-9.7/src/cksum_avx2.c:162:18: note[note]: called from here
Error: COMPILER_WARNING: [#def203]
coreutils-9.7/src/cksum_avx2.c:163:21: note[note]: called from here
Error: COMPILER_WARNING: [#def204]
coreutils-9.7/src/cksum_avx2.c:165:18: note[note]: called from here
Error: COMPILER_WARNING: [#def205]
coreutils-9.7/src/cksum_avx2.c:170:23: note[note]: called from here
Error: COMPILER_WARNING: [#def206]
coreutils-9.7/src/cksum_avx2.c:172:22: note[note]: called from here
Error: COMPILER_WARNING: [#def207]
coreutils-9.7/src/cksum_avx2.c:174:27: note[note]: called from here
Error: COMPILER_WARNING: [#def208]
coreutils-9.7/src/cksum_avx2.c:175:27: note[note]: called from here
Error: COMPILER_WARNING: [#def209]
coreutils-9.7/src/cksum_avx2.c:176:22: note[note]: called from here
Error: COMPILER_WARNING: [#def210]
coreutils-9.7/src/cksum_avx2.c:177:22: note[note]: called from here
Error: COMPILER_WARNING: [#def211]
coreutils-9.7/src/cksum_avx2.c:180:18: note[note]: called from here
Error: COMPILER_WARNING: [#def212]
coreutils-9.7/src/cksum_avx2.c:181:11: note[note]: called from here
Error: COMPILER_WARNING: [#def213]
coreutils-9.7/src/cksum_avx512.c:45:3: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
Error: COMPILER_WARNING: [#def214]
coreutils-9.7/src/cksum_avx512.c:45:26: note[note]: called from here
Error: COMPILER_WARNING: [#def215]
coreutils-9.7/src/cksum_avx512.c:49:24: note[note]: called from here
Error: COMPILER_WARNING: [#def216]
coreutils-9.7/src/cksum_avx512.c:55:22: note[note]: called from here
Error: COMPILER_WARNING: [#def217]
coreutils-9.7/src/cksum_avx512.c:90:18: note[note]: called from here
Error: COMPILER_WARNING: [#def218]
coreutils-9.7/src/cksum_avx512.c:91:18: note[note]: called from here
Error: COMPILER_WARNING: [#def219]
coreutils-9.7/src/cksum_avx512.c:94:21: note[note]: called from here
Error: COMPILER_WARNING: [#def220]
coreutils-9.7/src/cksum_avx512.c:97:18: note[note]: called from here
Error: COMPILER_WARNING: [#def221]
coreutils-9.7/src/cksum_avx512.c:98:19: note[note]: called from here
Error: COMPILER_WARNING: [#def222]
coreutils-9.7/src/cksum_avx512.c:99:19: note[note]: called from here
Error: COMPILER_WARNING: [#def223]
coreutils-9.7/src/cksum_avx512.c:100:19: note[note]: called from here
Error: COMPILER_WARNING: [#def224]
coreutils-9.7/src/cksum_avx512.c:101:19: note[note]: called from here
Error: COMPILER_WARNING: [#def225]
coreutils-9.7/src/cksum_avx512.c:102:19: note[note]: called from here
Error: COMPILER_WARNING: [#def226]
coreutils-9.7/src/cksum_avx512.c:103:19: note[note]: called from here
Error: COMPILER_WARNING: [#def227]
coreutils-9.7/src/cksum_avx512.c:110:23: note[note]: called from here
Error: COMPILER_WARNING: [#def228]
coreutils-9.7/src/cksum_avx512.c:112:22: note[note]: called from here
Error: COMPILER_WARNING: [#def229]
coreutils-9.7/src/cksum_avx512.c:114:23: note[note]: called from here
Error: COMPILER_WARNING: [#def230]
coreutils-9.7/src/cksum_avx512.c:116:23: note[note]: called from here
Error: COMPILER_WARNING: [#def231]
coreutils-9.7/src/cksum_avx512.c:118:23: note[note]: called from here
Error: COMPILER_WARNING: [#def232]
coreutils-9.7/src/cksum_avx512.c:120:23: note[note]: called from here
Error: COMPILER_WARNING: [#def233]
coreutils-9.7/src/cksum_avx512.c:122:23: note[note]: called from here
Error: COMPILER_WARNING: [#def234]
coreutils-9.7/src/cksum_avx512.c:124:23: note[note]: called from here
Error: COMPILER_WARNING: [#def235]
coreutils-9.7/src/cksum_avx512.c:132:22: note[note]: called from here
Error: COMPILER_WARNING: [#def236]
coreutils-9.7/src/cksum_avx512.c:133:23: note[note]: called from here
Error: COMPILER_WARNING: [#def237]
coreutils-9.7/src/cksum_avx512.c:134:23: note[note]: called from here
Error: COMPILER_WARNING: [#def238]
coreutils-9.7/src/cksum_avx512.c:135:22: note[note]: called from here
Error: COMPILER_WARNING: [#def239]
coreutils-9.7/src/cksum_avx512.c:137:23: note[note]: called from here
Error: COMPILER_WARNING: [#def240]
coreutils-9.7/src/cksum_avx512.c:138:23: note[note]: called from here
Error: COMPILER_WARNING: [#def241]
coreutils-9.7/src/cksum_avx512.c:139:23: note[note]: called from here
Error: COMPILER_WARNING: [#def242]
coreutils-9.7/src/cksum_avx512.c:140:23: note[note]: called from here
Error: COMPILER_WARNING: [#def243]
coreutils-9.7/src/cksum_avx512.c:142:23: note[note]: called from here
Error: COMPILER_WARNING: [#def244]
coreutils-9.7/src/cksum_avx512.c:143:23: note[note]: called from here
Error: COMPILER_WARNING: [#def245]
coreutils-9.7/src/cksum_avx512.c:144:23: note[note]: called from here
Error: COMPILER_WARNING: [#def246]
coreutils-9.7/src/cksum_avx512.c:145:23: note[note]: called from here
Error: COMPILER_WARNING: [#def247]
coreutils-9.7/src/cksum_avx512.c:147:23: note[note]: called from here
Error: COMPILER_WARNING: [#def248]
coreutils-9.7/src/cksum_avx512.c:148:23: note[note]: called from here
Error: COMPILER_WARNING: [#def249]
coreutils-9.7/src/cksum_avx512.c:149:23: note[note]: called from here
Error: COMPILER_WARNING: [#def250]
coreutils-9.7/src/cksum_avx512.c:150:23: note[note]: called from here
Error: COMPILER_WARNING: [#def251]
coreutils-9.7/src/cksum_avx512.c:156:18: note[note]: called from here
Error: COMPILER_WARNING: [#def252]
coreutils-9.7/src/cksum_avx512.c:157:11: note[note]: called from here
Error: COMPILER_WARNING: [#def253]
coreutils-9.7/src/cksum_avx512.c:158:19: note[note]: called from here
Error: COMPILER_WARNING: [#def254]
coreutils-9.7/src/cksum_avx512.c:159:11: note[note]: called from here
Error: COMPILER_WARNING: [#def255]
coreutils-9.7/src/cksum_avx512.c:160:19: note[note]: called from here
Error: COMPILER_WARNING: [#def256]
coreutils-9.7/src/cksum_avx512.c:161:11: note[note]: called from here
Error: COMPILER_WARNING: [#def257]
coreutils-9.7/src/cksum_avx512.c:162:19: note[note]: called from here
Error: COMPILER_WARNING: [#def258]
coreutils-9.7/src/cksum_avx512.c:163:11: note[note]: called from here
Error: COMPILER_WARNING: [#def259]
coreutils-9.7/src/cksum_avx512.c:169:18: note[note]: called from here
Error: COMPILER_WARNING: [#def260]
coreutils-9.7/src/cksum_avx512.c:170:18: note[note]: called from here
Error: COMPILER_WARNING: [#def261]
coreutils-9.7/src/cksum_avx512.c:171:21: note[note]: called from here
Error: COMPILER_WARNING: [#def262]
coreutils-9.7/src/cksum_avx512.c:174:18: note[note]: called from here
Error: COMPILER_WARNING: [#def263]
coreutils-9.7/src/cksum_avx512.c:179:23: note[note]: called from here
Error: COMPILER_WARNING: [#def264]
coreutils-9.7/src/cksum_avx512.c:181:22: note[note]: called from here
Error: COMPILER_WARNING: [#def265]
coreutils-9.7/src/cksum_avx512.c:183:27: note[note]: called from here
Error: COMPILER_WARNING: [#def266]
coreutils-9.7/src/cksum_avx512.c:184:27: note[note]: called from here
Error: COMPILER_WARNING: [#def267]
coreutils-9.7/src/cksum_avx512.c:185:22: note[note]: called from here
Error: COMPILER_WARNING: [#def268]
coreutils-9.7/src/cksum_avx512.c:186:22: note[note]: called from here
Error: COMPILER_WARNING: [#def269]
coreutils-9.7/src/cksum_avx512.c:189:18: note[note]: called from here
Error: COMPILER_WARNING: [#def270]
coreutils-9.7/src/cksum_avx512.c:190:11: note[note]: called from here
Error: COMPILER_WARNING: [#def271]
coreutils-9.7/src/cksum_pclmul.c:82:18: note[note]: called from here
Error: COMPILER_WARNING: [#def272]
coreutils-9.7/src/cksum_pclmul.c:89:19: note[note]: called from here
Error: COMPILER_WARNING: [#def273]
coreutils-9.7/src/cksum_pclmul.c:91:19: note[note]: called from here
Error: COMPILER_WARNING: [#def274]
coreutils-9.7/src/cksum_pclmul.c:93:19: note[note]: called from here
Error: COMPILER_WARNING: [#def275]
coreutils-9.7/src/cksum_pclmul.c:101:23: note[note]: called from here
Error: COMPILER_WARNING: [#def276]
coreutils-9.7/src/cksum_pclmul.c:102:22: note[note]: called from here
Error: COMPILER_WARNING: [#def277]
coreutils-9.7/src/cksum_pclmul.c:103:23: note[note]: called from here
Error: COMPILER_WARNING: [#def278]
coreutils-9.7/src/cksum_pclmul.c:104:23: note[note]: called from here
Error: COMPILER_WARNING: [#def279]
coreutils-9.7/src/cksum_pclmul.c:105:23: note[note]: called from here
Error: COMPILER_WARNING: [#def280]
coreutils-9.7/src/cksum_pclmul.c:106:23: note[note]: called from here
Error: COMPILER_WARNING: [#def281]
coreutils-9.7/src/cksum_pclmul.c:107:23: note[note]: called from here
Error: COMPILER_WARNING: [#def282]
coreutils-9.7/src/cksum_pclmul.c:108:23: note[note]: called from here
Error: COMPILER_WARNING: [#def283]
coreutils-9.7/src/cksum_pclmul.c:117:23: note[note]: called from here
Error: COMPILER_WARNING: [#def284]
coreutils-9.7/src/cksum_pclmul.c:122:23: note[note]: called from here
Error: COMPILER_WARNING: [#def285]
coreutils-9.7/src/cksum_pclmul.c:127:23: note[note]: called from here
Error: COMPILER_WARNING: [#def286]
coreutils-9.7/src/cksum_pclmul.c:132:23: note[note]: called from here
Error: COMPILER_WARNING: [#def287]
coreutils-9.7/src/cksum_pclmul.c:139:18: note[note]: called from here
Error: COMPILER_WARNING: [#def288]
coreutils-9.7/src/cksum_pclmul.c:141:19: note[note]: called from here
Error: COMPILER_WARNING: [#def289]
coreutils-9.7/src/cksum_pclmul.c:143:19: note[note]: called from here
Error: COMPILER_WARNING: [#def290]
coreutils-9.7/src/cksum_pclmul.c:145:19: note[note]: called from here
Error: COMPILER_WARNING: [#def291]
coreutils-9.7/src/cksum_pclmul.c:153:18: note[note]: called from here
Error: COMPILER_WARNING: [#def292]
coreutils-9.7/src/cksum_pclmul.c:161:23: note[note]: called from here
Error: COMPILER_WARNING: [#def293]
coreutils-9.7/src/cksum_pclmul.c:162:22: note[note]: called from here
Error: COMPILER_WARNING: [#def294]
coreutils-9.7/src/cksum_pclmul.c:164:27: note[note]: called from here
Error: COMPILER_WARNING: [#def295]
coreutils-9.7/src/cksum_pclmul.c:169:18: note[note]: called from here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
coreutils-9.7/src/comm.c:292:7: warning[-Wanalyzer-malloc-leak]: leak of 'streams[i]'
coreutils-9.7/src/comm.c:278:15: branch_true: following 'true' branch (when 'i != 2')...
coreutils-9.7/src/comm.c:278:15: branch_true: ...to here
coreutils-9.7/src/comm.c:280:19: branch_true: following 'true' branch (when 'j != 4')...
coreutils-9.7/src/comm.c:282:11: branch_true: ...to here
coreutils-9.7/src/comm.c:288:20: branch_true: following 'true' branch (when the strings are non-equal)...
coreutils-9.7/src/comm.c:288:55: branch_true: ...to here
coreutils-9.7/src/comm.c:288:55: acquire_memory: allocated here
coreutils-9.7/src/comm.c:289:10: branch_false: following 'false' branch...
coreutils-9.7/src/comm.c:292:7: branch_false: ...to here
coreutils-9.7/src/comm.c:292:7: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/comm.c:292:7: danger: 'streams[i]' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
coreutils-9.7/src/copy.c:854:24: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:854:24: throw: if 'file_name_concat' throws an exception...
coreutils-9.7/src/copy.c:854:24: danger: 'namep' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
coreutils-9.7/src/copy.c:855:24: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(src_name_in, namep, 0)'
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:855:24: throw: if 'file_name_concat' throws an exception...
coreutils-9.7/src/copy.c:855:24: danger: 'file_name_concat(src_name_in, namep, 0)' leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
coreutils-9.7/src/copy.c:855:24: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:855:24: throw: if 'file_name_concat' throws an exception...
coreutils-9.7/src/copy.c:855:24: danger: 'namep' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
coreutils-9.7/src/copy.c:856:32: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(dst_name_in, namep, 0)'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
coreutils-9.7/src/copy.c:856:32: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(src_name_in, namep, 0)'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
coreutils-9.7/src/copy.c:2233:25: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
coreutils-9.7/src/copy.c:2251:11: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
coreutils-9.7/src/copy.c:2259:11: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
coreutils-9.7/src/copy.c:2343:15: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
coreutils-9.7/src/cp-hash.c:121:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/src/cp-hash.c:121:15: throw: if 'xstrdup' throws an exception...
coreutils-9.7/src/cp-hash.c:121:15: danger: 'xmalloc(24)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
coreutils-9.7/src/cp-hash.c:125:20: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
coreutils-9.7/src/cp-hash.c:125:20: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/src/cp-hash.c:125:20: throw: if 'hash_insert' throws an exception...
coreutils-9.7/src/cp-hash.c:125:20: danger: 'xmalloc(24)' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
coreutils-9.7/src/cp.c:483:17: warning[-Wanalyzer-malloc-leak]: leak of 'attr_list'
coreutils-9.7/src/cp.c:614:1: enter_function: entry to 'do_copy'
coreutils-9.7/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:631:3: branch_false: ...to here
coreutils-9.7/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/cp.c:645:11: branch_false: ...to here
coreutils-9.7/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:685:6: branch_false: ...to here
coreutils-9.7/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/cp.c:694:10: branch_true: ...to here
coreutils-9.7/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/cp.c:706:27: branch_true: ...to here
coreutils-9.7/src/cp.c:713:14: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:721:15: branch_true: ...to here
coreutils-9.7/src/cp.c:733:17: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:734:29: branch_true: ...to here
coreutils-9.7/src/cp.c:733:17: call_function: calling 'make_dir_parents_private' from 'do_copy'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
coreutils-9.7/src/cp.c:545:46: warning[-Wanalyzer-malloc-leak]: leak of 'attr_list'
coreutils-9.7/src/cp.c:614:1: enter_function: entry to 'do_copy'
coreutils-9.7/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:631:3: branch_false: ...to here
coreutils-9.7/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/cp.c:645:11: branch_false: ...to here
coreutils-9.7/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:685:6: branch_false: ...to here
coreutils-9.7/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/cp.c:694:10: branch_true: ...to here
coreutils-9.7/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/cp.c:706:27: branch_true: ...to here
coreutils-9.7/src/cp.c:713:14: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:721:15: branch_true: ...to here
coreutils-9.7/src/cp.c:733:17: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:734:29: branch_true: ...to here
coreutils-9.7/src/cp.c:733:17: call_function: calling 'make_dir_parents_private' from 'do_copy'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
coreutils-9.7/src/cp.c:735:20: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(target_directory, __builtin___memcpy_chk(__new, arg, __len, __builtin_object_size(__new, 0)), &arg_in_concat)'
coreutils-9.7/src/cp.c:614:1: enter_function: entry to 'do_copy'
coreutils-9.7/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:631:3: branch_false: ...to here
coreutils-9.7/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/cp.c:645:11: branch_false: ...to here
coreutils-9.7/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:685:6: branch_false: ...to here
coreutils-9.7/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/cp.c:694:10: branch_true: ...to here
coreutils-9.7/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/cp.c:706:27: branch_true: ...to here
coreutils-9.7/src/cp.c:713:14: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:721:15: branch_true: ...to here
coreutils-9.7/src/cp.c:733:17: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:734:29: branch_true: ...to here
coreutils-9.7/src/cp.c:733:17: call_function: calling 'make_dir_parents_private' from 'do_copy'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
coreutils-9.7/src/cp.c:763:21: warning[-Wanalyzer-malloc-leak]: leak of 'dst_name'
coreutils-9.7/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:631:3: branch_false: ...to here
coreutils-9.7/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/cp.c:645:11: branch_false: ...to here
coreutils-9.7/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:685:6: branch_false: ...to here
coreutils-9.7/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/cp.c:694:10: branch_true: ...to here
coreutils-9.7/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/cp.c:706:27: branch_true: ...to here
coreutils-9.7/src/cp.c:713:14: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:742:15: branch_false: ...to here
coreutils-9.7/src/cp.c:763:21: throw: if 'copy' throws an exception...
coreutils-9.7/src/cp.c:763:21: danger: 'dst_name' leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
coreutils-9.7/src/cp.c:822:12: warning[-Wanalyzer-malloc-leak]: leak of 'dest'
coreutils-9.7/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:631:3: branch_false: ...to here
coreutils-9.7/src/cp.c:635:10: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.7/src/cp.c:639:10: branch_false: ...to here
coreutils-9.7/src/cp.c:639:10: branch_false: following 'false' branch (when 'n_files <= 2')...
coreutils-9.7/src/cp.c:685:6: branch_false: ...to here
coreutils-9.7/src/cp.c:685:6: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.7/src/cp.c:786:19: branch_false: ...to here
coreutils-9.7/src/cp.c:790:10: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:803:11: branch_false: ...to here
coreutils-9.7/src/cp.c:803:10: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:804:14: branch_true: ...to here
coreutils-9.7/src/cp.c:803:11: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:805:14: branch_true: ...to here
coreutils-9.7/src/cp.c:803:11: branch_true: following 'true' branch (when the strings are equal)...
coreutils-9.7/src/cp.c:806:14: branch_true: ...to here
coreutils-9.7/src/cp.c:803:11: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:807:15: branch_false: ...to here
coreutils-9.7/src/cp.c:807:14: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:822:12: throw: if 'copy' throws an exception...
coreutils-9.7/src/cp.c:822:12: danger: 'dest' leaks here; was allocated at [(21)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
coreutils-9.7/src/cp.c:825:10: warning[-Wanalyzer-malloc-leak]: leak of 'dest'
coreutils-9.7/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:631:3: branch_false: ...to here
coreutils-9.7/src/cp.c:635:10: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.7/src/cp.c:639:10: branch_false: ...to here
coreutils-9.7/src/cp.c:639:10: branch_false: following 'false' branch (when 'n_files <= 2')...
coreutils-9.7/src/cp.c:685:6: branch_false: ...to here
coreutils-9.7/src/cp.c:685:6: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.7/src/cp.c:786:19: branch_false: ...to here
coreutils-9.7/src/cp.c:790:10: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:803:11: branch_false: ...to here
coreutils-9.7/src/cp.c:803:10: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:804:14: branch_true: ...to here
coreutils-9.7/src/cp.c:803:11: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:805:14: branch_true: ...to here
coreutils-9.7/src/cp.c:803:11: branch_true: following 'true' branch (when the strings are equal)...
coreutils-9.7/src/cp.c:806:14: branch_true: ...to here
coreutils-9.7/src/cp.c:803:11: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:807:15: branch_false: ...to here
coreutils-9.7/src/cp.c:807:14: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:825:10: danger: 'dest' leaks here; was allocated at [(21)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
coreutils-9.7/src/cp.c:922:13: warning[-Wanalyzer-malloc-leak]: leak of 's'
coreutils-9.7/src/cp.c:918:10: branch_false: following 'false' branch (when 'comma' is NULL)...
coreutils-9.7/src/cp.c:922:13: branch_false: ...to here
coreutils-9.7/src/cp.c:922:13: branch_true: following 'true' branch (when 'on_off != 0')...
coreutils-9.7/src/cp.c:922:13: branch_true: ...to here
coreutils-9.7/src/cp.c:922:13: throw: if '__xargmatch_internal' throws an exception...
coreutils-9.7/src/cp.c:922:13: danger: 's' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
coreutils-9.7/src/cp.c:922:13: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/cp.c:918:10: branch_true: following 'true' branch (when 'comma' is non-NULL)...
coreutils-9.7/src/cp.c:919:10: branch_true: ...to here
coreutils-9.7/src/cp.c:922:13: branch_true: following 'true' branch (when 'on_off != 0')...
coreutils-9.7/src/cp.c:922:13: branch_true: ...to here
coreutils-9.7/src/cp.c:959:14: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:960:13: branch_true: ...to here
coreutils-9.7/src/cp.c:969:10: branch_true: following 'true' branch (when 'comma' is non-NULL)...
coreutils-9.7/src/cp.c:969:10: branch_true: ...to here
coreutils-9.7/src/cp.c:918:10: branch_true: following 'true' branch (when 'comma' is non-NULL)...
coreutils-9.7/src/cp.c:919:10: branch_true: ...to here
coreutils-9.7/src/cp.c:922:13: branch_true: following 'true' branch (when 'on_off != 0')...
coreutils-9.7/src/cp.c:922:13: branch_true: ...to here
coreutils-9.7/src/cp.c:922:13: throw: if '__xargmatch_internal' throws an exception...
coreutils-9.7/src/cp.c:922:13: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
coreutils-9.7/src/csplit.c:312:7: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(1312)'
coreutils-9.7/src/csplit.c:455:1: enter_function: entry to 'load_buffer'
coreutils-9.7/src/csplit.c:473:10: branch_true: following 'true' branch...
coreutils-9.7/src/csplit.c:475:15: branch_true: ...to here
coreutils-9.7/src/csplit.c:481:24: call_function: calling 'read_input' from 'load_buffer'
coreutils-9.7/src/csplit.c:481:24: return_function: returning to 'load_buffer' from 'read_input'
coreutils-9.7/src/csplit.c:483:11: call_function: calling 'record_line_starts' from 'load_buffer'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
coreutils-9.7/src/csplit.c:409:24: warning[-Wanalyzer-malloc-leak]: leak of 'get_new_buffer(bytes_wanted)'
coreutils-9.7/src/csplit.c:455:1: enter_function: entry to 'load_buffer'
coreutils-9.7/src/csplit.c:467:33: call_function: calling 'get_new_buffer' from 'load_buffer'
coreutils-9.7/src/csplit.c:467:33: return_function: returning to 'load_buffer' from 'get_new_buffer'
coreutils-9.7/src/csplit.c:473:10: branch_true: following 'true' branch...
coreutils-9.7/src/csplit.c:475:15: branch_true: ...to here
coreutils-9.7/src/csplit.c:481:24: call_function: calling 'read_input' from 'load_buffer'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
coreutils-9.7/src/csplit.c:409:24: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(72)'
coreutils-9.7/src/csplit.c:455:1: enter_function: entry to 'load_buffer'
coreutils-9.7/src/csplit.c:467:33: call_function: calling 'get_new_buffer' from 'load_buffer'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
coreutils-9.7/src/csplit.c:1367:3: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(__real__ <unknown>)'
coreutils-9.7/src/csplit.c:1350:6: branch_false: following 'false' branch...
coreutils-9.7/src/csplit.c:1359:22: branch_false: ...to here
coreutils-9.7/src/csplit.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/csplit.c:1367:20: branch_false: ...to here
coreutils-9.7/src/csplit.c:1367:3: danger: 'ximalloc(__real__ <unknown>)' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def321]
coreutils-9.7/src/cut.c:835:3: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/cut.c:855:1: enter_function: entry to 'single_binary_main_cut'
coreutils-9.7/src/cut.c:977:6: branch_false: following 'false' branch...
coreutils-9.7/src/cut.c:980:6: branch_false: ...to here
coreutils-9.7/src/cut.c:980:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.7/src/cut.c:984:7: branch_false: ...to here
coreutils-9.7/src/cut.c:992:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.7/src/cut.c:994:7: branch_false: ...to here
coreutils-9.7/src/cut.c:1003:6: branch_false: following 'false' branch...
coreutils-9.7/src/cut.c:1023:7: branch_false: ...to here
coreutils-9.7/src/cut.c:1023:6: branch_true: following 'true' branch...
coreutils-9.7/src/cut.c:1024:10: branch_true: ...to here
coreutils-9.7/src/cut.c:1024:10: call_function: calling 'cut_file' from 'single_binary_main_cut'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
coreutils-9.7/src/cut.c:835:3: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.7/src/cut.c:855:1: enter_function: entry to 'single_binary_main_cut'
coreutils-9.7/src/cut.c:977:6: branch_false: following 'false' branch...
coreutils-9.7/src/cut.c:980:6: branch_false: ...to here
coreutils-9.7/src/cut.c:980:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.7/src/cut.c:984:7: branch_false: ...to here
coreutils-9.7/src/cut.c:992:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.7/src/cut.c:994:7: branch_false: ...to here
coreutils-9.7/src/cut.c:1003:6: branch_false: following 'false' branch...
coreutils-9.7/src/cut.c:1023:7: branch_false: ...to here
coreutils-9.7/src/cut.c:1023:6: branch_true: following 'true' branch...
coreutils-9.7/src/cut.c:1024:10: branch_true: ...to here
coreutils-9.7/src/cut.c:1024:10: call_function: calling 'cut_file' from 'single_binary_main_cut'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
coreutils-9.7/src/date.c:316:32: warning[-Wanalyzer-malloc-leak]: leak of 'adjust_resolution(format)'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:316:32: danger: 'adjust_resolution(format)' leaks here; was allocated at [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
coreutils-9.7/src/date.c:323:42: warning[-Wanalyzer-malloc-leak]: leak of 'copy'
coreutils-9.7/src/date.c:316:32: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:317:8: branch_true: ...to here
coreutils-9.7/src/date.c:317:8: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:319:13: branch_true: ...to here
coreutils-9.7/src/date.c:319:12: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:321:16: branch_true: following 'true' branch (when 'copy' is NULL)...
coreutils-9.7/src/date.c:322:22: branch_true: ...to here
coreutils-9.7/src/date.c:323:42: throw: if 'gettime_res' throws an exception...
coreutils-9.7/src/date.c:323:42: danger: 'copy' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
coreutils-9.7/src/date.c:578:19: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:578:19: throw: if 'tzalloc' throws an exception...
coreutils-9.7/src/date.c:578:19: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
coreutils-9.7/src/date.c:595:28: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:587:10: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:589:15: branch_true: ...to here
coreutils-9.7/src/date.c:589:14: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:594:29: branch_true: ...to here
coreutils-9.7/src/date.c:595:28: throw: if 'posixtime' throws an exception...
coreutils-9.7/src/date.c:595:28: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
coreutils-9.7/src/date.c:604:15: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:587:10: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:589:15: branch_true: ...to here
coreutils-9.7/src/date.c:589:14: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:604:15: branch_false: ...to here
coreutils-9.7/src/date.c:604:15: throw: if 'gettime' throws an exception...
coreutils-9.7/src/date.c:604:15: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
coreutils-9.7/src/date.c:633:9: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:587:10: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:589:15: branch_true: ...to here
coreutils-9.7/src/date.c:589:14: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:594:29: branch_true: ...to here
coreutils-9.7/src/date.c:632:10: branch_false: following 'false' branch (when 'valid_date == 0')...
coreutils-9.7/src/date.c:633:9: branch_false: ...to here
coreutils-9.7/src/date.c:633:9: throw: if 'quote' throws an exception...
coreutils-9.7/src/date.c:633:9: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
coreutils-9.7/src/date.c:639:15: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:587:10: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:589:15: branch_true: ...to here
coreutils-9.7/src/date.c:589:14: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:594:29: branch_true: ...to here
coreutils-9.7/src/date.c:632:10: branch_true: following 'true' branch (when 'valid_date != 0')...
coreutils-9.7/src/date.c:635:10: branch_true: ...to here
coreutils-9.7/src/date.c:635:10: branch_true: following 'true' branch (when 'set_date != 0')...
coreutils-9.7/src/date.c:639:15: branch_true: ...to here
coreutils-9.7/src/date.c:639:15: throw: if 'settime' throws an exception...
coreutils-9.7/src/date.c:639:15: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
coreutils-9.7/src/date.c:656:5: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'single_binary_main_date'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'single_binary_main_date'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'single_binary_main_date' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:635:10: branch_false: following 'false' branch (when 'set_date == 0')...
coreutils-9.7/src/date.c:646:13: branch_false: ...to here
coreutils-9.7/src/date.c:646:13: call_function: calling 'show_date_helper' from 'single_binary_main_date'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
coreutils-9.7/src/date.c:661:13: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:635:10: branch_false: following 'false' branch (when 'set_date == 0')...
coreutils-9.7/src/date.c:646:13: branch_false: ...to here
coreutils-9.7/src/date.c:646:13: call_function: calling 'show_date_helper' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def332]
coreutils-9.7/src/dd.c:526:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/src/dd.c:2413:1: enter_function: entry to 'main'
coreutils-9.7/src/dd.c:2438:15: branch_true: following 'true' branch (when 'i != 256')...
coreutils-9.7/src/dd.c:2439:5: branch_true: ...to here
coreutils-9.7/src/dd.c:2442:3: call_function: calling 'scanargs' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def333]
coreutils-9.7/src/dd.c:922:12: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
coreutils-9.7/src/dd.c:920:10: branch_false: following 'false' branch...
coreutils-9.7/src/dd.c:922:12: branch_false: ...to here
coreutils-9.7/src/dd.c:922:12: release_resource: first 'close' here
coreutils-9.7/src/dd.c:922:12: branch_true: following 'true' branch...
coreutils-9.7/src/dd.c:920:10: branch_false: following 'false' branch...
coreutils-9.7/src/dd.c:922:12: branch_false: ...to here
coreutils-9.7/src/dd.c:922:12: danger: second 'close' here; first 'close' was at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
coreutils-9.7/src/df.c:362:7: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(dev_name)'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
coreutils-9.7/src/df.c:376:13: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1467:24: acquire_memory: allocated here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
coreutils-9.7/src/df.c:377:20: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1467:24: acquire_memory: allocated here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
coreutils-9.7/src/df.c:420:15: warning[-Wanalyzer-malloc-leak]: leak of 's'
coreutils-9.7/src/df.c:1592:1: enter_function: entry to 'main'
coreutils-9.7/src/df.c:1625:10: branch_false: following 'false' branch (when 'c != -1')...
coreutils-9.7/src/df.c:1628:7: branch_false: ...to here
coreutils-9.7/src/df.c:1708:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1713:14: branch_false: ...to here
coreutils-9.7/src/df.c:1713:14: branch_false: following 'false' branch (when 'posix_format == 0')...
coreutils-9.7/src/df.c:1718:15: branch_false: ...to here
coreutils-9.7/src/df.c:1718:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1723:11: branch_false: ...to here
coreutils-9.7/src/df.c:1724:14: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1725:13: branch_true: ...to here
coreutils-9.7/src/df.c:1725:13: call_function: calling 'decode_output_arg' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
coreutils-9.7/src/df.c:452:15: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/df.c:1592:1: enter_function: entry to 'main'
coreutils-9.7/src/df.c:1625:10: branch_false: following 'false' branch (when 'c != -1')...
coreutils-9.7/src/df.c:1628:7: branch_false: ...to here
coreutils-9.7/src/df.c:1708:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1713:14: branch_false: ...to here
coreutils-9.7/src/df.c:1713:14: branch_false: following 'false' branch (when 'posix_format == 0')...
coreutils-9.7/src/df.c:1718:15: branch_false: ...to here
coreutils-9.7/src/df.c:1718:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1723:11: branch_false: ...to here
coreutils-9.7/src/df.c:1724:14: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1725:13: branch_true: ...to here
coreutils-9.7/src/df.c:1725:13: call_function: calling 'decode_output_arg' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
coreutils-9.7/src/df.c:467:11: warning[-Wanalyzer-malloc-leak]: leak of 's'
coreutils-9.7/src/df.c:1592:1: enter_function: entry to 'single_binary_main_df'
coreutils-9.7/src/df.c:1625:10: branch_false: following 'false' branch (when 'c != -1')...
coreutils-9.7/src/df.c:1628:7: branch_false: ...to here
coreutils-9.7/src/df.c:1708:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1713:14: branch_false: ...to here
coreutils-9.7/src/df.c:1713:14: branch_false: following 'false' branch (when 'posix_format == 0')...
coreutils-9.7/src/df.c:1718:15: branch_false: ...to here
coreutils-9.7/src/df.c:1718:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1723:11: branch_false: ...to here
coreutils-9.7/src/df.c:1724:14: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1725:13: branch_true: ...to here
coreutils-9.7/src/df.c:1725:13: call_function: calling 'decode_output_arg' from 'single_binary_main_df'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
coreutils-9.7/src/df.c:655:7: warning[-Wanalyzer-malloc-leak]: leak of 'find_mount_point(point, statp)'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1476:6: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1480:3: branch_false: ...to here
coreutils-9.7/src/df.c:1480:3: call_function: calling 'get_point' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
coreutils-9.7/src/df.c:814:30: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(32)'
coreutils-9.7/src/df.c:1487:1: enter_function: entry to 'get_all_entries'
coreutils-9.7/src/df.c:1491:3: call_function: calling 'filter_mount_list' from 'get_all_entries'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
coreutils-9.7/src/df.c:887:17: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
coreutils-9.7/src/df.c:1044:12: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1467:24: acquire_memory: allocated here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
coreutils-9.7/src/df.c:1061:11: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1467:24: acquire_memory: allocated here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
coreutils-9.7/src/df.c:1101:20: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1467:24: acquire_memory: allocated here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
coreutils-9.7/src/df.c:1153:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
coreutils-9.7/src/df.c:1153:18: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1467:24: acquire_memory: allocated here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
coreutils-9.7/src/df.c:1157:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
coreutils-9.7/src/df.c:1162:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def350]
coreutils-9.7/src/df.c:1162:18: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
coreutils-9.7/src/df.c:1168:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def352]
coreutils-9.7/src/df.c:1168:18: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
coreutils-9.7/src/df.c:1174:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def354]
coreutils-9.7/src/df.c:1174:18: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def355]
coreutils-9.7/src/df.c:1182:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
coreutils-9.7/src/df.c:1217:30: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
coreutils-9.7/src/df.c:1217:46: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
coreutils-9.7/src/df.c:1222:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
coreutils-9.7/src/df.c:1235:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
coreutils-9.7/src/df.c:1246:24: warning[-Wanalyzer-malloc-leak]: leak of 'cell'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
coreutils-9.7/src/df.c:1246:24: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
coreutils-9.7/src/df.c:1274:14: warning[-Wanalyzer-malloc-leak]: leak of 'devname'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1476:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1477:10: branch_true: ...to here
coreutils-9.7/src/df.c:1477:10: call_function: calling 'get_device' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
coreutils-9.7/src/df.c:1274:14: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1476:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1477:10: branch_true: ...to here
coreutils-9.7/src/df.c:1477:10: call_function: calling 'get_device' from 'get_entry'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
coreutils-9.7/src/df.c:1797:57: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(argc - optind), 144)'
coreutils-9.7/src/df.c:1592:1: enter_function: entry to 'main'
coreutils-9.7/src/df.c:1785:8: branch_false: following 'false' branch (when 'match == 0')...
coreutils-9.7/src/df.c:1789:7: branch_false: ...to here
coreutils-9.7/src/df.c:1789:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1794:25: branch_true: ...to here
coreutils-9.7/src/df.c:1795:28: branch_true: following 'true' branch (when 'i < argc')...
coreutils-9.7/src/df.c:1797:57: branch_true: ...to here
coreutils-9.7/src/df.c:1797:21: call_function: calling 'automount_stat_err' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
coreutils-9.7/src/df.c:1808:5: warning[-Wanalyzer-malloc-leak]: leak of 'stats'
coreutils-9.7/src/df.c:1785:8: branch_false: following 'false' branch (when 'match == 0')...
coreutils-9.7/src/df.c:1789:7: branch_false: ...to here
coreutils-9.7/src/df.c:1789:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1794:25: branch_true: ...to here
coreutils-9.7/src/df.c:1808:5: throw: if 'read_file_system_list' throws an exception...
coreutils-9.7/src/df.c:1808:5: danger: 'stats' leaks here; was allocated at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
coreutils-9.7/src/digest.c:1009:3: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
coreutils-9.7/src/digest.c:982:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/digest.c:996:12: branch_false: ...to here
coreutils-9.7/src/digest.c:996:12: acquire_memory: allocated here
coreutils-9.7/src/digest.c:997:10: branch_false: following 'false' branch...
coreutils-9.7/src/digest.c:1009:3: branch_false: ...to here
coreutils-9.7/src/digest.c:1009:3: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/digest.c:1009:3: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def367]
coreutils-9.7/src/digest.c:1152: error[uninitvar]: Uninitialized variable: bin_buffer_unaligned
Error: CPPCHECK_WARNING (CWE-457): [#def368]
coreutils-9.7/src/digest.c:1352: error[uninitvar]: Uninitialized variable: bin_buffer_unaligned
Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
coreutils-9.7/src/du.c:669:17: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(files, bit_flags, 0)'
coreutils-9.7/src/du.c:661:6: branch_true: following 'true' branch...
coreutils-9.7/src/du.c:663:18: branch_true: ...to here
coreutils-9.7/src/du.c:669:17: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/du.c:669:17: danger: 'xfts_open(files, bit_flags, 0)' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-704): [#def370]
coreutils-9.7/src/du.c: scope_hint: In function 'main'
coreutils-9.7/src/du.c:959:25: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def371]
coreutils-9.7/src/du.c:959:25: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
coreutils-9.7/src/du.c:1033:14: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.7/src/du.c:910:6: branch_true: following 'true' branch (when 'ok != 0')...
coreutils-9.7/src/du.c:913:7: branch_true: ...to here
coreutils-9.7/src/du.c:996:6: branch_false: following 'false' branch (when 'files_from' is NULL)...
coreutils-9.7/src/du.c:1020:23: branch_false: ...to here
coreutils-9.7/src/du.c:1021:12: acquire_memory: allocated here
coreutils-9.7/src/du.c:1029:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.7/src/du.c:1033:14: branch_false: ...to here
coreutils-9.7/src/du.c:1033:14: throw: if 'di_set_alloc' throws an exception...
coreutils-9.7/src/du.c:1033:14: danger: 'ai' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
coreutils-9.7/src/du.c:1035:5: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.7/src/du.c:910:6: branch_true: following 'true' branch (when 'ok != 0')...
coreutils-9.7/src/du.c:913:7: branch_true: ...to here
coreutils-9.7/src/du.c:996:6: branch_false: following 'false' branch (when 'files_from' is NULL)...
coreutils-9.7/src/du.c:1020:23: branch_false: ...to here
coreutils-9.7/src/du.c:1021:12: acquire_memory: allocated here
coreutils-9.7/src/du.c:1029:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.7/src/du.c:1033:14: branch_false: ...to here
coreutils-9.7/src/du.c:1034:6: branch_true: following 'true' branch...
coreutils-9.7/src/du.c:1035:5: branch_true: ...to here
coreutils-9.7/src/du.c:1035:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.7/src/du.c:1035:5: danger: 'ai' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
coreutils-9.7/src/du.c:1049:25: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.7/src/du.c:910:6: branch_true: following 'true' branch (when 'ok != 0')...
coreutils-9.7/src/du.c:913:7: branch_true: ...to here
coreutils-9.7/src/du.c:996:6: branch_false: following 'false' branch (when 'files_from' is NULL)...
coreutils-9.7/src/du.c:1020:23: branch_false: ...to here
coreutils-9.7/src/du.c:1021:12: acquire_memory: allocated here
coreutils-9.7/src/du.c:1029:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.7/src/du.c:1033:14: branch_false: ...to here
coreutils-9.7/src/du.c:1034:6: branch_false: following 'false' branch...
coreutils-9.7/src/du.c:1039:7: branch_false: ...to here
coreutils-9.7/src/du.c:1049:25: throw: if 'argv_iter' throws an exception...
coreutils-9.7/src/du.c:1049:25: danger: 'ai' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
coreutils-9.7/src/env.c:563:20: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/env.c:561:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.7/src/env.c:563:20: branch_true: ...to here
coreutils-9.7/src/env.c:563:20: throw: if 'operand2sig' throws an exception...
coreutils-9.7/src/env.c:563:20: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
coreutils-9.7/src/env.c:566:9: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/env.c:561:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.7/src/env.c:563:20: branch_true: ...to here
coreutils-9.7/src/env.c:565:10: branch_true: following 'true' branch...
coreutils-9.7/src/env.c:566:9: branch_true: ...to here
coreutils-9.7/src/env.c:566:9: throw: if 'quote' throws an exception...
coreutils-9.7/src/env.c:566:9: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
coreutils-9.7/src/env.c:567:10: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/env.c:561:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.7/src/env.c:563:20: branch_true: ...to here
coreutils-9.7/src/env.c:567:10: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
coreutils-9.7/src/env.c:570:14: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/env.c:561:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.7/src/env.c:563:20: branch_true: ...to here
coreutils-9.7/src/env.c:567:10: branch_false: following 'false' branch...
coreutils-9.7/src/env.c:570:25: branch_false: ...to here
coreutils-9.7/src/env.c:570:25: branch_true: following 'true' branch (when 'set_default != 0')...
coreutils-9.7/src/env.c:570:14: branch_true: ...to here
coreutils-9.7/src/env.c:561:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.7/src/env.c:563:20: branch_true: ...to here
coreutils-9.7/src/env.c:563:20: throw: if 'operand2sig' throws an exception...
coreutils-9.7/src/env.c:570:14: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
coreutils-9.7/src/env.c:652:20: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/env.c:650:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.7/src/env.c:652:20: branch_true: ...to here
coreutils-9.7/src/env.c:652:20: throw: if 'operand2sig' throws an exception...
coreutils-9.7/src/env.c:652:20: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
coreutils-9.7/src/env.c:655:9: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/env.c:650:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.7/src/env.c:652:20: branch_true: ...to here
coreutils-9.7/src/env.c:654:10: branch_true: following 'true' branch...
coreutils-9.7/src/env.c:655:9: branch_true: ...to here
coreutils-9.7/src/env.c:655:9: throw: if 'quote' throws an exception...
coreutils-9.7/src/env.c:655:9: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
coreutils-9.7/src/env.c:656:10: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/env.c:650:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.7/src/env.c:652:20: branch_true: ...to here
coreutils-9.7/src/env.c:656:10: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
coreutils-9.7/src/env.c:661:14: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/env.c:650:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.7/src/env.c:652:20: branch_true: ...to here
coreutils-9.7/src/env.c:656:10: branch_false: following 'false' branch...
coreutils-9.7/src/env.c:659:11: branch_false: ...to here
coreutils-9.7/src/env.c:659:11: branch_true: following 'true' branch...
coreutils-9.7/src/env.c:661:14: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
coreutils-9.7/src/expand-common.c:315:15: warning[-Wanalyzer-malloc-leak]: leak of 'ximemdup0(num_start, len)'
coreutils-9.7/src/expand-common.c:243:1: enter_function: entry to 'parse_tab_stops'
coreutils-9.7/src/expand-common.c:252:10: branch_true: following 'true' branch...
coreutils-9.7/src/expand-common.c:254:10: branch_true: ...to here
coreutils-9.7/src/expand-common.c:254:10: branch_false: following 'false' branch...
coreutils-9.7/src/expand-common.c:279:15: branch_false: following 'false' branch...
coreutils-9.7/src/expand-common.c:290:15: branch_false: ...to here
coreutils-9.7/src/expand-common.c:290:15: branch_false: following 'false' branch...
coreutils-9.7/src/expand-common.c:290:15: branch_false: ...to here
coreutils-9.7/src/expand-common.c:301:16: call_function: inlined call to 'c_isdigit' from 'parse_tab_stops'
coreutils-9.7/src/expand-common.c:303:14: branch_true: ...to here
coreutils-9.7/src/expand-common.c:303:14: branch_false: following 'false' branch (when 'have_tabval == 0')...
coreutils-9.7/src/expand-common.c:303:14: branch_false: ...to here
coreutils-9.7/src/expand-common.c:315:15: throw: if 'quote' throws an exception...
coreutils-9.7/src/expand-common.c:315:15: danger: 'ximemdup0(num_start, len)' leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def384]
coreutils-9.7/src/expand-common.c:488:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fp'
coreutils-9.7/src/expand-common.c:476:10: branch_true: following 'true' branch (when 'file' is non-NULL)...
coreutils-9.7/src/expand-common.c:478:11: branch_true: ...to here
coreutils-9.7/src/expand-common.c:484:14: acquire_resource: opened here
coreutils-9.7/src/expand-common.c:488:11: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/expand-common.c:488:11: danger: 'fp' leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
coreutils-9.7/src/expand-common.c:488:11: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
coreutils-9.7/src/expand-common.c:476:10: branch_true: following 'true' branch (when 'file' is non-NULL)...
coreutils-9.7/src/expand-common.c:478:11: branch_true: ...to here
coreutils-9.7/src/expand-common.c:484:14: acquire_memory: allocated here
coreutils-9.7/src/expand-common.c:488:11: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/expand-common.c:488:11: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
coreutils-9.7/src/expr.c:367:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/src/expr.c:679:1: enter_function: entry to 'eval6'
coreutils-9.7/src/expr.c:695:11: branch_true: following 'true' branch...
coreutils-9.7/src/expr.c:697:11: branch_true: ...to here
coreutils-9.7/src/expr.c:697:11: call_function: calling 'eval6' from 'eval6'
Error: GCC_ANALYZER_WARNING (CWE-686): [#def387]
coreutils-9.7/src/factor.c:571:10: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected '__mpz_struct (*)[1]' but received 'typeof (nullptr)' for variadic argument 5 of 'ap'
coreutils-9.7/src/factor.c:1359:1: enter_function: entry to 'mp_prime_p'
coreutils-9.7/src/factor.c:1372:3: call_function: calling 'mpz_va_init' from 'mp_prime_p' with 5 variadic arguments
Error: GCC_ANALYZER_WARNING (CWE-404): [#def388]
coreutils-9.7/src/factor.c:572:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/src/factor.c:1359:1: enter_function: entry to 'mp_prime_p'
coreutils-9.7/src/factor.c:1372:3: call_function: calling 'mpz_va_init' from 'mp_prime_p'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
coreutils-9.7/src/find-mount-point.c:103:9: warning[-Wanalyzer-malloc-leak]: leak of 'mp'
coreutils-9.7/src/find-mount-point.c:36:6: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:42:7: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:46:10: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:46:10: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:80:10: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:85:11: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:97:8: acquire_memory: allocated here
coreutils-9.7/src/find-mount-point.c:103:9: throw: if 'restore_cwd' throws an exception...
coreutils-9.7/src/find-mount-point.c:103:9: danger: 'mp' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
coreutils-9.7/src/find-mount-point.c:106:5: warning[-Wanalyzer-malloc-leak]: leak of 'mp'
coreutils-9.7/src/find-mount-point.c:36:6: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:42:7: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:46:10: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:46:10: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:80:10: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:85:11: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:97:8: acquire_memory: allocated here
coreutils-9.7/src/find-mount-point.c:103:8: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:106:5: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:106:5: throw: if 'free_cwd' throws an exception...
coreutils-9.7/src/find-mount-point.c:106:5: danger: 'mp' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def391]
coreutils-9.7/src/head.c:368: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def392]
coreutils-9.7/src/head.c:371: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
coreutils-9.7/src/hostname.c:108:7: warning[-Wanalyzer-malloc-leak]: leak of 'xgethostname()'
coreutils-9.7/src/hostname.c:89:6: branch_false: following 'false' branch...
coreutils-9.7/src/hostname.c:95:6: branch_false: ...to here
coreutils-9.7/src/hostname.c:95:6: branch_false: following 'false' branch...
coreutils-9.7/src/hostname.c:105:18: branch_false: ...to here
coreutils-9.7/src/hostname.c:105:18: acquire_memory: allocated here
coreutils-9.7/src/hostname.c:106:10: branch_false: following 'false' branch...
coreutils-9.7/src/hostname.c:108:7: branch_false: ...to here
coreutils-9.7/src/hostname.c:108:7: danger: 'xgethostname()' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
coreutils-9.7/src/install.c:745:8: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(to_dir, last_component(from), &to_relname)'
coreutils-9.7/src/install.c:736:1: enter_function: entry to 'install_file_in_dir'
coreutils-9.7/src/install.c:745:6: branch_true: following 'true' branch...
coreutils-9.7/src/install.c:745:7: branch_true: ...to here
coreutils-9.7/src/install.c:745:7: branch_true: following 'true' branch (when 'mkdir_and_install != 0')...
coreutils-9.7/src/install.c:747:17: branch_true: ...to here
coreutils-9.7/src/install.c:747:17: call_function: calling 'mkancesdirs_safe_wd' from 'install_file_in_dir'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def395]
coreutils-9.7/src/join.c:990:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'operand_status[1]'
coreutils-9.7/src/join.c:1004:1: enter_function: entry to 'main'
coreutils-9.7/src/join.c:1030:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/join.c:1034:7: branch_true: ...to here
coreutils-9.7/src/join.c:1104:16: branch_false: following 'false' branch...
coreutils-9.7/src/join.c:1110:22: branch_false: ...to here
coreutils-9.7/src/join.c:1110:21: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/join.c:1117:26: call_function: inlined call to 'mcel_scanz' from 'main'
coreutils-9.7/src/join.c:1117:26: call_function: inlined call to 'mcel_scanz' from 'main'
coreutils-9.7/src/join.c:1118:20: branch_false: following 'false' branch...
coreutils-9.7/src/join.c:1121:17: branch_false: ...to here
coreutils-9.7/src/join.c:1123:16: branch_false: following 'false' branch...
coreutils-9.7/src/join.c:1125:13: branch_false: ...to here
coreutils-9.7/src/join.c:1030:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/join.c:1034:7: branch_true: ...to here
coreutils-9.7/src/join.c:1143:11: call_function: calling 'add_file_name' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
coreutils-9.7/src/libstdbuf.c:134:1: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
coreutils-9.7/src/libstdbuf.c:98:6: branch_false: following 'false' branch...
coreutils-9.7/src/libstdbuf.c:100:11: branch_false: ...to here
coreutils-9.7/src/libstdbuf.c:100:11: branch_false: following 'false' branch...
coreutils-9.7/src/libstdbuf.c:106:14: branch_false: ...to here
coreutils-9.7/src/libstdbuf.c:107:10: branch_false: following 'false' branch...
coreutils-9.7/src/libstdbuf.c:114:13: acquire_memory: allocated here
coreutils-9.7/src/libstdbuf.c:115:10: branch_false: following 'false' branch (when 'buf' is non-NULL)...
coreutils-9.7/src/libstdbuf.c:134:1: branch_false: ...to here
coreutils-9.7/src/libstdbuf.c:128:6: branch_false: following 'false' branch...
coreutils-9.7/src/libstdbuf.c:128:6: branch_false: ...to here
coreutils-9.7/src/libstdbuf.c:134:1: danger: 'buf' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
coreutils-9.7/src/ln.c:672:11: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(target_directory, last_component(*<unknown>), &dest_base)'
coreutils-9.7/src/ln.c:565:6: branch_false: following 'false' branch (when 'n_files > 0')...
coreutils-9.7/src/ln.c:571:7: branch_false: ...to here
coreutils-9.7/src/ln.c:580:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/ln.c:597:12: branch_false: ...to here
coreutils-9.7/src/ln.c:636:17: branch_false: following 'false' branch (when 'make_backups == 0')...
coreutils-9.7/src/ln.c:636:3: branch_false: ...to here
coreutils-9.7/src/ln.c:642:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/ln.c:647:10: branch_true: ...to here
coreutils-9.7/src/ln.c:666:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/ln.c:670:62: branch_true: ...to here
coreutils-9.7/src/ln.c:672:11: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.7/src/ln.c:672:11: danger: 'file_name_concat(target_directory, last_component(*<unknown>), &dest_base)' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING (CWE-704): [#def398]
coreutils-9.7/src/ls.c: scope_hint: In function 'decode_switches'
coreutils-9.7/src/ls.c:2452:24: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def399]
coreutils-9.7/src/ls.c:2452:24: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
coreutils-9.7/src/ls.c:4545:11: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(quotearg_buffer(buf, bufsize, name, 18446744073709551615, options) + 1)'
coreutils-9.7/src/ls.c:3935:1: enter_function: entry to 'fileinfo_name_width'
coreutils-9.7/src/ls.c:3939:12: call_function: calling 'quote_name_width' from 'fileinfo_name_width'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
coreutils-9.7/src/ls.c:4745:10: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc(3, strlen(str) + 1)'
coreutils-9.7/src/ls.c:5226:1: enter_function: entry to 'print_with_separator'
coreutils-9.7/src/ls.c:5230:27: branch_true: following 'true' branch...
coreutils-9.7/src/ls.c:5232:45: branch_true: ...to here
coreutils-9.7/src/ls.c:5233:20: branch_false: following 'false' branch...
coreutils-9.7/src/ls.c:5235:10: branch_false: ...to here
coreutils-9.7/src/ls.c:5235:10: branch_false: following 'false' branch (when 'filesno == 0')...
coreutils-9.7/src/ls.c:5256:7: branch_false: ...to here
coreutils-9.7/src/ls.c:5256:7: call_function: calling 'print_file_name_and_frills' from 'print_with_separator'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
coreutils-9.7/src/ls.c:5341:3: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/src/ls.c:5316:6: branch_true: following 'true' branch...
coreutils-9.7/src/ls.c:5319:21: branch_true: ...to here
coreutils-9.7/src/ls.c:5328:10: branch_false: following 'false' branch...
coreutils-9.7/src/ls.c:5329:14: branch_false: ...to here
coreutils-9.7/src/ls.c:5328:11: branch_false: following 'false' branch...
coreutils-9.7/src/ls.c:5331:19: branch_false: ...to here
coreutils-9.7/src/ls.c:5334:45: branch_true: following 'true' branch...
coreutils-9.7/src/ls.c:5336:22: branch_true: ...to here
coreutils-9.7/src/ls.c:5334:45: branch_false: following 'false' branch...
coreutils-9.7/src/ls.c:5341:3: branch_false: ...to here
coreutils-9.7/src/ls.c:5341:3: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
coreutils-9.7/src/ls.c:5348:1: warning[-Wanalyzer-malloc-leak]: leak of 'p'
coreutils-9.7/src/ls.c:5316:6: branch_true: following 'true' branch...
coreutils-9.7/src/ls.c:5319:21: branch_true: ...to here
coreutils-9.7/src/ls.c:5328:10: branch_false: following 'false' branch...
coreutils-9.7/src/ls.c:5329:14: branch_false: ...to here
coreutils-9.7/src/ls.c:5328:11: branch_false: following 'false' branch...
coreutils-9.7/src/ls.c:5331:19: branch_false: ...to here
coreutils-9.7/src/ls.c:5334:45: branch_false: following 'false' branch...
coreutils-9.7/src/ls.c:5341:3: branch_false: ...to here
coreutils-9.7/src/ls.c:5341:21: branch_false: following 'false' branch (when 'i >= max_cols')...
coreutils-9.7/src/ls.c:5348:1: branch_false: ...to here
coreutils-9.7/src/ls.c:5348:1: danger: 'p' leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
coreutils-9.7/src/mktemp.c:252:7: warning[-Wanalyzer-malloc-leak]: leak of 'template'
coreutils-9.7/src/mktemp.c:169:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/src/mktemp.c:171:7: branch_true: ...to here
coreutils-9.7/src/mktemp.c:206:6: branch_false: following 'false' branch (when 'n_args <= 1')...
coreutils-9.7/src/mktemp.c:212:6: branch_false: ...to here
coreutils-9.7/src/mktemp.c:222:6: branch_false: following 'false' branch (when 'suffix' is NULL)...
coreutils-9.7/src/mktemp.c:240:18: branch_false: ...to here
coreutils-9.7/src/mktemp.c:250:6: branch_true: following 'true' branch...
coreutils-9.7/src/mktemp.c:252:7: throw: if 'quote' throws an exception...
coreutils-9.7/src/mktemp.c:252:7: danger: 'template' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
coreutils-9.7/src/mktemp.c:262:7: warning[-Wanalyzer-malloc-leak]: leak of 'template'
coreutils-9.7/src/mktemp.c:169:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/src/mktemp.c:171:7: branch_true: ...to here
coreutils-9.7/src/mktemp.c:206:6: branch_false: following 'false' branch (when 'n_args <= 1')...
coreutils-9.7/src/mktemp.c:212:6: branch_false: ...to here
coreutils-9.7/src/mktemp.c:222:6: branch_false: following 'false' branch (when 'suffix' is NULL)...
coreutils-9.7/src/mktemp.c:240:18: branch_false: ...to here
coreutils-9.7/src/mktemp.c:257:6: branch_true: following 'true' branch (when 'n <= 2')...
coreutils-9.7/src/mktemp.c:260:10: branch_true: ...to here
coreutils-9.7/src/mktemp.c:262:7: throw: if 'quote' throws an exception...
coreutils-9.7/src/mktemp.c:262:7: danger: 'template' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
coreutils-9.7/src/mv.c:536:11: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(target_directory, last_component(source), &dest_relname)'
coreutils-9.7/src/mv.c:316:1: enter_function: entry to 'main'
coreutils-9.7/src/mv.c:339:3: call_function: calling 'cp_option_init' from 'main'
coreutils-9.7/src/mv.c:339:3: return_function: returning to 'main' from 'cp_option_init'
coreutils-9.7/src/mv.c:418:6: branch_false: following 'false' branch...
coreutils-9.7/src/mv.c:429:3: branch_false: ...to here
coreutils-9.7/src/mv.c:431:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/mv.c:443:11: branch_false: ...to here
coreutils-9.7/src/mv.c:443:11: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.7/src/mv.c:452:34: branch_false: ...to here
coreutils-9.7/src/mv.c:457:10: branch_true: following 'true' branch...
coreutils-9.7/src/mv.c:459:20: branch_true: ...to here
coreutils-9.7/src/mv.c:460:14: branch_true: following 'true' branch...
coreutils-9.7/src/mv.c:462:15: branch_true: ...to here
coreutils-9.7/src/mv.c:497:6: branch_false: following 'false' branch...
coreutils-9.7/src/mv.c:500:6: branch_false: ...to here
coreutils-9.7/src/mv.c:500:6: branch_false: following 'false' branch (when 'make_backups == 0')...
coreutils-9.7/src/mv.c:511:3: branch_false: ...to here
coreutils-9.7/src/mv.c:519:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/mv.c:524:10: branch_true: ...to here
coreutils-9.7/src/mv.c:528:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/mv.c:530:25: branch_true: ...to here
coreutils-9.7/src/mv.c:536:11: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.7/src/mv.c:536:11: danger: 'file_name_concat(target_directory, last_component(source), &dest_relname)' leaks here; was allocated at [(24)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/23)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def407]
coreutils-9.7/src/nl.c:455:3: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/nl.c:439:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/nl.c:447:16: branch_false: ...to here
coreutils-9.7/src/nl.c:447:16: acquire_resource: opened here
coreutils-9.7/src/nl.c:448:10: branch_false: following 'false' branch...
coreutils-9.7/src/nl.c:455:3: branch_false: ...to here
coreutils-9.7/src/nl.c:455:3: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/nl.c:455:3: danger: 'stream' leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
coreutils-9.7/src/nl.c:455:3: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.7/src/nl.c:439:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/nl.c:447:16: branch_false: ...to here
coreutils-9.7/src/nl.c:447:16: acquire_memory: allocated here
coreutils-9.7/src/nl.c:448:10: branch_false: following 'false' branch...
coreutils-9.7/src/nl.c:455:3: branch_false: ...to here
coreutils-9.7/src/nl.c:455:3: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/nl.c:455:3: danger: 'stream' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
coreutils-9.7/src/nohup.c:157:27: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(home, "nohup.out", 0)'
coreutils-9.7/src/nohup.c:111:6: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:117:20: branch_false: ...to here
coreutils-9.7/src/nohup.c:119:22: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:119:22: branch_false: ...to here
coreutils-9.7/src/nohup.c:125:6: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:138:6: branch_false: ...to here
coreutils-9.7/src/nohup.c:138:6: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:144:28: branch_true: ...to here
coreutils-9.7/src/nohup.c:145:16: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:146:19: branch_true: ...to here
coreutils-9.7/src/nohup.c:149:10: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.7/src/nohup.c:151:29: branch_true: ...to here
coreutils-9.7/src/nohup.c:153:14: branch_true: following 'true' branch (when 'home' is non-NULL)...
coreutils-9.7/src/nohup.c:155:25: branch_true: ...to here
coreutils-9.7/src/nohup.c:156:24: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:157:27: branch_true: ...to here
coreutils-9.7/src/nohup.c:157:27: throw: if 'fd_reopen' throws an exception...
coreutils-9.7/src/nohup.c:157:27: danger: 'file_name_concat(home, "nohup.out", 0)' leaks here; was allocated at [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
coreutils-9.7/src/nohup.c:163:15: warning[-Wanalyzer-malloc-leak]: leak of 'in_home'
coreutils-9.7/src/nohup.c:111:6: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:117:20: branch_false: ...to here
coreutils-9.7/src/nohup.c:119:22: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:119:22: branch_false: ...to here
coreutils-9.7/src/nohup.c:125:6: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:138:6: branch_false: ...to here
coreutils-9.7/src/nohup.c:138:6: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:144:28: branch_true: ...to here
coreutils-9.7/src/nohup.c:145:16: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:146:19: branch_true: ...to here
coreutils-9.7/src/nohup.c:149:10: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.7/src/nohup.c:151:29: branch_true: ...to here
coreutils-9.7/src/nohup.c:153:14: branch_true: following 'true' branch (when 'home' is non-NULL)...
coreutils-9.7/src/nohup.c:155:25: branch_true: ...to here
coreutils-9.7/src/nohup.c:156:24: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:157:27: branch_true: ...to here
coreutils-9.7/src/nohup.c:160:14: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.7/src/nohup.c:162:19: branch_true: ...to here
coreutils-9.7/src/nohup.c:163:15: throw: if 'quotearg_style' throws an exception...
coreutils-9.7/src/nohup.c:163:15: danger: 'in_home' leaks here; was allocated at [(18)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
coreutils-9.7/src/nohup.c:165:17: warning[-Wanalyzer-malloc-leak]: leak of 'in_home'
coreutils-9.7/src/nohup.c:111:6: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:117:20: branch_false: ...to here
coreutils-9.7/src/nohup.c:119:22: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:119:22: branch_false: ...to here
coreutils-9.7/src/nohup.c:125:6: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:138:6: branch_false: ...to here
coreutils-9.7/src/nohup.c:138:6: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:144:28: branch_true: ...to here
coreutils-9.7/src/nohup.c:145:16: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:146:19: branch_true: ...to here
coreutils-9.7/src/nohup.c:149:10: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.7/src/nohup.c:151:29: branch_true: ...to here
coreutils-9.7/src/nohup.c:153:14: branch_true: following 'true' branch (when 'home' is non-NULL)...
coreutils-9.7/src/nohup.c:155:25: branch_true: ...to here
coreutils-9.7/src/nohup.c:156:24: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:157:27: branch_true: ...to here
coreutils-9.7/src/nohup.c:160:14: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.7/src/nohup.c:162:19: branch_true: ...to here
coreutils-9.7/src/nohup.c:164:18: branch_true: following 'true' branch (when 'in_home' is non-NULL)...
coreutils-9.7/src/nohup.c:165:17: branch_true: ...to here
coreutils-9.7/src/nohup.c:165:17: throw: if 'quotearg_style' throws an exception...
coreutils-9.7/src/nohup.c:165:17: danger: 'in_home' leaks here; was allocated at [(18)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
coreutils-9.7/src/nohup.c:231:1: warning[-Wanalyzer-malloc-leak]: leak of 'in_home'
coreutils-9.7/src/nohup.c:111:6: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:117:20: branch_false: ...to here
coreutils-9.7/src/nohup.c:119:22: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:119:22: branch_false: ...to here
coreutils-9.7/src/nohup.c:125:6: branch_false: following 'false' branch...
coreutils-9.7/src/nohup.c:138:6: branch_false: ...to here
coreutils-9.7/src/nohup.c:138:6: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:144:28: branch_true: ...to here
coreutils-9.7/src/nohup.c:145:16: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:146:19: branch_true: ...to here
coreutils-9.7/src/nohup.c:149:10: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.7/src/nohup.c:151:29: branch_true: ...to here
coreutils-9.7/src/nohup.c:153:14: branch_true: following 'true' branch (when 'home' is non-NULL)...
coreutils-9.7/src/nohup.c:155:25: branch_true: ...to here
coreutils-9.7/src/nohup.c:156:24: branch_true: following 'true' branch...
coreutils-9.7/src/nohup.c:157:27: branch_true: ...to here
coreutils-9.7/src/nohup.c:160:14: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.7/src/nohup.c:162:19: branch_true: ...to here
coreutils-9.7/src/nohup.c:231:1: danger: 'in_home' leaks here; was allocated at [(18)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/17)
Error: CPPCHECK_WARNING (CWE-415): [#def413]
coreutils-9.7/src/numfmt.c:862: error[doubleFree]: Memory pointed to by 't_string' is freed twice.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
coreutils-9.7/src/operand2sig.c:72:25: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(operand)'
coreutils-9.7/src/operand2sig.c:36:1: enter_function: entry to 'operand2sig'
coreutils-9.7/src/operand2sig.c:40:7: call_function: inlined call to 'c_isdigit' from 'operand2sig'
coreutils-9.7/src/operand2sig.c:70:23: branch_false: ...to here
coreutils-9.7/src/operand2sig.c:72:25: branch_true: following 'true' branch...
coreutils-9.7/src/operand2sig.c:73:13: branch_true: ...to here
coreutils-9.7/src/operand2sig.c:73:12: branch_false: following 'false' branch...
coreutils-9.7/src/operand2sig.c:72:29: branch_false: ...to here
coreutils-9.7/src/operand2sig.c:78:13: throw: if 'str2sig' throws an exception...
coreutils-9.7/src/operand2sig.c:72:25: danger: 'xstrdup(operand)' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
coreutils-9.7/src/operand2sig.c:78:13: warning[-Wanalyzer-malloc-leak]: leak of 'p'
coreutils-9.7/src/operand2sig.c:36:1: enter_function: entry to 'operand2sig'
coreutils-9.7/src/operand2sig.c:40:7: call_function: inlined call to 'c_isdigit' from 'operand2sig'
coreutils-9.7/src/operand2sig.c:70:23: branch_false: ...to here
coreutils-9.7/src/operand2sig.c:72:25: branch_false: following 'false' branch...
coreutils-9.7/src/operand2sig.c:78:13: branch_false: ...to here
coreutils-9.7/src/operand2sig.c:78:13: throw: if 'str2sig' throws an exception...
coreutils-9.7/src/operand2sig.c:78:13: danger: 'p' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def416]
coreutils-9.7/src/paste.c:180:20: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(nfiles + 2)'
coreutils-9.7/src/paste.c:451:1: enter_function: entry to 'main'
coreutils-9.7/src/paste.c:500:7: call_function: calling 'collapse_escapes' from 'main'
coreutils-9.7/src/paste.c:500:7: return_function: returning to 'main' from 'collapse_escapes'
coreutils-9.7/src/paste.c:500:6: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:509:28: branch_false: ...to here
coreutils-9.7/src/paste.c:509:14: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:509:14: branch_false: ...to here
coreutils-9.7/src/paste.c:509:13: call_function: calling 'paste_parallel' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
coreutils-9.7/src/paste.c:194:11: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc(nfiles + 1, 8)'
coreutils-9.7/src/paste.c:451:1: enter_function: entry to 'main'
coreutils-9.7/src/paste.c:500:7: call_function: calling 'collapse_escapes' from 'main'
coreutils-9.7/src/paste.c:500:7: return_function: returning to 'main' from 'collapse_escapes'
coreutils-9.7/src/paste.c:500:6: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:509:28: branch_false: ...to here
coreutils-9.7/src/paste.c:509:14: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:509:14: branch_false: ...to here
coreutils-9.7/src/paste.c:509:13: call_function: calling 'paste_parallel' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def418]
coreutils-9.7/src/paste.c:361:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*fnamptr, "r")'
coreutils-9.7/src/paste.c:343:10: branch_true: following 'true' branch (when 'nfiles != 0')...
coreutils-9.7/src/paste.c:346:23: branch_true: ...to here
coreutils-9.7/src/paste.c:347:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/paste.c:354:21: branch_false: ...to here
coreutils-9.7/src/paste.c:354:21: acquire_resource: opened here
coreutils-9.7/src/paste.c:355:14: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:361:11: branch_false: ...to here
coreutils-9.7/src/paste.c:361:11: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/paste.c:361:11: danger: 'fopen(*fnamptr, "r")' leaks here; was opened at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
coreutils-9.7/src/paste.c:361:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*fnamptr, "r")'
coreutils-9.7/src/paste.c:343:10: branch_true: following 'true' branch (when 'nfiles != 0')...
coreutils-9.7/src/paste.c:346:23: branch_true: ...to here
coreutils-9.7/src/paste.c:347:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/paste.c:354:21: branch_false: ...to here
coreutils-9.7/src/paste.c:354:21: acquire_memory: allocated here
coreutils-9.7/src/paste.c:355:14: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:361:11: branch_false: ...to here
coreutils-9.7/src/paste.c:361:11: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/paste.c:361:11: danger: 'fopen(*fnamptr, "r")' leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def420]
coreutils-9.7/src/pinky.c:312:1: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.7/src/pinky.c:529:1: enter_function: entry to 'single_binary_main_pinky'
coreutils-9.7/src/pinky.c:612:6: branch_true: following 'true' branch...
coreutils-9.7/src/pinky.c:613:43: branch_true: ...to here
coreutils-9.7/src/pinky.c:613:5: call_function: calling 'short_pinky' from 'single_binary_main_pinky'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
coreutils-9.7/src/printf.c:526:23: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(strlen(format) + 1)'
coreutils-9.7/src/printf.c:511:1: enter_function: entry to 'print_formatted'
coreutils-9.7/src/printf.c:526:23: branch_true: following 'true' branch...
coreutils-9.7/src/printf.c:528:7: branch_true: ...to here
coreutils-9.7/src/printf.c:535:14: branch_false: following 'false' branch...
coreutils-9.7/src/printf.c:541:16: branch_false: ...to here
coreutils-9.7/src/printf.c:541:16: call_function: calling 'get_curr_arg' from 'print_formatted'
coreutils-9.7/src/printf.c:541:16: return_function: returning to 'print_formatted' from 'get_curr_arg'
coreutils-9.7/src/printf.c:543:14: branch_false: following 'false' branch...
coreutils-9.7/src/printf.c:553:14: branch_false: ...to here
coreutils-9.7/src/printf.c:553:14: branch_true: following 'true' branch...
coreutils-9.7/src/printf.c:555:20: call_function: inlined call to 'get_curr_arg' from 'print_formatted'
coreutils-9.7/src/printf.c:556:18: branch_true: following 'true' branch (when 'argc > <unknown>')...
coreutils-9.7/src/printf.c:558:19: branch_true: ...to here
coreutils-9.7/src/printf.c:558:19: throw: if 'quotearg_style' throws an exception...
coreutils-9.7/src/printf.c:526:23: danger: 'xmalloc(strlen(format) + 1)' leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
coreutils-9.7/src/pwd.c:94:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/src/pwd.c:94:12: throw: if 'xmalloc' throws an exception...
coreutils-9.7/src/pwd.c:94:12: danger: 'xmalloc(24)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
coreutils-9.7/src/pwd.c:95:14: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_init()'
coreutils-9.7/src/pwd.c:325:1: enter_function: entry to 'main'
coreutils-9.7/src/pwd.c:378:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:385:37: branch_false: ...to here
coreutils-9.7/src/pwd.c:385:37: call_function: calling 'file_name_init' from 'main'
coreutils-9.7/src/pwd.c:385:37: return_function: returning to 'main' from 'file_name_init'
coreutils-9.7/src/pwd.c:386:7: call_function: calling 'robust_getcwd' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
coreutils-9.7/src/pwd.c:162:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.7/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.7/src/pwd.c:161:6: branch_true: following 'true' branch...
coreutils-9.7/src/pwd.c:162:5: branch_true: ...to here
coreutils-9.7/src/pwd.c:162:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.7/src/pwd.c:162:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.7/src/pwd.c:162:5: danger: 'nth_parent(parent_height)' leaks here; was allocated at [(6)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
coreutils-9.7/src/pwd.c:167:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.7/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.7/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.7/src/pwd.c:166:6: branch_true: following 'true' branch...
coreutils-9.7/src/pwd.c:167:5: branch_true: ...to here
coreutils-9.7/src/pwd.c:167:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.7/src/pwd.c:167:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.7/src/pwd.c:167:5: danger: 'nth_parent(parent_height)' leaks here; was allocated at [(8)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
coreutils-9.7/src/pwd.c:171:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.7/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.7/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.7/src/pwd.c:166:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:170:7: branch_false: ...to here
coreutils-9.7/src/pwd.c:170:6: branch_true: following 'true' branch...
coreutils-9.7/src/pwd.c:171:5: branch_true: ...to here
coreutils-9.7/src/pwd.c:171:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.7/src/pwd.c:171:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.7/src/pwd.c:171:5: danger: 'nth_parent(parent_height)' leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
coreutils-9.7/src/pwd.c:230:7: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.7/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.7/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.7/src/pwd.c:166:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:170:7: branch_false: ...to here
coreutils-9.7/src/pwd.c:170:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:176:16: branch_false: ...to here
coreutils-9.7/src/pwd.c:186:10: branch_true: following 'true' branch...
coreutils-9.7/src/pwd.c:188:15: branch_true: ...to here
coreutils-9.7/src/pwd.c:230:7: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.7/src/pwd.c:230:7: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.7/src/pwd.c:230:7: danger: 'nth_parent(parent_height)' leaks here; was allocated at [(12)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
coreutils-9.7/src/pwd.c:235:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.7/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.7/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.7/src/pwd.c:166:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:170:7: branch_false: ...to here
coreutils-9.7/src/pwd.c:170:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:176:16: branch_false: ...to here
coreutils-9.7/src/pwd.c:186:10: branch_true: following 'true' branch...
coreutils-9.7/src/pwd.c:188:15: branch_true: ...to here
coreutils-9.7/src/pwd.c:188:14: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:198:11: branch_false: ...to here
coreutils-9.7/src/pwd.c:226:7: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:234:6: branch_false: ...to here
coreutils-9.7/src/pwd.c:234:6: branch_false: following 'false' branch (when 'found == 0')...
coreutils-9.7/src/pwd.c:235:5: branch_false: ...to here
coreutils-9.7/src/pwd.c:235:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.7/src/pwd.c:235:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.7/src/pwd.c:235:5: danger: 'nth_parent(parent_height)' leaks here; was allocated at [(18)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
coreutils-9.7/src/realpath.c:99:21: warning[-Wanalyzer-malloc-leak]: leak of 'realpath_canon(fname, can_mode)'
coreutils-9.7/src/realpath.c:149:1: enter_function: entry to 'process_path'
coreutils-9.7/src/realpath.c:151:21: call_function: calling 'realpath_canon' from 'process_path'
coreutils-9.7/src/realpath.c:151:21: return_function: returning to 'process_path' from 'realpath_canon'
coreutils-9.7/src/realpath.c:152:6: branch_false: following 'false' branch...
coreutils-9.7/src/realpath.c:159:7: branch_false: ...to here
coreutils-9.7/src/realpath.c:159:6: branch_false: following 'false' branch...
coreutils-9.7/src/realpath.c:160:11: branch_false: ...to here
coreutils-9.7/src/realpath.c:161:31: throw: if 'relpath' throws an exception...
coreutils-9.7/src/realpath.c:99:21: danger: 'realpath_canon(fname, can_mode)' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
coreutils-9.7/src/realpath.c:100:7: warning[-Wanalyzer-malloc-leak]: leak of 'canonicalize_filename_mode(fname, (enum canonicalize_mode_t)can_mode)'
coreutils-9.7/src/realpath.c:99:21: acquire_memory: allocated here
coreutils-9.7/src/realpath.c:100:6: branch_true: following 'true' branch...
coreutils-9.7/src/realpath.c:100:7: branch_true: ...to here
coreutils-9.7/src/realpath.c:100:7: branch_true: following 'true' branch...
coreutils-9.7/src/realpath.c:102:7: branch_true: ...to here
coreutils-9.7/src/realpath.c:103:26: throw: if 'canonicalize_filename_mode' throws an exception...
coreutils-9.7/src/realpath.c:100:7: danger: 'canonicalize_filename_mode(fname, (enum canonicalize_mode_t)can_mode)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
coreutils-9.7/src/remove.c:501:19: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(*ent.fts_accpath, "..", 0)'
coreutils-9.7/src/remove.c:465:10: branch_true: following 'true' branch...
coreutils-9.7/src/remove.c:470:46: branch_true: ...to here
coreutils-9.7/src/remove.c:493:14: branch_true: following 'true' branch...
coreutils-9.7/src/remove.c:496:30: branch_true: ...to here
coreutils-9.7/src/remove.c:499:19: branch_true: following 'true' branch...
coreutils-9.7/src/remove.c:501:19: branch_true: ...to here
coreutils-9.7/src/remove.c:501:19: throw: if 'quotearg_n_style' throws an exception...
coreutils-9.7/src/remove.c:501:19: danger: 'file_name_concat(*ent.fts_accpath, "..", 0)' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
coreutils-9.7/src/remove.c:623:17: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(file, bit_flags, 0)'
coreutils-9.7/src/remove.c:608:6: branch_true: following 'true' branch...
coreutils-9.7/src/remove.c:614:11: branch_true: ...to here
coreutils-9.7/src/remove.c:623:17: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/remove.c:623:17: danger: 'xfts_open(file, bit_flags, 0)' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
coreutils-9.7/src/rmdir.c:271:23: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(dir)'
coreutils-9.7/src/rmdir.c:232:6: branch_false: following 'false' branch...
coreutils-9.7/src/rmdir.c:232:6: branch_false: ...to here
coreutils-9.7/src/rmdir.c:238:10: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:240:23: branch_true: ...to here
coreutils-9.7/src/rmdir.c:246:10: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:248:29: branch_true: ...to here
coreutils-9.7/src/rmdir.c:249:14: branch_false: following 'false' branch...
coreutils-9.7/src/rmdir.c:258:14: branch_false: ...to here
coreutils-9.7/src/rmdir.c:258:14: branch_true: following 'true' branch (when 'rmdir_errno == 20')...
coreutils-9.7/src/rmdir.c:260:45: branch_true: ...to here
coreutils-9.7/src/rmdir.c:261:18: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:267:26: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:270:39: branch_true: ...to here
coreutils-9.7/src/rmdir.c:271:23: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.7/src/rmdir.c:271:23: danger: 'xstrdup(dir)' leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
coreutils-9.7/src/rmdir.c:273:39: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(dir)'
coreutils-9.7/src/rmdir.c:232:6: branch_false: following 'false' branch...
coreutils-9.7/src/rmdir.c:232:6: branch_false: ...to here
coreutils-9.7/src/rmdir.c:238:10: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:240:23: branch_true: ...to here
coreutils-9.7/src/rmdir.c:246:10: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:248:29: branch_true: ...to here
coreutils-9.7/src/rmdir.c:249:14: branch_false: following 'false' branch...
coreutils-9.7/src/rmdir.c:258:14: branch_false: ...to here
coreutils-9.7/src/rmdir.c:258:14: branch_true: following 'true' branch (when 'rmdir_errno == 20')...
coreutils-9.7/src/rmdir.c:260:45: branch_true: ...to here
coreutils-9.7/src/rmdir.c:261:18: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:267:26: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:270:39: branch_true: ...to here
coreutils-9.7/src/rmdir.c:273:26: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:275:27: throw: if 'quotearg_style' throws an exception...
coreutils-9.7/src/rmdir.c:273:39: danger: 'xstrdup(dir)' leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
coreutils-9.7/src/selinux.c:82:7: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.7/src/selinux.c:82:7: throw: if 'getcon_raw' throws an exception...
coreutils-9.7/src/selinux.c:82:7: danger: 'dir_name(path)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
coreutils-9.7/src/selinux.c:84:7: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.7/src/selinux.c:82:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:84:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:84:7: throw: if 'rpl_getfilecon_raw' throws an exception...
coreutils-9.7/src/selinux.c:84:7: danger: 'dir_name(path)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
coreutils-9.7/src/selinux.c:86:12: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.7/src/selinux.c:82:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:84:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:84:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:86:12: branch_false: ...to here
coreutils-9.7/src/selinux.c:86:12: throw: if 'mode_to_security_class' throws an exception...
coreutils-9.7/src/selinux.c:86:12: danger: 'dir_name(path)' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
coreutils-9.7/src/selinux.c:89:8: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.7/src/selinux.c:82:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:84:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:84:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:86:12: branch_false: ...to here
coreutils-9.7/src/selinux.c:87:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:89:8: branch_false: ...to here
coreutils-9.7/src/selinux.c:89:8: throw: if 'security_compute_create_raw' throws an exception...
coreutils-9.7/src/selinux.c:89:8: danger: 'dir_name(path)' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
coreutils-9.7/src/selinux.c:130:7: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:130:7: throw: if 'selabel_lookup_raw' throws an exception...
coreutils-9.7/src/selinux.c:130:7: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
coreutils-9.7/src/selinux.c:159:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.7/src/selinux.c:159:3: throw: if 'context_free' throws an exception...
coreutils-9.7/src/selinux.c:159:3: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
coreutils-9.7/src/selinux.c:160:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.7/src/selinux.c:160:3: throw: if 'context_free' throws an exception...
coreutils-9.7/src/selinux.c:160:3: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
coreutils-9.7/src/selinux.c:161:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.7/src/selinux.c:161:3: throw: if 'freecon' throws an exception...
coreutils-9.7/src/selinux.c:161:3: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
coreutils-9.7/src/selinux.c:162:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.7/src/selinux.c:162:3: throw: if 'freecon' throws an exception...
coreutils-9.7/src/selinux.c:162:3: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
coreutils-9.7/src/selinux.c:311:14: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:290:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:295:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:295:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:296:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:301:6: branch_false: ...to here
coreutils-9.7/src/selinux.c:301:6: branch_true: following 'true' branch (when 'recurse != 0')...
coreutils-9.7/src/selinux.c:310:15: branch_true: ...to here
coreutils-9.7/src/selinux.c:311:14: throw: if 'xfts_open' throws an exception...
coreutils-9.7/src/selinux.c:311:14: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
coreutils-9.7/src/selinux.c:314:28: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(&ftspath, 16, 0)'
coreutils-9.7/src/selinux.c:290:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:301:6: branch_false: ...to here
coreutils-9.7/src/selinux.c:301:6: branch_true: following 'true' branch (when 'recurse != 0')...
coreutils-9.7/src/selinux.c:310:15: branch_true: ...to here
coreutils-9.7/src/selinux.c:314:28: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/selinux.c:314:28: danger: 'xfts_open(&ftspath, 16, 0)' leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
coreutils-9.7/src/seq.c:478:14: warning[-Wanalyzer-malloc-leak]: leak of 's2'
coreutils-9.7/src/seq.c:547:1: enter_function: entry to 'main'
coreutils-9.7/src/seq.c:609:6: branch_false: following 'false' branch (when 'n_args > 0')...
coreutils-9.7/src/seq.c:615:6: branch_false: ...to here
coreutils-9.7/src/seq.c:615:6: branch_false: following 'false' branch (when 'n_args <= 3')...
coreutils-9.7/src/seq.c:621:6: branch_false: ...to here
coreutils-9.7/src/seq.c:621:6: branch_false: following 'false' branch (when 'format_str' is NULL)...
coreutils-9.7/src/seq.c:639:6: branch_false: ...to here
coreutils-9.7/src/seq.c:656:10: call_function: calling 'scan_arg' from 'main'
coreutils-9.7/src/seq.c:656:10: return_function: returning to 'main' from 'scan_arg'
coreutils-9.7/src/seq.c:679:6: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:679:7: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:679:7: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:679:7: branch_false: following 'false' branch...
coreutils-9.7/src/seq.c:679:7: branch_false: ...to here
coreutils-9.7/src/seq.c:679:7: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:686:10: branch_false: following 'false' branch...
coreutils-9.7/src/seq.c:688:13: branch_false: ...to here
coreutils-9.7/src/seq.c:688:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:689:14: branch_true: ...to here
coreutils-9.7/src/seq.c:693:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:694:9: call_function: calling 'seq_fast' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
coreutils-9.7/src/seq.c:498:15: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.7/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:489:10: branch_true: ...to here
coreutils-9.7/src/seq.c:494:14: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:496:11: branch_true: ...to here
coreutils-9.7/src/seq.c:498:15: throw: if 'full_write' throws an exception...
coreutils-9.7/src/seq.c:498:15: danger: 'p0' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
coreutils-9.7/src/seq.c:511:26: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.7/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:489:10: branch_true: ...to here
coreutils-9.7/src/seq.c:494:14: branch_false: following 'false' branch...
coreutils-9.7/src/seq.c:505:14: branch_false: ...to here
coreutils-9.7/src/seq.c:509:10: branch_true: following 'true' branch (when 'p0 == p')...
coreutils-9.7/src/seq.c:511:26: branch_true: ...to here
coreutils-9.7/src/seq.c:511:26: throw: if 'xpalloc' throws an exception...
coreutils-9.7/src/seq.c:511:26: danger: 'p0' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-124): [#def449]
coreutils-9.7/src/seq.c:529:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
coreutils-9.7/src/seq.c:489:10: branch_false: following 'false' branch...
coreutils-9.7/src/seq.c:527:6: branch_true: following 'true' branch (when 'remaining != 0')...
coreutils-9.7/src/seq.c:529:7: branch_true: ...to here
coreutils-9.7/src/seq.c:529:7: danger: out-of-bounds write at byte -1 but 'buf' starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
coreutils-9.7/src/seq.c:530:11: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.7/src/seq.c:489:10: branch_false: following 'false' branch...
coreutils-9.7/src/seq.c:527:6: branch_true: following 'true' branch (when 'remaining != 0')...
coreutils-9.7/src/seq.c:529:7: branch_true: ...to here
coreutils-9.7/src/seq.c:530:11: throw: if 'full_write' throws an exception...
coreutils-9.7/src/seq.c:530:11: danger: 'p0' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
coreutils-9.7/src/set-fields.c:256:15: warning[-Wanalyzer-malloc-leak]: leak of 'ximemdup0(num_start, (long int)strspn(<unknown>, "0123456789"))'
coreutils-9.7/src/set-fields.c:137:1: enter_function: entry to 'set_fields'
coreutils-9.7/src/set-fields.c:234:16: call_function: inlined call to 'c_isdigit' from 'set_fields'
coreutils-9.7/src/set-fields.c:239:14: branch_true: ...to here
coreutils-9.7/src/set-fields.c:239:14: branch_false: following 'false' branch (when 'in_digits == 0')...
coreutils-9.7/src/set-fields.c:240:13: branch_false: ...to here
coreutils-9.7/src/set-fields.c:256:15: throw: if 'quote' throws an exception...
coreutils-9.7/src/set-fields.c:256:15: danger: 'ximemdup0(num_start, (long int)strspn(<unknown>, "0123456789"))' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
coreutils-9.7/src/shred.c:1255:11: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(quotearg_n_style_colon(0, 3, *<unknown>))'
coreutils-9.7/src/shred.c:1161:1: enter_function: entry to 'main'
coreutils-9.7/src/shred.c:1240:6: branch_false: following 'false' branch (when 'n_files != 0')...
coreutils-9.7/src/shred.c:1246:20: branch_false: ...to here
coreutils-9.7/src/shred.c:1247:6: branch_false: following 'false' branch...
coreutils-9.7/src/shred.c:1250:3: branch_false: ...to here
coreutils-9.7/src/shred.c:1252:15: branch_true: following 'true' branch (when 'i < n_files')...
coreutils-9.7/src/shred.c:1254:30: branch_true: ...to here
coreutils-9.7/src/shred.c:1255:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/shred.c:1262:17: branch_false: ...to here
coreutils-9.7/src/shred.c:1262:17: call_function: calling 'wipefile' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
coreutils-9.7/src/shuf.c:272:7: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(in, 0, & used)'
coreutils-9.7/src/shuf.c:269:15: acquire_memory: allocated here
coreutils-9.7/src/shuf.c:269:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:272:7: branch_false: ...to here
coreutils-9.7/src/shuf.c:281:19: throw: if 'xnmalloc' throws an exception...
coreutils-9.7/src/shuf.c:272:7: danger: 'fread_file(in, 0, & used)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
coreutils-9.7/src/shuf.c:281:19: warning[-Wanalyzer-malloc-leak]: leak of 'p'
coreutils-9.7/src/shuf.c:363:1: enter_function: entry to 'main'
coreutils-9.7/src/shuf.c:482:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:487:7: branch_false: ...to here
coreutils-9.7/src/shuf.c:487:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:494:6: branch_false: ...to here
coreutils-9.7/src/shuf.c:494:6: branch_false: following 'false' branch (when 'head_lines != 0')...
coreutils-9.7/src/shuf.c:499:11: branch_false: ...to here
coreutils-9.7/src/shuf.c:499:11: branch_false: following 'false' branch (when 'echo == 0')...
coreutils-9.7/src/shuf.c:505:11: branch_false: ...to here
coreutils-9.7/src/shuf.c:505:11: branch_false: following 'false' branch (when 'input_range == 0')...
coreutils-9.7/src/shuf.c:513:10: branch_false: ...to here
coreutils-9.7/src/shuf.c:520:10: branch_true: following 'true' branch...
coreutils-9.7/src/shuf.c:523:21: branch_true: ...to here
coreutils-9.7/src/shuf.c:523:21: call_function: calling 'read_input' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
coreutils-9.7/src/shuf.c:537:20: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/src/shuf.c:363:1: enter_function: entry to 'main'
coreutils-9.7/src/shuf.c:482:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:487:7: branch_false: ...to here
coreutils-9.7/src/shuf.c:487:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:494:6: branch_false: ...to here
coreutils-9.7/src/shuf.c:494:6: branch_false: following 'false' branch (when 'head_lines != 0')...
coreutils-9.7/src/shuf.c:499:11: branch_false: ...to here
coreutils-9.7/src/shuf.c:499:11: branch_false: following 'false' branch (when 'echo == 0')...
coreutils-9.7/src/shuf.c:505:11: branch_false: ...to here
coreutils-9.7/src/shuf.c:505:11: branch_false: following 'false' branch (when 'input_range == 0')...
coreutils-9.7/src/shuf.c:513:10: branch_false: ...to here
coreutils-9.7/src/shuf.c:520:10: branch_true: following 'true' branch...
coreutils-9.7/src/shuf.c:523:21: branch_true: ...to here
coreutils-9.7/src/shuf.c:523:21: call_function: calling 'read_input' from 'main'
coreutils-9.7/src/shuf.c:523:21: return_function: returning to 'main' from 'read_input'
coreutils-9.7/src/shuf.c:537:20: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
coreutils-9.7/src/shuf.c:557:10: warning[-Wanalyzer-malloc-leak]: leak of 'randint_all_new(random_source, <unknown>)'
coreutils-9.7/src/shuf.c:395:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/shuf.c:397:5: branch_true: ...to here
coreutils-9.7/src/shuf.c:444:14: branch_true: following 'true' branch...
coreutils-9.7/src/shuf.c:445:26: branch_true: ...to here
coreutils-9.7/src/shuf.c:482:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:487:7: branch_false: ...to here
coreutils-9.7/src/shuf.c:487:7: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:537:20: acquire_memory: allocated here
coreutils-9.7/src/shuf.c:541:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:545:6: branch_false: ...to here
coreutils-9.7/src/shuf.c:545:6: branch_false: following 'false' branch (when 'use_reservoir_sampling == 0')...
coreutils-9.7/src/shuf.c:557:10: branch_false: ...to here
coreutils-9.7/src/shuf.c:560:6: branch_false: following 'false' branch (when 'repeat == 0')...
coreutils-9.7/src/shuf.c:561:19: branch_false: ...to here
coreutils-9.7/src/shuf.c:561:19: throw: if 'randperm_new' throws an exception...
coreutils-9.7/src/shuf.c:557:10: danger: 'randint_all_new(random_source, <unknown>)' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
coreutils-9.7/src/sort.c:795:27: warning[-Wanalyzer-malloc-leak]: leak of 'fps'
coreutils-9.7/src/sort.c:4586:1: enter_function: entry to 'merge'
coreutils-9.7/src/sort.c:4589:10: branch_false: following 'false' branch...
coreutils-9.7/src/sort.c:4645:3: branch_false: ...to here
coreutils-9.7/src/sort.c:4655:24: call_function: calling 'open_input_files' from 'merge'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
coreutils-9.7/src/sort.c:923:35: warning[-Wanalyzer-malloc-leak]: leak of 'create_temp_file(&tempfd, survive_fd_exhaustion)'
coreutils-9.7/src/sort.c:4586:1: enter_function: entry to 'merge'
coreutils-9.7/src/sort.c:4589:10: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:4589:10: branch_true: ...to here
coreutils-9.7/src/sort.c:4607:26: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:4610:35: call_function: inlined call to 'create_temp' from 'merge'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
coreutils-9.7/src/sort.c:931:11: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(len + 32 & 18446744073709551608)'
coreutils-9.7/src/sort.c:4586:1: enter_function: entry to 'merge'
coreutils-9.7/src/sort.c:4589:10: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:4589:10: branch_true: ...to here
coreutils-9.7/src/sort.c:4607:26: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:4610:35: call_function: inlined call to 'create_temp' from 'merge'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
coreutils-9.7/src/sort.c:1038:7: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
coreutils-9.7/src/sort.c:4702:1: enter_function: entry to 'sort'
coreutils-9.7/src/sort.c:4711:10: branch_true: following 'true' branch (when 'nfiles != 0')...
coreutils-9.7/src/sort.c:4714:19: branch_true: ...to here
coreutils-9.7/src/sort.c:4715:18: call_function: calling 'xfopen' from 'sort'
Error: CPPCHECK_WARNING (CWE-457): [#def461]
coreutils-9.7/src/sort.c:1162: warning[uninitvar]: Uninitialized variable: pid
Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
coreutils-9.7/src/sort.c:1471:16: warning[-Wanalyzer-malloc-leak]: leak of 'lc_time'
coreutils-9.7/src/sort.c:4985:1: enter_function: entry to 'main'
coreutils-9.7/src/sort.c:5041:6: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:5041:6: branch_true: ...to here
coreutils-9.7/src/sort.c:5064:3: call_function: calling 'inittables_mb' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
coreutils-9.7/src/sort.c:1480:11: warning[-Wanalyzer-malloc-leak]: leak of 'lc_ctype'
coreutils-9.7/src/sort.c:4985:1: enter_function: entry to 'main'
coreutils-9.7/src/sort.c:5041:6: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:5041:6: branch_true: ...to here
coreutils-9.7/src/sort.c:5064:3: call_function: calling 'inittables_mb' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
coreutils-9.7/src/sort.c:1480:11: warning[-Wanalyzer-malloc-leak]: leak of 'lc_time'
coreutils-9.7/src/sort.c:4985:1: enter_function: entry to 'main'
coreutils-9.7/src/sort.c:5041:6: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:5041:6: branch_true: ...to here
coreutils-9.7/src/sort.c:5064:3: call_function: calling 'inittables_mb' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
coreutils-9.7/src/sort.c:1482:42: warning[-Wanalyzer-malloc-leak]: leak of 'lc_ctype'
coreutils-9.7/src/sort.c:4985:1: enter_function: entry to 'main'
coreutils-9.7/src/sort.c:5041:6: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:5041:6: branch_true: ...to here
coreutils-9.7/src/sort.c:5064:3: call_function: calling 'inittables_mb' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
coreutils-9.7/src/sort.c:1482:42: warning[-Wanalyzer-malloc-leak]: leak of 'lc_time'
coreutils-9.7/src/sort.c:4985:1: enter_function: entry to 'main'
coreutils-9.7/src/sort.c:5041:6: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:5041:6: branch_true: ...to here
coreutils-9.7/src/sort.c:5064:3: call_function: calling 'inittables_mb' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-835): [#def467]
coreutils-9.7/src/sort.c:2194:41: warning[-Wanalyzer-infinite-loop]: infinite loop
Error: CPPCHECK_WARNING (CWE-457): [#def468]
coreutils-9.7/src/sort.c:4795: warning[uninitvar]: Uninitialized variable: buf.buf
Error: GCC_ANALYZER_WARNING (CWE-457): [#def469]
coreutils-9.7/src/sort.c:4795:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'buf.buf'
coreutils-9.7/src/sort.c:4711:10: branch_false: following 'false' branch (when 'nfiles == 0')...
coreutils-9.7/src/sort.c:4794:2: branch_false: ...to here
coreutils-9.7/src/sort.c:4795:9: danger: use of uninitialized value 'buf.buf' here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def470]
coreutils-9.7/src/split.c:524:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[0]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def471]
coreutils-9.7/src/split.c:524:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[1]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def472]
coreutils-9.7/src/split.c:524:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[j]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def473]
coreutils-9.7/src/split.c:526:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[0]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def474]
coreutils-9.7/src/split.c:526:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[1]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def475]
coreutils-9.7/src/split.c:530:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(fd_pair[0], 0)'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def476]
coreutils-9.7/src/split.c:532:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[0]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def477]
coreutils-9.7/src/split.c:544:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[0]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def478]
coreutils-9.7/src/split.c:544:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[1]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def479]
coreutils-9.7/src/split.c:548:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[1]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
coreutils-9.7/src/stat.c:1711:24: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(dcgettext(0, " File: %N\012 Size: %-10s\011Blocks: %-10b IO Block: %-6o %F\012", 5))'
coreutils-9.7/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.7/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.7/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.7/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.7/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.7/src/stat.c:1968:16: call_function: calling 'default_format' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
coreutils-9.7/src/stat.c:1720:20: warning[-Wanalyzer-malloc-leak]: leak of 'format'
coreutils-9.7/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.7/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.7/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.7/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.7/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.7/src/stat.c:1968:16: call_function: calling 'default_format' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
coreutils-9.7/src/stat.c:1725:19: warning[-Wanalyzer-malloc-leak]: leak of 'xasprintf("%s%s", format, dcgettext(0, "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\012", 5))'
coreutils-9.7/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.7/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.7/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.7/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.7/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.7/src/stat.c:1968:16: call_function: calling 'default_format' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
coreutils-9.7/src/stat.c:1730:24: warning[-Wanalyzer-malloc-leak]: leak of 'xasprintf("%s%s", format, dcgettext(0, "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\012", 5))'
coreutils-9.7/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.7/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.7/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.7/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.7/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.7/src/stat.c:1968:16: call_function: calling 'default_format' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
coreutils-9.7/src/stat.c:1735:20: warning[-Wanalyzer-malloc-leak]: leak of 'format'
coreutils-9.7/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.7/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.7/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.7/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.7/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.7/src/stat.c:1968:16: call_function: calling 'default_format' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
coreutils-9.7/src/stdbuf.c:146:24: warning[-Wanalyzer-malloc-leak]: leak of 'xreadlink("/proc/self/exe")'
coreutils-9.7/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:144:20: acquire_memory: allocated here
coreutils-9.7/src/stdbuf.c:145:10: branch_true: following 'true' branch...
coreutils-9.7/src/stdbuf.c:146:24: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:146:24: throw: if 'dir_name' throws an exception...
coreutils-9.7/src/stdbuf.c:146:24: danger: 'xreadlink("/proc/self/exe")' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
coreutils-9.7/src/stdbuf.c:154:33: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(path)'
coreutils-9.7/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:145:10: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:147:24: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:147:15: branch_true: following 'true' branch (when 'path' is non-NULL)...
coreutils-9.7/src/stdbuf.c:150:18: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:151:42: branch_true: following 'true' branch (when 'dir' is non-NULL)...
coreutils-9.7/src/stdbuf.c:154:33: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:154:33: throw: if 'file_name_concat' throws an exception...
coreutils-9.7/src/stdbuf.c:154:33: danger: 'xstrdup(path)' leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
coreutils-9.7/src/stdbuf.c:157:34: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(dir, arg, 0)'
coreutils-9.7/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:145:10: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:147:24: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:147:15: branch_true: following 'true' branch (when 'path' is non-NULL)...
coreutils-9.7/src/stdbuf.c:150:18: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:151:42: branch_true: following 'true' branch (when 'dir' is non-NULL)...
coreutils-9.7/src/stdbuf.c:154:33: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:157:34: throw: if 'dir_name' throws an exception...
coreutils-9.7/src/stdbuf.c:157:34: danger: 'file_name_concat(dir, arg, 0)' leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
coreutils-9.7/src/stdbuf.c:157:34: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(path)'
coreutils-9.7/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:145:10: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:147:24: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:147:15: branch_true: following 'true' branch (when 'path' is non-NULL)...
coreutils-9.7/src/stdbuf.c:150:18: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:151:42: branch_true: following 'true' branch (when 'dir' is non-NULL)...
coreutils-9.7/src/stdbuf.c:154:33: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:157:34: throw: if 'dir_name' throws an exception...
coreutils-9.7/src/stdbuf.c:157:34: danger: 'xstrdup(path)' leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-787): [#def489]
coreutils-9.7/src/stdbuf.c:173:3: warning[-Wanalyzer-out-of-bounds]: buffer over-read
coreutils-9.7/src/stdbuf.c:309:1: enter_function: entry to 'main'
coreutils-9.7/src/stdbuf.c:322:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/src/stdbuf.c:326:7: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:332:24: call_function: inlined call to 'optc_to_fileno' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
coreutils-9.7/src/system.h:254:33: warning[-Wanalyzer-malloc-leak]: leak of 'fdopendir(__openat_alias(fd_cwd, dir, 198912))'
coreutils-9.7/src/remove.c:442:1: enter_function: entry to 'rm_fts'
coreutils-9.7/src/remove.c:449:10: branch_false: following 'false' branch...
coreutils-9.7/src/remove.c:450:16: branch_false: ...to here
coreutils-9.7/src/remove.c:449:11: branch_true: following 'true' branch...
coreutils-9.7/src/remove.c:451:19: branch_true: ...to here
coreutils-9.7/src/remove.c:451:19: call_function: calling 'get_dir_status' from 'rm_fts'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
coreutils-9.7/src/system.h:702:10: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.7/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.7/src/who.c:814:7: call_function: calling 'who' from 'single_binary_main_who'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
coreutils-9.7/src/system.h:753:3: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.7/src/seq.c:459:1: enter_function: entry to 'seq_fast'
coreutils-9.7/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:489:10: branch_true: ...to here
coreutils-9.7/src/seq.c:494:14: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:496:11: branch_true: ...to here
coreutils-9.7/src/seq.c:498:14: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:499:13: branch_true: ...to here
coreutils-9.7/src/seq.c:499:13: call_function: calling 'write_error' from 'seq_fast'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
coreutils-9.7/src/system.h:754:3: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.7/src/seq.c:459:1: enter_function: entry to 'seq_fast'
coreutils-9.7/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:489:10: branch_true: ...to here
coreutils-9.7/src/seq.c:494:14: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:496:11: branch_true: ...to here
coreutils-9.7/src/seq.c:498:14: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:499:13: branch_true: ...to here
coreutils-9.7/src/seq.c:499:13: call_function: calling 'write_error' from 'seq_fast'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def494]
coreutils-9.7/src/tail.c:426:7: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
coreutils-9.7/src/tail.c:426:7: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
coreutils-9.7/src/tail.c:548:26: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)bufsize)'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1955:10: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1956:15: branch_false: ...to here
coreutils-9.7/src/tail.c:1955:12: branch_true: following 'true' branch...
coreutils-9.7/src/tail.c:1957:28: branch_true: ...to here
coreutils-9.7/src/tail.c:1955:12: branch_true: following 'true' branch (when 'start_pos != -1')...
coreutils-9.7/src/tail.c:1958:38: branch_true: ...to here
coreutils-9.7/src/tail.c:1955:12: branch_true: following 'true' branch (when 'start_pos < end_pos')...
coreutils-9.7/src/tail.c:1960:11: branch_true: ...to here
coreutils-9.7/src/tail.c:1961:14: branch_true: following 'true' branch (when 'end_pos != 0')...
coreutils-9.7/src/tail.c:1962:20: branch_true: ...to here
coreutils-9.7/src/tail.c:1962:20: call_function: calling 'file_lines' from 'tail_lines'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
coreutils-9.7/src/tail.c:646:9: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8216)'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
coreutils-9.7/src/tail.c:651:16: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
coreutils-9.7/src/tail.c:651:16: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
coreutils-9.7/src/tail.c:695:19: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
coreutils-9.7/src/tail.c:695:19: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
coreutils-9.7/src/tail.c:703:7: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
coreutils-9.7/src/tail.c:785:9: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8208)'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
coreutils-9.7/src/tail.c:790:16: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
coreutils-9.7/src/tail.c:790:16: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
coreutils-9.7/src/tail.c:822:21: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
coreutils-9.7/src/tail.c:822:21: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
coreutils-9.7/src/tail.c:831:7: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
coreutils-9.7/src/tail.c:849:8: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
Error: CPPCHECK_WARNING (CWE-758): [#def510]
coreutils-9.7/src/tail.c:2424: warning[objectIndex]: The address of variable 'dummy_stdin' might be accessed at non-zero index.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
coreutils-9.7/src/tee.c:212:7: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:226:1: enter_function: entry to 'tee_files'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:281:10: branch_true: following 'true' branch (when 'n_outputs != 0')...
coreutils-9.7/src/tee.c:283:10: branch_true: ...to here
coreutils-9.7/src/tee.c:283:10: branch_true: following 'true' branch...
coreutils-9.7/src/tee.c:290:14: branch_true: following 'true' branch...
coreutils-9.7/src/tee.c:292:15: branch_true: ...to here
coreutils-9.7/src/tee.c:293:19: call_function: calling 'fail_output' from 'tee_files'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
coreutils-9.7/src/tee.c:250:20: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(nfiles + 1), 8)'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:250:20: throw: if 'xnmalloc' throws an exception...
coreutils-9.7/src/tee.c:250:20: danger: 'xnmalloc((long unsigned int)(nfiles + 1), 8)' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
coreutils-9.7/src/tee.c:252:3: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(nfiles + 1), 8)'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:254:23: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.7/src/tee.c:252:3: danger: 'xnmalloc((long unsigned int)(nfiles + 1), 8)' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
coreutils-9.7/src/tee.c:254:23: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:254:23: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.7/src/tee.c:254:23: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
coreutils-9.7/src/tee.c:262:25: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.7/src/tee.c:262:37: branch_true: ...to here
coreutils-9.7/src/tee.c:262:25: throw: if 'fopen_safer' throws an exception...
coreutils-9.7/src/tee.c:262:25: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
coreutils-9.7/src/tee.c:267:11: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.7/src/tee.c:262:37: branch_true: ...to here
coreutils-9.7/src/tee.c:263:10: branch_true: following 'true' branch...
coreutils-9.7/src/tee.c:265:14: branch_true: ...to here
coreutils-9.7/src/tee.c:265:14: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:266:25: branch_true: ...to here
coreutils-9.7/src/tee.c:267:11: branch_true: following 'true' branch...
coreutils-9.7/src/tee.c:267:11: branch_true: ...to here
coreutils-9.7/src/tee.c:267:11: throw: if 'quotearg_n_style_colon' throws an exception...
coreutils-9.7/src/tee.c:267:11: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
coreutils-9.7/src/tee.c:275:25: warning[-Wanalyzer-malloc-leak]: leak of 'fopen_safer(*<unknown>, mode_string)'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.7/src/tee.c:262:37: branch_true: ...to here
coreutils-9.7/src/tee.c:262:25: acquire_memory: allocated here
coreutils-9.7/src/tee.c:263:10: branch_false: following 'false' branch...
coreutils-9.7/src/tee.c:274:14: branch_false: ...to here
coreutils-9.7/src/tee.c:274:14: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:275:31: branch_true: ...to here
coreutils-9.7/src/tee.c:275:31: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.7/src/tee.c:275:25: danger: 'fopen_safer(*<unknown>, mode_string)' leaks here; was allocated at [(7)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
coreutils-9.7/src/tee.c:275:31: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.7/src/tee.c:262:37: branch_true: ...to here
coreutils-9.7/src/tee.c:263:10: branch_false: following 'false' branch...
coreutils-9.7/src/tee.c:274:14: branch_false: ...to here
coreutils-9.7/src/tee.c:274:14: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:275:31: branch_true: ...to here
coreutils-9.7/src/tee.c:275:31: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.7/src/tee.c:275:31: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
coreutils-9.7/src/tee.c:286:21: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:281:10: branch_true: following 'true' branch (when 'n_outputs != 0')...
coreutils-9.7/src/tee.c:283:10: branch_true: ...to here
coreutils-9.7/src/tee.c:283:10: branch_true: following 'true' branch...
coreutils-9.7/src/tee.c:286:21: throw: if 'iopoll' throws an exception...
coreutils-9.7/src/tee.c:286:21: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
coreutils-9.7/src/tee.c:316:18: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:281:10: branch_true: following 'true' branch (when 'n_outputs != 0')...
coreutils-9.7/src/tee.c:283:10: branch_true: ...to here
coreutils-9.7/src/tee.c:283:10: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:283:37: branch_true: ...to here
coreutils-9.7/src/tee.c:309:10: branch_false: following 'false' branch...
coreutils-9.7/src/tee.c:309:10: branch_false: ...to here
coreutils-9.7/src/tee.c:316:18: throw: if 'fwrite_wait' throws an exception...
coreutils-9.7/src/tee.c:316:18: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
coreutils-9.7/src/temp-stream.c:101:15: warning[-Wanalyzer-malloc-leak]: leak of 'realloc(tempbuf, tempbuf_len)'
coreutils-9.7/src/temp-stream.c:84:1: enter_function: entry to 'temp_stream'
coreutils-9.7/src/temp-stream.c:88:6: branch_true: following 'true' branch...
coreutils-9.7/src/temp-stream.c:88:6: branch_true: ...to here
coreutils-9.7/src/temp-stream.c:95:28: call_function: inlined call to 'rpl_realloc' from 'temp_stream'
coreutils-9.7/src/temp-stream.c:95:14: branch_false: following 'false' branch...
coreutils-9.7/src/temp-stream.c:101:15: branch_false: ...to here
coreutils-9.7/src/temp-stream.c:101:15: throw: if 'path_search' throws an exception...
coreutils-9.7/src/temp-stream.c:101:15: danger: 'realloc(tempbuf, tempbuf_len)' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def522]
coreutils-9.7/src/test.c:90:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/src/test.c:811:1: enter_function: entry to 'main'
coreutils-9.7/src/test.c:856:9: call_function: calling 'test_syntax_error' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
coreutils-9.7/src/tr.c:438:17: warning[-Wanalyzer-malloc-leak]: leak of 'es.s'
coreutils-9.7/src/tr.c:1677:1: enter_function: entry to 'main'
coreutils-9.7/src/tr.c:1737:6: branch_false: following 'false' branch (when 'min_operands <= non_option_args')...
coreutils-9.7/src/tr.c:1753:6: branch_false: ...to here
coreutils-9.7/src/tr.c:1753:6: branch_false: following 'false' branch (when 'max_operands >= non_option_args')...
coreutils-9.7/src/tr.c:1763:3: call_function: inlined call to 'spec_init' from 'main'
coreutils-9.7/src/tr.c:1764:8: call_function: calling 'parse_str' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
coreutils-9.7/src/tsort.c:106:14: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.7/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.7/src/tsort.c:545:6: branch_false: following 'false' branch...
coreutils-9.7/src/tsort.c:551:3: branch_false: ...to here
coreutils-9.7/src/tsort.c:551:3: call_function: calling 'tsort' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
coreutils-9.7/src/tsort.c:440:22: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.7/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.7/src/tsort.c:545:6: branch_false: following 'false' branch...
coreutils-9.7/src/tsort.c:551:3: branch_false: ...to here
coreutils-9.7/src/tsort.c:551:3: call_function: calling 'tsort' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
coreutils-9.7/src/tsort.c:443:3: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.7/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.7/src/tsort.c:545:6: branch_false: following 'false' branch...
coreutils-9.7/src/tsort.c:551:3: branch_false: ...to here
coreutils-9.7/src/tsort.c:551:3: call_function: calling 'tsort' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
coreutils-9.7/src/tsort.c:450:20: warning[-Wanalyzer-malloc-leak]: leak of 'j'
coreutils-9.7/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.7/src/tsort.c:545:6: branch_false: following 'false' branch...
coreutils-9.7/src/tsort.c:551:3: branch_false: ...to here
coreutils-9.7/src/tsort.c:551:3: call_function: calling 'tsort' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
coreutils-9.7/src/unexpand.c:145:5: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc((long int)((long unsigned int)max_column_width * 32))'
coreutils-9.7/src/unexpand.c:124:6: branch_false: following 'false' branch...
coreutils-9.7/src/unexpand.c:127:3: branch_false: ...to here
coreutils-9.7/src/unexpand.c:144:6: branch_true: following 'true' branch...
coreutils-9.7/src/unexpand.c:145:5: branch_true: ...to here
coreutils-9.7/src/unexpand.c:145:5: throw: if 'print_bom' throws an exception...
coreutils-9.7/src/unexpand.c:145:5: danger: 'ximalloc((long int)((long unsigned int)max_column_width * 32))' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
coreutils-9.7/src/users.c:53:11: warning[-Wanalyzer-malloc-leak]: leak of 'xinmalloc(n, 8)'
coreutils-9.7/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.7/src/users.c:53:11: branch_true: ...to here
coreutils-9.7/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.7/src/users.c:57:26: throw: if 'extract_trimmed_name' throws an exception...
coreutils-9.7/src/users.c:53:11: danger: 'xinmalloc(n, 8)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
coreutils-9.7/src/users.c:59:12: warning[-Wanalyzer-malloc-leak]: leak of 'extract_trimmed_name(this)'
coreutils-9.7/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.7/src/users.c:53:11: branch_true: ...to here
coreutils-9.7/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.7/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.7/src/users.c:53:11: branch_true: ...to here
coreutils-9.7/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.7/src/users.c:57:26: throw: if 'extract_trimmed_name' throws an exception...
coreutils-9.7/src/users.c:59:12: danger: 'extract_trimmed_name(this)' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
coreutils-9.7/src/users.c:65:3: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.7/src/users.c:53:11: branch_true: ...to here
coreutils-9.7/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.7/src/users.c:51:10: branch_false: following 'false' branch (when 'n == 0')...
coreutils-9.7/src/users.c:65:3: branch_false: ...to here
coreutils-9.7/src/users.c:65:3: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
coreutils-9.7/src/users.c:65:3: warning[-Wanalyzer-malloc-leak]: leak of 'xinmalloc(n, 8)'
coreutils-9.7/src/users.c:65:3: throw: if 'qsort' throws an exception...
coreutils-9.7/src/users.c:65:3: danger: 'xinmalloc(n, 8)' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
coreutils-9.7/src/wc.c:664:29: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.7/src/wc.c:722:1: enter_function: entry to 'main'
coreutils-9.7/src/wc.c:806:6: branch_false: following 'false' branch (when 'files_from' is NULL)...
coreutils-9.7/src/wc.c:856:16: branch_false: ...to here
coreutils-9.7/src/wc.c:858:12: acquire_memory: allocated here
coreutils-9.7/src/wc.c:861:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.7/src/wc.c:864:13: branch_false: ...to here
coreutils-9.7/src/wc.c:864:13: call_function: calling 'get_input_fstatus' from 'main'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
coreutils-9.7/src/wc.c:664:29: warning[-Wanalyzer-malloc-leak]: leak of 'get_input_fstatus(nfiles, files)'
coreutils-9.7/src/wc.c:722:1: enter_function: entry to 'single_binary_main_wc'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:861:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.7/src/wc.c:864:13: branch_false: ...to here
coreutils-9.7/src/wc.c:864:13: call_function: calling 'get_input_fstatus' from 'single_binary_main_wc'
coreutils-9.7/src/wc.c:864:13: return_function: returning to 'single_binary_main_wc' from 'get_input_fstatus'
coreutils-9.7/src/wc.c:873:32: throw: if 'argv_iter' throws an exception...
coreutils-9.7/src/wc.c:664:29: danger: 'get_input_fstatus(nfiles, files)' leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def535]
coreutils-9.7/src/wc.c:835:28: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_resource: opened here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:835:28: throw: if 'physmem_available' throws an exception...
coreutils-9.7/src/wc.c:835:28: danger: 'stream' leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
coreutils-9.7/src/wc.c:835:28: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_memory: allocated here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:835:28: throw: if 'physmem_available' throws an exception...
coreutils-9.7/src/wc.c:835:28: danger: 'stream' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def537]
coreutils-9.7/src/wc.c:838:11: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_resource: opened here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:838:11: branch_true: ...to here
coreutils-9.7/src/wc.c:838:11: throw: if 'readtokens0_init' throws an exception...
coreutils-9.7/src/wc.c:838:11: danger: 'stream' leaks here; was opened at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
coreutils-9.7/src/wc.c:838:11: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_memory: allocated here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:838:11: branch_true: ...to here
coreutils-9.7/src/wc.c:838:11: throw: if 'readtokens0_init' throws an exception...
coreutils-9.7/src/wc.c:838:11: danger: 'stream' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def539]
coreutils-9.7/src/wc.c:839:17: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_resource: opened here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:838:11: branch_true: ...to here
coreutils-9.7/src/wc.c:839:17: throw: if 'readtokens0' throws an exception...
coreutils-9.7/src/wc.c:839:17: danger: 'stream' leaks here; was opened at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
coreutils-9.7/src/wc.c:839:17: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_memory: allocated here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:838:11: branch_true: ...to here
coreutils-9.7/src/wc.c:839:17: throw: if 'readtokens0' throws an exception...
coreutils-9.7/src/wc.c:839:17: danger: 'stream' leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def541]
coreutils-9.7/src/wc.c:850:16: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_resource: opened here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:850:16: throw: if 'argv_iter_init_stream' throws an exception...
coreutils-9.7/src/wc.c:850:16: danger: 'stream' leaks here; was opened at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
coreutils-9.7/src/wc.c:850:16: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_memory: allocated here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:850:16: throw: if 'argv_iter_init_stream' throws an exception...
coreutils-9.7/src/wc.c:850:16: danger: 'stream' leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
coreutils-9.7/src/wc.c:873:32: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.7/src/wc.c:722:1: enter_function: entry to 'single_binary_main_wc'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:850:16: acquire_memory: allocated here
coreutils-9.7/src/wc.c:861:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.7/src/wc.c:864:13: branch_false: ...to here
coreutils-9.7/src/wc.c:864:13: call_function: calling 'get_input_fstatus' from 'single_binary_main_wc'
coreutils-9.7/src/wc.c:864:13: return_function: returning to 'single_binary_main_wc' from 'get_input_fstatus'
coreutils-9.7/src/wc.c:873:32: throw: if 'argv_iter' throws an exception...
coreutils-9.7/src/wc.c:873:32: danger: 'ai' leaks here; was allocated at [(8)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/7)
Error: COMPILER_WARNING: [#def544]
coreutils-9.7/src/wc_avx2.c:32:11: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
Error: COMPILER_WARNING: [#def545]
coreutils-9.7/src/wc_avx2.c:32:22: note[note]: called from here
Error: COMPILER_WARNING: [#def546]
coreutils-9.7/src/wc_avx2.c:46:31: note[note]: called from here
Error: COMPILER_WARNING: [#def547]
coreutils-9.7/src/wc_avx2.c:47:30: note[note]: called from here
Error: COMPILER_WARNING: [#def548]
coreutils-9.7/src/wc_avx2.c:48:23: note[note]: called from here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
coreutils-9.7/src/who.c:250:15: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.7/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.7/src/who.c:814:7: call_function: calling 'who' from 'single_binary_main_who'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
coreutils-9.7/src/who.c:390:25: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.7/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.7/src/who.c:814:7: call_function: calling 'who' from 'single_binary_main_who'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
coreutils-9.7/src/who.c:404:25: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.7/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.7/src/who.c:814:7: call_function: calling 'who' from 'single_binary_main_who'
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-198.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 | coreutils-9.7-6.fc43 |
| store-results-to | /tmp/tmpii1bet1g/coreutils-9.7-6.fc43.tar.xz |
| time-created | 2026-01-08 15:48:05 |
| time-finished | 2026-01-08 15:54:10 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpii1bet1g/coreutils-9.7-6.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpii1bet1g/coreutils-9.7-6.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |