Error: GCC_ANALYZER_WARNING (CWE-775): [#def1] nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/sbin/cleanerd/cleanerd.c:83: included_from: Included from here. nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/sbin/cleanerd/cleanerd.c: scope_hint: In function ‘daemonize’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/util.h:13:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/sbin/cleanerd/cleanerd.c:768:21: note: in expansion of macro ‘unlikely’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/util.h:13:45: note: in definition of macro ‘unlikely’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/util.h:13:45: note: in definition of macro ‘unlikely’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/util.h:13:45: note: in definition of macro ‘unlikely’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/util.h:13:45: note: in definition of macro ‘unlikely’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/sbin/cleanerd/cleanerd.c:768:21: note: in expansion of macro ‘unlikely’ # 11| /* likely() and unlikely() macros */ # 12| #define likely(x) __builtin_expect(!!(x), 1) # 13|-> #define unlikely(x) __builtin_expect(!!(x), 0) # 14| # 15| #ifndef BUG Error: GCC_ANALYZER_WARNING (CWE-775): [#def2] nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/util.h:13:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/sbin/cleanerd/cleanerd.c:770:21: note: in expansion of macro ‘unlikely’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/util.h:13:45: note: in definition of macro ‘unlikely’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/util.h:13:45: note: in definition of macro ‘unlikely’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/util.h:13:45: note: in definition of macro ‘unlikely’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/util.h:13:45: note: in definition of macro ‘unlikely’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/util.h:13:45: note: in definition of macro ‘unlikely’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/sbin/cleanerd/cleanerd.c:770:21: note: in expansion of macro ‘unlikely’ # 11| /* likely() and unlikely() macros */ # 12| #define likely(x) __builtin_expect(!!(x), 1) # 13|-> #define unlikely(x) __builtin_expect(!!(x), 0) # 14| # 15| #ifndef BUG Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/lib/gc.c: scope_hint: In function ‘nilfs_toss_vdescs’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/lib/gc.c:502:24: warning[-Wanalyzer-malloc-leak]: leak of ‘ss’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/include/nilfs.h:114:1: note: in expansion of macro ‘NILFS_LOCK_FNS’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/lib/gc.c: scope_hint: In function ‘nilfs_toss_vdescs’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/lib/gc.c: scope_hint: In function ‘nilfs_toss_vdescs’ # 500| n = nilfs_get_snapshot(nilfs, &ss); # 501| if (unlikely(n < 0)) # 502|-> return n; # 503| # 504| last_hit = 0; Error: GCC_ANALYZER_WARNING (CWE-457): [#def4] nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/lib/realpath.c: scope_hint: In function ‘myrealpath’ nilfs-utils-2.2.11-build/nilfs-utils-2.2.11/lib/realpath.c:136:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘path’ # 134| } # 135| memcpy(buf, link_path, n); # 136|-> memcpy(buf + n, path, m + 1); # 137| path = buf; # 138| #endif
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.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-70.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | nilfs-utils-2.2.9-6.fc40 |
diffbase-store-results-to | /tmp/tmpw7hn6iu9/nilfs-utils-2.2.9-6.fc40.tar.xz |
diffbase-time-created | 2024-07-03 16:20:00 |
diffbase-time-finished | 2024-07-03 16:21:34 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpw7hn6iu9/nilfs-utils-2.2.9-6.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpw7hn6iu9/nilfs-utils-2.2.9-6.fc40.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-70.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | nilfs-utils-2.2.11-1.fc41 |
store-results-to | /tmp/tmplsclp_gp/nilfs-utils-2.2.11-1.fc41.tar.xz |
time-created | 2024-07-03 16:21:42 |
time-finished | 2024-07-03 16:22:53 |
title | Newly introduced defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmplsclp_gp/nilfs-utils-2.2.11-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmplsclp_gp/nilfs-utils-2.2.11-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |