Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
crun-HEAD/src/libcrun/criu.c:1002: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:858:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 1000|         if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL)
# 1001|           {
# 1002|->           inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 1003|             if (UNLIKELY (inherit_new_net_fd < 0))
# 1004|               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:1013: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:858:17: note: in expansion of macro 'YAJL_IS_ARRAY'
# 1011|         if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL)
# 1012|           {
# 1013|->           inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit);
# 1014|             if (UNLIKELY (inherit_new_pid_fd < 0))
# 1015|               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-103.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/tmpgq0lhmem/crun-1.21-1.20250512094810910083.main.93.g819c2a76.tar.xz
diffbase-time-created2025-05-12 21:09:28
diffbase-time-finished2025-05-12 21:14:49
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpgq0lhmem/crun-1.21-1.20250512094810910083.main.93.g819c2a76.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpgq0lhmem/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-103.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.20250512205554735114.pr1747.97.g57031858
store-results-to/tmp/tmpexhyqn1o/crun-1.21-1.20250512205554735114.pr1747.97.g57031858.tar.xz
time-created2025-05-12 21:15:17
time-finished2025-05-12 21:20:06
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpexhyqn1o/crun-1.21-1.20250512205554735114.pr1747.97.g57031858.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpexhyqn1o/crun-1.21-1.20250512205554735114.pr1747.97.g57031858.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9