Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def1]
crun-1.21-build/crun-HEAD/src/libcrun/utils.h:210:33: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'own_seccomp_receiver_fd'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'close_and_reset'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'close_and_reset'
crun-1.21-build/crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
#  208|     if (*fd >= 0)
#  209|       {
#  210|->       ret = TEMP_FAILURE_RETRY (close (*fd));
#  211|         if (LIKELY (ret == 0))
#  212|           *fd = -1;

Scan Properties

analyzer-version-clippy1.85.1
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.85.1
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.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-147.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.21-1.20250329051120830475.pr1709.11.ge6ac3ead
diffbase-store-results-to/tmp/tmp52exp8i4/crun-1.21-1.20250329051120830475.pr1709.11.ge6ac3ead.tar.xz
diffbase-time-created2025-03-29 05:24:54
diffbase-time-finished2025-03-29 05:29:28
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmp52exp8i4/crun-1.21-1.20250329051120830475.pr1709.11.ge6ac3ead.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp52exp8i4/crun-1.21-1.20250329051120830475.pr1709.11.ge6ac3ead.src.rpm'
diffbase-tool-versioncsmock-3.8.0-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-147.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namecrun-1.21-1.20250328143641301349.main.9.gdb8977e9
store-results-to/tmp/tmpd9e6jsns/crun-1.21-1.20250328143641301349.main.9.gdb8977e9.tar.xz
time-created2025-03-29 05:19:26
time-finished2025-03-29 05:24:26
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmpd9e6jsns/crun-1.21-1.20250328143641301349.main.9.gdb8977e9.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpd9e6jsns/crun-1.21-1.20250328143641301349.main.9.gdb8977e9.src.rpm'
tool-versioncsmock-3.8.0-1.el9