Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
crun-1.14.4-build/crun-1.14.4/src/libcrun/container.c:24: included_from: Included from here.
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h: scope_hint: In function 'libcrun_container_get_features'
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:71:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc0(136)'
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY'
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY'
#   69|   {
#   70|     void *res = calloc (1, size);
#   71|->   if (UNLIKELY (res == NULL))
#   72|       OOM ();
#   73|     return res;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
crun-1.14.4-build/crun-1.14.4/src/libcrun/container.c:24: included_from: Included from here.
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h: scope_hint: In function ‘libcrun_container_get_features’
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:71:21: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc0(136)’
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’
crun-1.14.4-build/crun-1.14.4/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’
#   69|   {
#   70|     void *res = calloc (1, size);
#   71|->   if (UNLIKELY (res == NULL))
#   72|       OOM ();
#   73|     return res;

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-235.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namecrun-1.15-1.fc41
diffbase-store-results-to/tmp/tmpdouv5jsl/crun-1.15-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:17:18
diffbase-time-finished2024-07-03 12:22:11
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpdouv5jsl/crun-1.15-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpdouv5jsl/crun-1.15-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-235.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namecrun-1.14.4-1.fc40
store-results-to/tmp/tmpihc5ui3j/crun-1.14.4-1.fc40.tar.xz
time-created2024-07-03 12:11:30
time-finished2024-07-03 12:16:47
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpihc5ui3j/crun-1.14.4-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpihc5ui3j/crun-1.14.4-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9