Error: CLANG_WARNING: [#def1] util-linux-2.40-rc1/misc-utils/lsfd.c:76: included_from: Included from here. util-linux-2.40-rc1/include/list.h:55:13: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'prev') # 53| add->next = next; # 54| add->prev = prev; # 55|-> prev->next = add; # 56| } # 57| Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] util-linux-2.40-rc1/include/list.h:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘read_devdrv(&line)’ util-linux-2.40-rc1/misc-utils/lsfd.c: scope_hint: In function ‘read_devices’ util-linux-2.40-rc1/misc-utils/lsfd.c:2331:25: note: in expansion of macro ‘INITIALIZE_COLUMNS’ util-linux-2.40-rc1/misc-utils/lsfd.c:2331:25: note: in expansion of macro ‘INITIALIZE_COLUMNS’ util-linux-2.40-rc1/misc-utils/lsfd.c:2331:25: note: in expansion of macro ‘INITIALIZE_COLUMNS’ util-linux-2.40-rc1/include/list.h:39:24: note: in definition of macro ‘INIT_LIST_HEAD’ util-linux-2.40-rc1/misc-utils/lsfd.c: scope_hint: In function ‘read_devices’ util-linux-2.40-rc1/include/list.h:39:24: note: in definition of macro ‘INIT_LIST_HEAD’ util-linux-2.40-rc1/misc-utils/lsfd.c: scope_hint: In function ‘read_devices’ util-linux-2.40-rc1/include/c.h:22: included_from: Included from here. util-linux-2.40-rc1/misc-utils/lsfd.c:75: included_from: Included from here. # 53| add->next = next; # 54| add->prev = prev; # 55|-> prev->next = add; # 56| } # 57| Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] util-linux-2.40-rc1/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’ util-linux-2.40-rc1/misc-utils/hardlink.c:515:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xmalloc((long unsigned int)n * 8) + (long unsigned int)i * 8’ util-linux-2.40-rc1/misc-utils/hardlink.c: scope_hint: In function ‘get_sorted_xattr_name_table’ # 513| # 514| for (i = 0; i < n; i++) { # 515|-> table[i] = names; # 516| names += strlen(names) + 1; # 517| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] util-linux-2.40-rc1/misc-utils/lsfd.c:1766:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 1764| && (isspace((unsigned char)*next) || *next == ',')) # 1765| next++; # 1766|-> if (*next != '\0') # 1767| parse_pids(next, pids, count); # 1768| } Error: CLANG_WARNING: [#def5] util-linux-2.40-rc1/misc-utils/lslocks.c:244:7: warning[deadcode.DeadStores]: Although the value stored to 'len' is used in the enclosing expression, the value is never actually read from 'len' # 242| return NULL; # 243| # 244|-> if ((len = strlen(path)) >= (sizeof(path) - 2)) # 245| goto out; # 246| Error: GCC_ANALYZER_WARNING (CWE-476): [#def6] util-linux-2.40-rc1/misc-utils/waitpid.c: scope_hint: In function ‘parse_pids’ util-linux-2.40-rc1/misc-utils/waitpid.c:54:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_strings, 4) + i * 4’ util-linux-2.40-rc1/include/strutils.h:51:64: note: in definition of macro ‘strtopid_or_err’ util-linux-2.40-rc1/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’ # 52| # 53| for (size_t i = 0; i < n_strings; i++) # 54|-> pids[i] = strtopid_or_err(strings[i], _("failed to parse pid")); # 55| # 56| return pids; Error: GCC_ANALYZER_WARNING (CWE-476): [#def7] util-linux-2.40-rc1/misc-utils/waitpid.c: scope_hint: In function ‘open_pidfds’ util-linux-2.40-rc1/misc-utils/waitpid.c:64:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_pids, 4)’ util-linux-2.40-rc1/include/strutils.h:51:64: note: in definition of macro ‘strtopid_or_err’ util-linux-2.40-rc1/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’ # 62| # 63| for (size_t i = 0; i < n_pids; i++) { # 64|-> pidfds[i] = pidfd_open(pids[i], 0); # 65| if (pidfds[i] == -1) { # 66| if (allow_exited && errno == ESRCH) {
analyzer-version-clang | 18.1.2 |
analyzer-version-cppcheck | 2.13.0 |
analyzer-version-gcc | 14.0.1 |
analyzer-version-gcc-analyzer | 14.0.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.2 |
diffbase-analyzer-version-cppcheck | 2.13.0 |
diffbase-analyzer-version-gcc | 14.0.1 |
diffbase-analyzer-version-gcc-analyzer | 14.0.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-195.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | util-linux-2.40-13.fc41 |
diffbase-store-results-to | /tmp/tmpi67z3ech/util-linux-2.40-13.fc41.tar.xz |
diffbase-time-created | 2024-04-17 06:29:45 |
diffbase-time-finished | 2024-04-17 06:42:35 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'shellcheck,clang,cppcheck,gcc' '-o' '/tmp/tmpi67z3ech/util-linux-2.40-13.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpi67z3ech/util-linux-2.40-13.fc41.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-195.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | util-linux-2.40-0.9.rc1.fc40 |
store-results-to | /tmp/tmpike9fc66/util-linux-2.40-0.9.rc1.fc40.tar.xz |
time-created | 2024-04-17 06:14:32 |
time-finished | 2024-04-17 06:28:28 |
title | Fixed defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'shellcheck,clang,cppcheck,gcc' '-o' '/tmp/tmpike9fc66/util-linux-2.40-0.9.rc1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpike9fc66/util-linux-2.40-0.9.rc1.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |