Fixed 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(**_188.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:856: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(**_209.path, 0)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/criu.c:856: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-34.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.21-1.20250528095909648757.pr1762.147.gfcd403f4
diffbase-store-results-to/tmp/tmpxl46wvgq/crun-1.21-1.20250528095909648757.pr1762.147.gfcd403f4.tar.xz
diffbase-time-created2025-05-28 10:12:15
diffbase-time-finished2025-05-28 10:17:19
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,shellcheck,gcc,cppcheck,unicontrol' '-o' '/tmp/tmpxl46wvgq/crun-1.21-1.20250528095909648757.pr1762.147.gfcd403f4.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpxl46wvgq/crun-1.21-1.20250528095909648757.pr1762.147.gfcd403f4.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250522.153104.ga728c5b-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-34.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namecrun-1.21-1.20250527135755523677.main.139.gb1a71e7b
store-results-to/tmp/tmpqbzcavhf/crun-1.21-1.20250527135755523677.main.139.gb1a71e7b.tar.xz
time-created2025-05-28 10:06:24
time-finished2025-05-28 10:11:56
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,shellcheck,gcc,cppcheck,unicontrol' '-o' '/tmp/tmpqbzcavhf/crun-1.21-1.20250527135755523677.main.139.gb1a71e7b.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpqbzcavhf/crun-1.21-1.20250527135755523677.main.139.gb1a71e7b.src.rpm'
tool-versioncsmock-3.8.1.20250522.153104.ga728c5b-1.el9