Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
crun-HEAD/src/libcrun/criu.c:996:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_189.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:852:17: note: in expansion of macro 'YAJL_IS_ARRAY'
#  994|         if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL)
#  995|           {
#  996|->           inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
#  997|             if (UNLIKELY (inherit_new_net_fd < 0))
#  998|               return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
crun-HEAD/src/libcrun/criu.c:1007:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_210.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:852:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 1005|         if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL)
# 1006|           {
# 1007|->           inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 1008|             if (UNLIKELY (inherit_new_pid_fd < 0))
# 1009|               return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path);

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.1.1
analyzer-version-gcc-analyzer15.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.1.1
diffbase-analyzer-version-gcc-analyzer15.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-98.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250509.165649.g41c6174.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.21-1.20250512094810910083.main.93.g819c2a76
diffbase-store-results-to/tmp/tmp9scx_qp2/crun-1.21-1.20250512094810910083.main.93.g819c2a76.tar.xz
diffbase-time-created2025-05-12 22:08:52
diffbase-time-finished2025-05-12 22:14:18
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp9scx_qp2/crun-1.21-1.20250512094810910083.main.93.g819c2a76.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp9scx_qp2/crun-1.21-1.20250512094810910083.main.93.g819c2a76.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-98.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250509.165649.g41c6174.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namecrun-1.21-1.20250512220125962218.pr1747.98.g8423b837
store-results-to/tmp/tmpw_5frzx2/crun-1.21-1.20250512220125962218.pr1747.98.g8423b837.tar.xz
time-created2025-05-12 22:14:42
time-finished2025-05-12 22:19:28
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpw_5frzx2/crun-1.21-1.20250512220125962218.pr1747.98.g8423b837.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpw_5frzx2/crun-1.21-1.20250512220125962218.pr1747.98.g8423b837.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9