coreutils-9.5-10.fc42
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.5-build/coreutils-9.5/src/cp.c:26: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/cp.c: scope_hint: In function 'decode_preserve_arg'
coreutils-9.5-build/coreutils-9.5/lib/argmatch.h:108:15: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.5-build/coreutils-9.5/src/cp.c:922:13: note: in expansion of macro 'XARGMATCH'
coreutils-9.5-build/coreutils-9.5/src/cp.c:922:13: note: in expansion of macro 'XARGMATCH'
coreutils-9.5-build/coreutils-9.5/src/cp.c:922:13: note: in expansion of macro 'XARGMATCH'
coreutils-9.5-build/coreutils-9.5/src/cp.c:922:13: note: in expansion of macro 'XARGMATCH'
coreutils-9.5-build/coreutils-9.5/src/cp.c:922:13: note: in expansion of macro 'XARGMATCH'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
coreutils-9.5-build/coreutils-9.5/lib/canon-host.c: scope_hint: In function 'canon_host_r'
coreutils-9.5-build/coreutils-9.5/lib/canon-host.c:75:27: warning[-Wanalyzer-malloc-leak]: leak of 'canon_host_r(host, & last_cherror)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
coreutils-9.5-build/coreutils-9.5/lib/canon-host.c:83:10: warning[-Wanalyzer-malloc-leak]: leak of 'canon_host_r(host, & last_cherror)'
Error: COMPILER_WARNING (CWE-562): [#def5]
coreutils-9.5-build/coreutils-9.5/lib/careadlinkat.c: scope_hint: In function 'careadlinkat.constprop'
coreutils-9.5-build/coreutils-9.5/lib/careadlinkat.c:180:10: warning[-Wreturn-local-addr]: function may return address of local variable
coreutils-9.5-build/coreutils-9.5/lib/careadlinkat.c:179:8: note: declared here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
coreutils-9.5-build/coreutils-9.5/lib/exclude.c: scope_hint: In function 'add_exclude'
coreutils-9.5-build/coreutils-9.5/lib/exclude.c:579:20: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(pattern)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
coreutils-9.5-build/coreutils-9.5/lib/exclude.c: scope_hint: In function 'add_exclude_fp'
coreutils-9.5-build/coreutils-9.5/lib/exclude.c:604:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'buf'
coreutils-9.5-build/coreutils-9.5/lib/exclude.c:30: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/lib/exclude.c:47: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/lib/exclude.c:600:20: note: in expansion of macro 'getc'
coreutils-9.5-build/coreutils-9.5/lib/exclude.c: scope_hint: In function 'add_exclude_fp'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
coreutils-9.5-build/coreutils-9.5/lib/file-set.c: scope_hint: In function 'record_file'
coreutils-9.5-build/coreutils-9.5/lib/file-set.c:43:8: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
coreutils-9.5-build/coreutils-9.5/lib/file-set.c:49:8: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
coreutils-9.5-build/coreutils-9.5/lib/fts.c:225: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/lib/fts-cycle.c: scope_hint: In function 'enter_dir'
coreutils-9.5-build/coreutils-9.5/lib/fts-cycle.c:94:10: warning[-Wanalyzer-malloc-leak]: leak of 'ad'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:1245:22: note: in expansion of macro 'ISSET'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:1307:34: note: in expansion of macro 'fts_opendir'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:1330:19: note: in expansion of macro 'LEAVE_DIR'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:1330:19: note: in expansion of macro 'LEAVE_DIR'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:1330:19: note: in expansion of macro 'LEAVE_DIR'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
coreutils-9.5-build/coreutils-9.5/lib/fts.c: scope_hint: In function 'filesystem_type'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:714:12: warning[-Wanalyzer-malloc-leak]: leak of 't2'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:743:13: note: in expansion of macro 'fts_assert'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:743:13: note: in expansion of macro 'fts_assert'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
coreutils-9.5-build/coreutils-9.5/lib/fts.c: scope_hint: In function 'fts_build'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:1307:16: warning[-Wanalyzer-malloc-leak]: leak of '**sp.fts_cur.fts_dirp'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:1245:22: note: in expansion of macro 'ISSET'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:1307:34: note: in expansion of macro 'fts_opendir'
coreutils-9.5-build/coreutils-9.5/lib/fts.c:1307:34: note: in expansion of macro 'fts_opendir'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
coreutils-9.5-build/coreutils-9.5/lib/ialloc.h:60:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s + 1)'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'ximalloc'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'ximalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
coreutils-9.5-build/coreutils-9.5/lib/ialloc.h:60:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s)'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'ximalloc'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'ximalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
coreutils-9.5-build/coreutils-9.5/lib/ialloc.h:106:10: warning[-Wanalyzer-malloc-leak]: leak of 'xicalloc(s, 1)'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xicalloc'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xicalloc'
Error: CPPCHECK_WARNING (CWE-664): [#def16]
coreutils-9.5-build/coreutils-9.5/lib/long-options.c:76: error[va_end_missing]: va_list 'authors' was opened but not closed by va_end().
Error: CPPCHECK_WARNING (CWE-664): [#def17]
coreutils-9.5-build/coreutils-9.5/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): [#def18]
coreutils-9.5-build/coreutils-9.5/src/unexpand.c:43: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/lib/mbfile.h: scope_hint: In function 'unexpand'
coreutils-9.5-build/coreutils-9.5/lib/mbfile.h:85:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(max_column_width * 32)'
coreutils-9.5-build/coreutils-9.5/src/unexpand.c:126:3: note: in expansion of macro 'mbf_init'
coreutils-9.5-build/coreutils-9.5/src/unexpand.c:186:13: note: in expansion of macro 'mbf_getc'
coreutils-9.5-build/coreutils-9.5/src/unexpand.c:186:13: note: in expansion of macro 'mbf_getc'
coreutils-9.5-build/coreutils-9.5/src/unexpand.c:189:17: note: in expansion of macro 'mbf_init'
Error: CPPCHECK_WARNING (CWE-758): [#def19]
coreutils-9.5-build/coreutils-9.5/lib/mini-gmp.c:1513: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def20]
coreutils-9.5-build/coreutils-9.5/lib/mini-gmp.c:1635: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-562): [#def21]
coreutils-9.5-build/coreutils-9.5/lib/mktime.c:262: error[returnDanglingLifetime]: Returning pointer to local variable 'x' that will be invalid when returning.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
coreutils-9.5-build/coreutils-9.5/lib/randint.c: scope_hint: In function 'randint_new'
coreutils-9.5-build/coreutils-9.5/lib/randint.c:76:10: warning[-Wanalyzer-malloc-leak]: leak of 'randint_new(randread_new(name, bytes_bound))'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
coreutils-9.5-build/coreutils-9.5/lib/randperm.c: scope_hint: In function 'sparse_swap'
coreutils-9.5-build/coreutils-9.5/lib/randperm.c:146:1: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
coreutils-9.5-build/coreutils-9.5/lib/randperm.c:146:1: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
coreutils-9.5-build/coreutils-9.5/separate/lib/sys/stat.h:54: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/lib/read-file.c:23: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/lib/read-file.c: scope_hint: In function 'fread_file'
coreutils-9.5-build/coreutils-9.5/lib/read-file.c:62:57: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(rpl_fopen(filename, mode), flags, length)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
coreutils-9.5-build/coreutils-9.5/lib/read-file.c:82:6: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(rpl_fopen(filename, mode), flags, length)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
coreutils-9.5-build/coreutils-9.5/lib/read-file.c:104:30: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(rpl_fopen(filename, mode), flags, length)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
coreutils-9.5-build/coreutils-9.5/lib/read-file.c:142:43: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(rpl_fopen(filename, mode), flags, length)'
coreutils-9.5-build/coreutils-9.5/lib/read-file.c: scope_hint: In function 'fread_file'
coreutils-9.5-build/coreutils-9.5/lib/read-file.c: scope_hint: In function 'fread_file'
coreutils-9.5-build/coreutils-9.5/lib/read-file.c:38: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
coreutils-9.5-build/coreutils-9.5/src/tsort.c:32: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/tsort.c: scope_hint: In function 'tsort'
coreutils-9.5-build/coreutils-9.5/lib/stdio--.h:30:18: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.5-build/coreutils-9.5/src/tsort.c:440:22: note: in expansion of macro 'freopen'
coreutils-9.5-build/coreutils-9.5/src/tsort.c: scope_hint: In function 'tsort'
coreutils-9.5-build/coreutils-9.5/src/tsort.c:440:22: note: in expansion of macro 'freopen'
coreutils-9.5-build/coreutils-9.5/src/tsort.c:440:22: note: in expansion of macro 'freopen'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
coreutils-9.5-build/coreutils-9.5/lib/time_rz.c: scope_hint: In function 'tzfree'
coreutils-9.5-build/coreutils-9.5/lib/time_rz.c:68:64: warning[-Wanalyzer-malloc-leak]: leak of 'tzalloc(getenv("TZ"))'
coreutils-9.5-build/coreutils-9.5/lib/time_rz.c:27: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/lib/time_rz.c:29: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
coreutils-9.5-build/coreutils-9.5/lib/time_rz.c: scope_hint: In function 'mktime_z'
coreutils-9.5-build/coreutils-9.5/lib/time_rz.c:211:12: warning[-Wanalyzer-malloc-leak]: leak of 'set_tz(tz)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xmalloc'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(n)'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:22: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xmalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(s)'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xmalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xcalloc'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:298:10: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(s, 1)'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xcalloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xmemdup'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:314:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmemdup(string, strlen(string) + 1)'
coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xmemdup'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_decode'
coreutils-9.5-build/coreutils-9.5/src/basenc.c:239:22: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(4200)'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
coreutils-9.5-build/coreutils-9.5/src/basenc.c:1158:31: note: in expansion of macro 'BASE_LENGTH'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
coreutils-9.5-build/coreutils-9.5/src/basenc.c:1158:31: note: in expansion of macro 'BASE_LENGTH'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
coreutils-9.5-build/coreutils-9.5/src/system.h:254: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/basenc.c:25: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode'
coreutils-9.5-build/coreutils-9.5/src/basenc.c:1107:52: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)base_length(30720))'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
coreutils-9.5-build/coreutils-9.5/src/basenc.c:1122:11: note: in expansion of macro 'feof'
coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
coreutils-9.5-build/coreutils-9.5/src/system.h:254: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/basenc.c:25: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode'
coreutils-9.5-build/coreutils-9.5/src/basenc.c:1107:52: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(40960)'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
coreutils-9.5-build/coreutils-9.5/src/basenc.c:1122:11: note: in expansion of macro 'feof'
coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
coreutils-9.5-build/coreutils-9.5/src/system.h:254: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/basenc.c:25: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode'
coreutils-9.5-build/coreutils-9.5/src/basenc.c:1107:52: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(49152)'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
coreutils-9.5-build/coreutils-9.5/src/basenc.c:1122:11: note: in expansion of macro 'feof'
coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_decode'
coreutils-9.5-build/coreutils-9.5/src/basenc.c:1158:59: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(3072)'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_decode'
coreutils-9.5-build/coreutils-9.5/src/basenc.c:1158:59: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(5120)'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
coreutils-9.5-build/coreutils-9.5/src/chown-core.c: scope_hint: In function 'uid_to_name'
coreutils-9.5-build/coreutils-9.5/src/chown-core.c:84:19: warning[-Wanalyzer-malloc-leak]: leak of 'uid_to_name(*file_stats.st_uid)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
coreutils-9.5-build/coreutils-9.5/src/chown-core.c: scope_hint: In function 'gid_to_name'
coreutils-9.5-build/coreutils-9.5/src/chown-core.c:95:19: warning[-Wanalyzer-malloc-leak]: leak of 'gid_to_name(*file_stats.st_gid)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
coreutils-9.5-build/coreutils-9.5/src/chown-core.c:106:28: warning[-Wanalyzer-malloc-leak]: leak of 'gid_to_name(*file_stats.st_gid)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
coreutils-9.5-build/coreutils-9.5/src/chown-core.c: scope_hint: In function 'uid_to_name'
coreutils-9.5-build/coreutils-9.5/src/chown-core.c:117:28: warning[-Wanalyzer-malloc-leak]: leak of 'uid_to_name(*file_stats.st_uid)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
coreutils-9.5-build/coreutils-9.5/src/chown-core.c: scope_hint: In function 'describe_change'
coreutils-9.5-build/coreutils-9.5/src/chown-core.c:171:3: warning[-Wanalyzer-malloc-leak]: leak of 'user_group_str(<unknown>, <unknown>)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
coreutils-9.5-build/coreutils-9.5/src/chown-core.c:179:10: warning[-Wanalyzer-malloc-leak]: leak of 'user_group_str(<unknown>, <unknown>)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
coreutils-9.5-build/coreutils-9.5/src/chroot.c: scope_hint: In function 'parse_additional_groups'
coreutils-9.5-build/coreutils-9.5/src/chroot.c:147:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'gids'
coreutils-9.5-build/coreutils-9.5/src/chroot.c:306:11: note: in expansion of macro 'uid_set'
coreutils-9.5-build/coreutils-9.5/src/chroot.c:28: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/lib/ignore-value.h:46:45: note: in definition of macro 'ignore_value'
coreutils-9.5-build/coreutils-9.5/lib/ignore-value.h:46:45: note: in definition of macro 'ignore_value'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
coreutils-9.5-build/coreutils-9.5/src/cp-hash.c: scope_hint: In function 'remember_copied'
coreutils-9.5-build/coreutils-9.5/src/cp-hash.c:126:6: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
coreutils-9.5-build/coreutils-9.5/src/cp-hash.c:135:6: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
coreutils-9.5-build/coreutils-9.5/src/csplit.c: scope_hint: In function 'get_new_buffer'
coreutils-9.5-build/coreutils-9.5/src/csplit.c:418:10: warning[-Wanalyzer-malloc-leak]: leak of 'get_new_buffer(bytes_wanted)'
coreutils-9.5-build/coreutils-9.5/src/system.h:29: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/csplit.c:27: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
coreutils-9.5-build/coreutils-9.5/src/csplit.c: scope_hint: In function 'main'
coreutils-9.5-build/coreutils-9.5/src/csplit.c:1377:30: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(__real__ <unknown>)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
coreutils-9.5-build/coreutils-9.5/src/date.c: scope_hint: In function 'main'
coreutils-9.5-build/coreutils-9.5/src/date.c:316:32: warning[-Wanalyzer-malloc-leak]: leak of 'adjust_resolution(format)'
Error: CPPCHECK_WARNING (CWE-457): [#def54]
coreutils-9.5-build/coreutils-9.5/src/digest.c:1148: error[uninitvar]: Uninitialized variable: bin_buffer_unaligned
Error: CPPCHECK_WARNING (CWE-457): [#def55]
coreutils-9.5-build/coreutils-9.5/src/digest.c:1348: error[uninitvar]: Uninitialized variable: bin_buffer_unaligned
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
coreutils-9.5-build/coreutils-9.5/src/env.c: scope_hint: In function 'parse_signal_action_params.part.0'
coreutils-9.5-build/coreutils-9.5/src/env.c:567:10: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
coreutils-9.5-build/coreutils-9.5/src/env.c:570:14: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
coreutils-9.5-build/coreutils-9.5/src/env.c: scope_hint: In function 'parse_block_signal_params.part.0'
coreutils-9.5-build/coreutils-9.5/src/env.c:656:10: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
coreutils-9.5-build/coreutils-9.5/src/env.c:661:14: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
Error: CPPCHECK_WARNING (CWE-758): [#def60]
coreutils-9.5-build/coreutils-9.5/src/factor.c:466: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-457): [#def61]
coreutils-9.5-build/coreutils-9.5/src/factor.c:1392: error[uninitvar]: Uninitialized variable: q
Error: CPPCHECK_WARNING (CWE-457): [#def62]
coreutils-9.5-build/coreutils-9.5/src/factor.c:1679: error[uninitvar]: Uninitialized variable: t
Error: CPPCHECK_WARNING (CWE-476): [#def63]
coreutils-9.5-build/coreutils-9.5/src/head.c:382: warning[nullPointer]: Possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def64]
coreutils-9.5-build/coreutils-9.5/src/head.c:385: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
coreutils-9.5-build/coreutils-9.5/src/hostname.c: scope_hint: In function 'single_binary_main_hostname'
coreutils-9.5-build/coreutils-9.5/src/hostname.c:108:7: warning[-Wanalyzer-malloc-leak]: leak of 'xgethostname()'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
coreutils-9.5-build/coreutils-9.5/src/libstdbuf.c: scope_hint: In function 'apply_mode'
coreutils-9.5-build/coreutils-9.5/src/libstdbuf.c:128:6: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
coreutils-9.5-build/coreutils-9.5/src/ls.c: scope_hint: In function 'init_column_info'
coreutils-9.5-build/coreutils-9.5/src/ls.c:5359:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
coreutils-9.5-build/coreutils-9.5/src/ls.c:5371:1: warning[-Wanalyzer-malloc-leak]: leak of 'p'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
coreutils-9.5-build/coreutils-9.5/src/nohup.c: scope_hint: In function 'single_binary_main_nohup'
coreutils-9.5-build/coreutils-9.5/src/nohup.c:164:18: warning[-Wanalyzer-malloc-leak]: leak of 'in_home'
coreutils-9.5-build/coreutils-9.5/src/system.h:73: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/nohup.c:24: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-415): [#def70]
coreutils-9.5-build/coreutils-9.5/src/numfmt.c:863: error[doubleFree]: Memory pointed to by 't_string' is freed twice.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
coreutils-9.5-build/coreutils-9.5/src/paste.c: scope_hint: In function 'paste_parallel'
coreutils-9.5-build/coreutils-9.5/src/paste.c:180:20: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(nfiles + 2)'
coreutils-9.5-build/coreutils-9.5/src/paste.c:43: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/system.h:186:30: note: in definition of macro 'STREQ'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
coreutils-9.5-build/coreutils-9.5/src/paste.c:194:25: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc(nfiles + 1, 8)'
coreutils-9.5-build/coreutils-9.5/src/system.h:186:30: note: in definition of macro 'STREQ'
coreutils-9.5-build/coreutils-9.5/src/system.h:186:30: note: in definition of macro 'STREQ'
coreutils-9.5-build/coreutils-9.5/src/system.h:186:30: note: in definition of macro 'STREQ'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
coreutils-9.5-build/coreutils-9.5/src/pinky.c: scope_hint: In function 'print_entry'
coreutils-9.5-build/coreutils-9.5/src/pinky.c:312:1: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.5-build/coreutils-9.5/src/pinky.c:529:1: note: in expansion of macro 'main'
coreutils-9.5-build/coreutils-9.5/src/pinky.c:30: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/pinky.c:450:11: note: in expansion of macro 'IS_USER_PROCESS'
coreutils-9.5-build/coreutils-9.5/lib/dirname.h:29: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/system.h:257: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/pinky.c:26: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/lib/filename.h:93:23: note: in definition of macro 'ISSLASH'
coreutils-9.5-build/coreutils-9.5/src/pinky.c:211:7: note: in expansion of macro 'IS_ABSOLUTE_FILE_NAME'
coreutils-9.5-build/coreutils-9.5/src/system.h:254: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/pinky.c:298:7: note: in expansion of macro 'fputc'
coreutils-9.5-build/coreutils-9.5/src/pinky.c:311:3: note: in expansion of macro 'putchar'
coreutils-9.5-build/coreutils-9.5/src/pinky.c: scope_hint: In function 'print_entry'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def74]
coreutils-9.5-build/coreutils-9.5/src/ptx.c: scope_hint: In function 'digest_word_file'
coreutils-9.5-build/coreutils-9.5/src/ptx.c:733:3: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
coreutils-9.5-build/coreutils-9.5/src/ptx.c:1795:1: note: in expansion of macro 'main'
coreutils-9.5-build/coreutils-9.5/src/ptx.c: scope_hint: In function 'digest_word_file'
coreutils-9.5-build/coreutils-9.5/single/lib/stdlib.h:36: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/system.h:82: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of 'qsort' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
coreutils-9.5-build/coreutils-9.5/src/seq.c: scope_hint: In function 'seq_fast'
coreutils-9.5-build/coreutils-9.5/src/seq.c:485:11: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(inc_size + 1)'
Error: CPPCHECK_WARNING (CWE-457): [#def76]
coreutils-9.5-build/coreutils-9.5/src/sort.c:1160: warning[uninitvar]: Uninitialized variable: pid
Error: CPPCHECK_WARNING (CWE-457): [#def77]
coreutils-9.5-build/coreutils-9.5/src/sort.c:4776: warning[uninitvar]: Uninitialized variable: buf.buf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
coreutils-9.5-build/coreutils-9.5/src/df.c:28: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/df.c: scope_hint: In function 'decode_output_arg'
coreutils-9.5-build/coreutils-9.5/src/system.h:186:22: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.5-build/coreutils-9.5/src/df.c:453:15: note: in expansion of macro 'STREQ'
coreutils-9.5-build/coreutils-9.5/src/df.c:453:15: note: in expansion of macro 'STREQ'
coreutils-9.5-build/coreutils-9.5/lib/assure.h:23: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/df.c:29: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/df.c:426:3: note: in expansion of macro 'affirm'
coreutils-9.5-build/coreutils-9.5/src/df.c:453:15: note: in expansion of macro 'STREQ'
coreutils-9.5-build/coreutils-9.5/src/df.c:453:15: note: in expansion of macro 'STREQ'
Error: CPPCHECK_WARNING (CWE-758): [#def79]
coreutils-9.5-build/coreutils-9.5/src/tail.c:2402: warning[objectIndex]: The address of variable 'dummy_stdin' might be accessed at non-zero index.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
coreutils-9.5-build/coreutils-9.5/src/tee.c: scope_hint: In function 'tee_files'
coreutils-9.5-build/coreutils-9.5/src/tee.c:256:3: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(nfiles + 1), 8)'
coreutils-9.5-build/coreutils-9.5/lib/gettext.h:26: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/system.h:164: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/tee.c:24: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/tee.c:255:24: note: in expansion of macro '_'
coreutils-9.5-build/coreutils-9.5/src/system.h:740: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:408:28: note: in definition of macro '__gl_error_call'
coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error'
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:471:7: note: in expansion of macro '__gl_error_call'
coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error'
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:409:8: note: in expansion of macro '__gl_error_call1'
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:471:7: note: in expansion of macro '__gl_error_call'
coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error'
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:409:8: note: in expansion of macro '__gl_error_call1'
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:471:7: note: in expansion of macro '__gl_error_call'
coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error'
coreutils-9.5-build/coreutils-9.5/src/tee.c: scope_hint: In function 'tee_files'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
coreutils-9.5-build/coreutils-9.5/src/tee.c:262:37: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(nfiles + 1), 8)'
coreutils-9.5-build/coreutils-9.5/src/tee.c:255:24: note: in expansion of macro '_'
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:408:28: note: in definition of macro '__gl_error_call'
coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error'
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:471:7: note: in expansion of macro '__gl_error_call'
coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error'
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:409:8: note: in expansion of macro '__gl_error_call1'
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:471:7: note: in expansion of macro '__gl_error_call'
coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error'
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:409:8: note: in expansion of macro '__gl_error_call1'
coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:471:7: note: in expansion of macro '__gl_error_call'
coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error'
coreutils-9.5-build/coreutils-9.5/src/tee.c: scope_hint: In function 'tee_files'
Error: CPPCHECK_WARNING (CWE-401): [#def82]
coreutils-9.5-build/coreutils-9.5/src/temp-stream.c:96: error[memleakOnRealloc]: Common realloc mistake: 'tempbuf' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
coreutils-9.5-build/coreutils-9.5/src/tsort.c:422:6: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.5-build/coreutils-9.5/src/tsort.c: scope_hint: In function 'tsort'
coreutils-9.5-build/coreutils-9.5/src/tsort.c: scope_hint: In function 'tsort'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
coreutils-9.5-build/coreutils-9.5/src/tsort.c:443:3: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.5-build/coreutils-9.5/src/tsort.c: scope_hint: In function 'tsort'
coreutils-9.5-build/coreutils-9.5/lib/assure.h:23: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/tsort.c:28: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/tsort.c:458:7: note: in expansion of macro 'affirm'
Error: COMPILER_WARNING: [#def85]
coreutils-9.5-build/coreutils-9.5/src/wc_avx2.c: scope_hint: In function 'wc_lines_avx2'
coreutils-9.5-build/coreutils-9.5/src/wc_avx2.c:38:5: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
coreutils-9.5-build/coreutils-9.5/src/who.c: scope_hint: In function 'print_user'
coreutils-9.5-build/coreutils-9.5/src/who.c:432:1: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.5-build/coreutils-9.5/src/who.c:685:1: note: in expansion of macro 'main'
coreutils-9.5-build/coreutils-9.5/lib/dirname.h:29: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/system.h:257: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/src/who.c:31: included_from: Included from here.
coreutils-9.5-build/coreutils-9.5/lib/filename.h:93:23: note: in definition of macro 'ISSLASH'
coreutils-9.5-build/coreutils-9.5/src/who.c:339:7: note: in expansion of macro 'IS_ABSOLUTE_FILE_NAME'
coreutils-9.5-build/coreutils-9.5/src/who.c: scope_hint: In function 'print_user'
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-174.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | coreutils-9.5-10.fc42 |
store-results-to | /tmp/tmppcxxmcb7/coreutils-9.5-10.fc42.tar.xz |
time-created | 2024-11-12 23:44:49 |
time-finished | 2024-11-12 23:51:07 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmppcxxmcb7/coreutils-9.5-10.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmppcxxmcb7/coreutils-9.5-10.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |