Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def1]
crun-1.21-build/crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'pipefd0'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0'
#  106|     int *pp = (int *) p;
#  107|     if (*pp >= 0)
#  108|->     TEMP_FAILURE_RETRY (close (*pp));
#  109|   }
#  110|   

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def2]
crun-1.21-build/crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'pipefd1'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0'
#  106|     int *pp = (int *) p;
#  107|     if (*pp >= 0)
#  108|->     TEMP_FAILURE_RETRY (close (*pp));
#  109|   }
#  110|   

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def3]
crun-1.21-build/crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'seccomp_fd'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0'
#  106|     int *pp = (int *) p;
#  107|     if (*pp >= 0)
#  108|->     TEMP_FAILURE_RETRY (close (*pp));
#  109|   }
#  110|   

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def4]
crun-1.21-build/crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'signalfd'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/container.c: scope_hint: In function 'cleanup_closep.part.0'
crun-1.21-build/crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-1.21-build/crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0'
#  106|     int *pp = (int *) p;
#  107|     if (*pp >= 0)
#  108|->     TEMP_FAILURE_RETRY (close (*pp));
#  109|   }
#  110|   

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-225.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.21-1.20250328082045725862.main.3.g0f732e31
diffbase-store-results-to/tmp/tmpmnr5v39a/crun-1.21-1.20250328082045725862.main.3.g0f732e31.tar.xz
diffbase-time-created2025-03-28 09:06:11
diffbase-time-finished2025-03-28 09:11:15
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmpmnr5v39a/crun-1.21-1.20250328082045725862.main.3.g0f732e31.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpmnr5v39a/crun-1.21-1.20250328082045725862.main.3.g0f732e31.src.rpm'
diffbase-tool-versioncsmock-3.8.0-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-225.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namecrun-1.21-1.20250328090153970317.pr1709.4.gb2bc7255
store-results-to/tmp/tmpekja22g1/crun-1.21-1.20250328090153970317.pr1709.4.gb2bc7255.tar.xz
time-created2025-03-28 09:11:40
time-finished2025-03-28 09:16:12
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmpekja22g1/crun-1.21-1.20250328090153970317.pr1709.4.gb2bc7255.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpekja22g1/crun-1.21-1.20250328090153970317.pr1709.4.gb2bc7255.src.rpm'
tool-versioncsmock-3.8.0-1.el9