Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
crun-HEAD/src/libcrun/criu.c:977:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_173.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:839:17: note: in expansion of macro 'YAJL_IS_ARRAY'
#  975|         if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL)
#  976|           {
#  977|->           inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
#  978|             if (UNLIKELY (inherit_new_net_fd < 0))
#  979|               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:988:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_194.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:839:17: note: in expansion of macro 'YAJL_IS_ARRAY'
#  986|         if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL)
#  987|           {
#  988|->           inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
#  989|             if (UNLIKELY (inherit_new_pid_fd < 0))
#  990|               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-198.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.20250508.104157.g82f0224.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.21-1.20250508154232610289.main.85.gdb82220a
diffbase-store-results-to/tmp/tmpvhh59mqu/crun-1.21-1.20250508154232610289.main.85.gdb82220a.tar.xz
diffbase-time-created2025-05-08 20:34:37
diffbase-time-finished2025-05-08 20:40:56
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpvhh59mqu/crun-1.21-1.20250508154232610289.main.85.gdb82220a.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpvhh59mqu/crun-1.21-1.20250508154232610289.main.85.gdb82220a.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-198.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250508.104157.g82f0224.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namecrun-1.21-1.20250508202724904731.pr1743.87.ge5d2489d
store-results-to/tmp/tmpzedhklec/crun-1.21-1.20250508202724904731.pr1743.87.ge5d2489d.tar.xz
time-created2025-05-08 20:41:11
time-finished2025-05-08 20:45:57
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpzedhklec/crun-1.21-1.20250508202724904731.pr1743.87.ge5d2489d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpzedhklec/crun-1.21-1.20250508202724904731.pr1743.87.ge5d2489d.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9